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":{"relay":"1"}
}
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 |
|---|---|---|---|
| relay | 通 | {"relay":"1"} | |
| 断 | {"relay":"0"} | ||
| action1 | 状态反转 | {"action1":"reverse"} | |
| 先断后通 | {"action1":"reset"} | ||
| 先通后断 | {"action1":"point"} | ||
| 禁用 | {"action1":"dis"} | ||
| time1 | 1秒 | {"time1":"1000"} | |
| 2秒 | {"time1":"2000"} | ||
| 3秒 | {"time1":"3000"} | ||
| 4秒 | {"time1":"4000"} | ||
| 5秒 | {"time1":"5000"} | ||
| action2 | 状态反转 | {"action2":"reverse"} | |
| 先断后通 | {"action2":"reset"} | ||
| 先通后断 | {"action2":"point"} | ||
| 禁用 | {"action2":"dis"} | ||
| time2 | 1秒 | {"time2":"1000"} | |
| 2秒 | {"time2":"2000"} | ||
| 3秒 | {"time2":"3000"} | ||
| 4秒 | {"time2":"4000"} | ||
| 5秒 | {"time2":"5000"} |