Send Learning Code

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

Send infrared codes to a specified remote control.

API address

POST: /v2.0/infrareds/{infrared_id}/remotes/{remote_id}/learning-codes

Request parameter

Parameter name Type IN Required Description
infrared_id String uri true The device ID.
remote_id String uri true The ID of a specified remote control.

Return parameter

Parameter name Type Description
result Boolean The operation result.

Request example

POST: /v2.0/infrareds/vdevo15345926009****/remotes/d5s65ca55/learning-codes
{ "code": "c42230112602f401260226022602260226022602260226022602260226027206260226022602720626027206260272062602720626027206260272065802f401260272062602260226027206260226022602260226024006260226022602260226022602260272062602260226027206260272062602260258024006260272062602720626024c9af62266082602****" }

Return example

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

Error code

For more information, see error code.