Check the device is network-connected and marked online on console prior to config delivery.
Start access
5.1 Device Configuration Delivery API
Interface address:
https://api.thingboot.com/{AppID}/device/config/?sign={sign}&ts={ts}
{AppID} is your application ID (generated by the platform)Please enter the console, in the development settings page to view.
{sign} and {ts} algorithm, please see the description in the previous section
{AppID} is your application ID (generated by the platform)Please enter the console, in the development settings page to view.
{sign} and {ts} algorithm, please see the description in the previous section
Request data:
This command delivers the configuration parameter under to with ID 820720
For more configuration parameters, please refer to section4.2 Supports parameter configurationbelow
{
"device":820720,
"config":{"btn1":"0"}
}
Request method: POST; Data format: JSONThis command delivers the configuration parameter under to with ID 820720
For more configuration parameters, please refer to section4.2 Supports parameter configurationbelow
5.2 Supports parameter configuration
5.2.1 Product config
| Config | Name | Content | Description |
|---|---|---|---|
| btn1 | 全断 | {"btn1":"0"} | |
| 全通 | {"btn1":"1"} | ||
| 禁用 | {"btn1":"disable"} | ||
| relay | 通 | {"relay":"1"} | |
| 断 | {"relay":"0"} | ||
| offline | 通 | {"offline":"1"} | |
| 断 | {"offline":"0"} | ||
| 不理会 | {"offline":"no"} | ||
| mode | 轻触 | {"mode":"0"} | |
| 长按 | {"mode":"1"} | ||
| action | 状态反转 | {"action":"reverse"} | |
| 先断后通 | {"action":"reset"} | ||
| 先通后断 | {"action":"point"} | ||
| 禁用 | {"action":"disable"} | ||
| time | 1秒 | {"time":"1000"} | |
| 2秒 | {"time":"2000"} | ||
| 3秒 | {"time":"3000"} | ||
| 4秒 | {"time":"4000"} | ||
| 5秒 | {"time":"5000"} | ||
| led | 长亮 | {"led":"open"} | |
| 长灭 | {"led":"close"} | ||
| 长亮|静音时灭 | {"led":"volume"} | ||
| 长灭|播放时亮 | {"led":"play"} | ||
| boot_message | 无 | {"boot_message":"0"} | |
| 提示音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"} | ||
| filter | 微 | {"filter":"150"} | |
| 低 | {"filter":"200"} | ||
| 中 | {"filter":"250"} | ||
| 高 | {"filter":"300"} | ||
| gap | 无保护 | {"gap":"0"} | |
| 间隔1秒 | {"gap":"1"} | ||
| 间隔2秒 | {"gap":"2"} | ||
| 间隔3秒 | {"gap":"3"} |