更新时间:2022-09-07 08:46:52下载pdf
本文介绍按键命令下发的 API。
遥控器通过按键命令下发红外码控制设备。
POST: /v2.0/infrareds/{infrared_id}/remotes/{remote_id}/raw/command
参数名 | 类型 | 参数位置 | 是否必填 | 说明 |
---|---|---|---|---|
infrared_id | String | uri | true | 设备 ID |
remote_id | String | uri | true | 遥控器 ID |
body
说明
参数名 | 类型 | 参数位置 | 是否必填 | 说明 |
---|---|---|---|---|
remote_index | Integer | false | 遥控器索引 ID | |
category_id | Integer | false | 品类 ID | |
key_id | Integer | false | 按键 ID | |
key | String | false | 按键 key |
参数名 | 类型 | 说明 |
---|---|---|
result | Boolean | 操作结果 |
POST: /v2.0/infrareds/vdevo15345926009****/remotes/d5s65ca55/raw/command
{
"category_id": 2,
"remote_index": 147,
"key": "power",
"key_id": 1
}
{
"result": true,
"t": 1630933424188,
"success": true
}
参考 错误码。
该内容对您有帮助吗?
是意见反馈该内容对您有帮助吗?
是意见反馈