Bind Device
You can bind a device to your account through this interface. After binding, real-time data of the device will immediately start to be pushed via MQTT protocol, and you can also query the relevant information of the device.
✨ Example
Request
curl --location -g '{{EU}}/wrapper/topic/addTopicMapping?deviceSn=A11230010013204A&topic=/acGmtzpqJCKk&checkCode=0594422' \
--header 'token: xxxx'
Response ①
{
"errorCode": 0,
"info": null,
"body": true,
"successful": true
}
Response ②
{
"errorCode": 1,
"info": {
"code": "error.40019",
"description": "无该topic权限"
},
"body": null,
"successful": false
}
Response ②
{
"errorCode": 1,
"info": {
"code": "error.70011",
"description": "序列号与校验码不匹配"
},
"body": null,
"successful": false
}