ThingsBoard3.9.1 MQTT Topic(4)
本章中的主题适用于网关设备。
1.网关订阅设备属性的topic:v1/gateway/attributes/response
订阅后接收到的响应格式。
{
"id":3,
"device":"m1",
"values":{
"version":"V1.2"
}
}
2.网关发布请求设备属性的topic:v1/gateway/attributes/request
请求格式:
{ "id": 3,
"device": "m1",
"client": false,
"keys":["version","aa"]
}
或者
{ "id": 3,
"device": "m1",
"client": false,
"key": "version"
}
keys为数组时,可以请求多个属性值。