Send Key Command (During Pairing)

Last Updated on : 2023-06-20 14:54:07download

During the pairing phase, send the key code according to the key command.

API address

POST: /v2.0/infrareds/{infrared_id}/testing/raw/command

Request parameter

Parameter name Type IN Required Description
infrared_id String uri true The device ID.

Description of body

Parameter name Type IN Required Description
remote_index Integer false The ID of a specified remote control index.
category_id Integer false The ID of a specified category.
key_id Integer false The key ID.
key String false The key.

Return parameter

Parameter name Type Description
result Boolean The operation result.

Request example

POST: /v2.0/infrareds/vdevo15345926009****/testing/raw/command
{ "categoryId": 2, "remoteIndex": 147, "key": "power", "keyId": 1 }

Return example

{ "result": true, "t": 1630933424188, "success": true }

Error code

For more information, see error code.