Send Standard Command (During Pairing)

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

During the pairing, send the standard commands to control the specified device.

API address

POST: /v2.0/infrareds/{infrared_id}/testing/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 String false The key.

Return parameter

Parameter name Type Description
result Boolean The operation result.

Request example

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

Return example

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

Error code

For more information, see error code.