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":{"action1":"reverse"}
}
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 |
|---|---|---|---|
| action1 | 状态反转 | {"action1":"reverse"} | |
| 禁用 | {"action1":"disable"} | ||
| led | 长亮 | {"led":"1"} | |
| 长灭 | {"led":"0"} | ||
| 闪烁 | {"led":"blink"} | ||
| mq | 打开 | {"mq":"1"} | |
| 关闭 | {"mq":"0"} | ||
| buz_volume | 高 | {"buz_volume":"255"} | |
| 中 | {"buz_volume":"200"} | ||
| 低 | {"buz_volume":"150"} | ||
| mq_sensitivity | 高 | {"mq_sensitivity":"2"} | |
| 中 | {"mq_sensitivity":"4"} | ||
| 低 | {"mq_sensitivity":"6"} |