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":"ss_s"} | |
| 与存在相反 | {"led":"ss_r"} | ||
| 长亮 | {"led":"1"} | ||
| 长灭 | {"led":"0"} | ||
| 闪烁 | {"led":"blink"} | ||
| radar | 打开 | {"radar":"1"} | |
| 关闭 | {"radar":"0"} | ||
| radar_target_detect | 高 | {"radar_target_detect":"0"} | |
| 低 | {"radar_target_detect":"1"} | ||
| radar_change_1 | 马上 | {"radar_change_1":"0"} | |
| 1s | {"radar_change_1":"1"} | ||
| 2s | {"radar_change_1":"2"} | ||
| 3s | {"radar_change_1":"3"} | ||
| 5s | {"radar_change_1":"5"} | ||
| radar_change_0 | 马上 | {"radar_change_0":"0"} | |
| 30s | {"radar_change_0":"30"} | ||
| 1m | {"radar_change_0":"60"} | ||
| 2m | {"radar_change_0":"120"} | ||
| 3m | {"radar_change_0":"180"} | ||
| 5m | {"radar_change_0":"300"} | ||
| 10m | {"radar_change_0":"600"} | ||
| 20m | {"radar_change_0":"1200"} | ||
| 30m | {"radar_change_0":"1800"} | ||
| 40m | {"radar_change_0":"2400"} | ||
| 50m | {"radar_change_0":"3000"} | ||
| 1h | {"radar_change_0":"3600"} | ||
| mq | 打开 | {"mq":"1"} | |
| 关闭 | {"mq":"0"} | ||
| mq_sensitivity | 高 | {"mq_sensitivity":"2"} | |
| 中 | {"mq_sensitivity":"4"} | ||
| 低 | {"mq_sensitivity":"6"} | ||
| buz_volume | 高 | {"buz_volume":"255"} | |
| 中 | {"buz_volume":"200"} | ||
| 低 | {"buz_volume":"150"} | ||
| ds_enable | 打开 | {"ds_enable":"1"} | |
| 关闭 | {"ds_enable":"0"} | ||
| ds_correction | 0.5 | {"ds_correction":"0.5"} | |
| 0.55 | {"ds_correction":"0.55"} | ||
| 0.6 | {"ds_correction":"0.6"} | ||
| 0.65 | {"ds_correction":"0.65"} | ||
| 0.7 | {"ds_correction":"0.7"} | ||
| 0.75 | {"ds_correction":"0.75"} | ||
| 0.8 | {"ds_correction":"0.8"} | ||
| 0.9 | {"ds_correction":"0.9"} | ||
| 1 | {"ds_correction":"1"} | ||
| ds_sensitivity | 0.1 | {"ds_sensitivity":"0.1"} | |
| 0.2 | {"ds_sensitivity":"0.2"} | ||
| 0.3 | {"ds_sensitivity":"0.3"} | ||
| 0.4 | {"ds_sensitivity":"0.4"} | ||
| 0.5 | {"ds_sensitivity":"0.5"} |