5.1 下发配置接口
接口地址:
https://api.yoyoiot.cn/{AppID}/device/config/?sign={sign}&ts={ts}
{AppID} 为您的应用ID(由平台生成)请按准备工作的引导进入控制台,在开发设置页面查看。
{sign} 和 {ts} 的算法,请查看第三章节的描述
{AppID} 为您的应用ID(由平台生成)请按准备工作的引导进入控制台,在开发设置页面查看。
{sign} 和 {ts} 的算法,请查看第三章节的描述
请求数据:
这段命令是让ID为 820720 的 智能语音感应壁挂音箱 设置为 按钮 : 静音/恢复 的配置参数下发
更多配置参数请到下方5.2 产品支持配置参数查看
{
"device":820720,
"config":{"btn":"volume"}
}
请求方式:POST;数据格式:JSON这段命令是让ID为 820720 的 智能语音感应壁挂音箱 设置为 按钮 : 静音/恢复 的配置参数下发
更多配置参数请到下方5.2 产品支持配置参数查看
5.2 产品支持配置参数
5.2.1 产品配置
| 配置 | 名称 | 内容 | 说明 |
|---|---|---|---|
|
按钮 btn |
静音/恢复 | {"btn":"volume"} | |
| 禁用 | {"btn":"disable"} | ||
|
led灯 led |
长亮 | {"led":"open"} | |
| 长灭 | {"led":"close"} | ||
| 长亮|静音时灭 | {"led":"volume"} | ||
| 长灭|播放时亮 | {"led":"play"} | ||
|
开机提示音 boot_message |
提示音1 | {"boot_message":"1"} | |
| 提示音2 | {"boot_message":"2"} | ||
| 提示音3 | {"boot_message":"3"} | ||
| 提示音4 | {"boot_message":"4"} | ||
| 提示音5 | {"boot_message":"5"} | ||
|
上线提示音 online_message |
无 | {"online_message":"0"} | |
| 提示音1 | {"online_message":"1"} | ||
| 提示音2 | {"online_message":"2"} | ||
| 提示音3 | {"online_message":"3"} | ||
| 提示音4 | {"online_message":"4"} | ||
| 提示音5 | {"online_message":"5"} | ||
|
操作提示音 oper_message |
关闭 | {"oper_message":"0"} | |
| 提示音1 | {"oper_message":"1"} | ||
| 提示音2 | {"oper_message":"2"} | ||
| 提示音3 | {"oper_message":"3"} | ||
| 提示音4 | {"oper_message":"4"} | ||
| 提示音5 | {"oper_message":"5"} | ||
|
红外开机状态 infrared |
打开 | {"infrared":"1"} | |
| 关闭 | {"infrared":"0"} | ||
|
红外有人触发持续时间 infrared_change_1 |
马上 | {"infrared_change_1":"0"} | |
| 1s | {"infrared_change_1":"1"} | ||
| 2s | {"infrared_change_1":"2"} | ||
| 3s | {"infrared_change_1":"3"} | ||
| 5s | {"infrared_change_1":"5"} | ||
|
红外无人触发持续时间 infrared_change_0 |
马上 | {"infrared_change_0":"0"} | |
| 5s | {"infrared_change_0":"5"} | ||
| 10s | {"infrared_change_0":"10"} | ||
| 20s | {"infrared_change_0":"20"} | ||
| 30s | {"infrared_change_0":"30"} | ||
| 1m | {"infrared_change_0":"60"} | ||
| 2m | {"infrared_change_0":"120"} | ||
| 3m | {"infrared_change_0":"180"} | ||
| 5m | {"infrared_change_0":"300"} | ||
| 10m | {"infrared_change_0":"600"} | ||
|
队列长度 infrared_queue_len |
1 | {"infrared_queue_len":"1"} | |
| 2 | {"infrared_queue_len":"2"} | ||
| 3 | {"infrared_queue_len":"3"} |