ThingBoot open platform is Permanent free open;
You can choose to make the device private, or directly call the interface of the chipboot open platform, these will not generate any fees.
You can choose to make the device private, or directly call the interface of the chipboot open platform, these will not generate any fees.
API call method
HTTP
Way
Interface address:
http(s)://api.thingboot.com/{AppID}/{API document path}/?{Other parameters}&sign={sign}&ts={ts}
{AppID} is your application ID (generated by the platform)Please follow the Development process guide to enter the workbench of the Internet of Things console in the development settings page.
{AppID} is your application ID (generated by the platform)Please follow the Development process guide to enter the workbench of the Internet of Things console in the development settings page.
| Parameter | Name | Description |
|---|---|---|
| sign | Signing |
All requests to the Internet of Things console interface, you need to carry this parameter sign = {sign} in the url The value method: md5 (md5 (developer password) + the above ts parameter), 32-bit string |
| ts | Timestamp |
All requests to the Internet of Things console interface, you need to carry this parameter in the url ts={timestamp} Value method: request time stamp (seconds), 10 digits; |
MQTT
Way
Publish topic:
api/{AppID}/{API document path}
{AppID} is your application ID (generated by the platform)Please follow the Development process guide to enter the workbench of the Internet of Things console in the development settings page.
{AppID} is your application ID (generated by the platform)Please follow the Development process guide to enter the workbench of the Internet of Things console in the development settings page.
| Client ID | Client ID | Please view in the console |
| Address | Host | mapi.thingboot.com |
| Port | port | 1883 |
| Username | Username | Same developer ID (AppID) |
| Password | Password | Same developer password (AppSecret) |
Return information format
Global code(code)
| Code | Prompt | Description |
|---|---|---|
| 5001 | miss app id | Request address is https://api.thingboot.com/{APPID}/,Missing {APPID},Please view your appid in the console |
| 5002 | miss param ts | Please specify ts (timestamp) in the request interface, the value is the timestamp of the request, 10-digit number |
| 5003 | bad ts | Timestamp error, ts is the time when the request occurs, is a dynamic value, must be China time |
| 5004 | miss param sign | Please specify sign (signature) in the request interface, this is a calculated value |
| 5005 | please set app secret | Not set developer password, please set in the development settings in the console |
| 5006 | bad sign | Signature error, correct signature is md5 (md5 (developer password) + (ts parameter in url)) |
| 5007 | bad debug key | Specified debug parameter, but not open debug mode, or debug parameter is incorrect or expired |
| 5008 | ip:*.*.*.* is not in white list | IP check is open, but the interface access IP is not in the whitelist, please add IP in the whitelist in the development settings in the console |
| 5009 | too many request | Single device access highest limit 1 times / second, please do not exceed this limit |