Thingsboard Topic

    1.(PUB)回传遥测值:v1/devices/me/telemetry
    正常回传格式:{"key1":"value1", "key2":"value2"} 或者 [{"key1":"value1"}, {"key2":"value2"}]
    离线回传格式:{"ts":1451649600512, "values":{"key1":"value1", "key2":"value2"}}
    2.(PUB)回传属性值:v1/devices/me/attributes
    格式:{"attribute1":"value1", "attribute2":true, "attribute3":42.0, "attribute4":73}
    3.(PUB)设备向服务端请求属性:v1/devices/me/attributes/request/$request_id
    格式:{"clientKeys":"attribute1,attribute2", "sharedKeys":"shared1,shared2"}
    4.(SUB)设备接收服务端属性回复:v1/devices/me/attributes/response/+
    格式:{"key1":"value1"}
    5.(SUB)设备监听控制命令:v1/devices/me/attributes
    格式:{"key1":"value1"}

    Server-side RPC(服务端请求设备)
    6.(SUB)持久接收监听:v1/devices/me/rpc/request/+
    7.(SUB)一次接收监听:v1/devices/me/rpc/request/$request_id
    8.(PUB)设备回馈:v1/devices/me/rpc/response/$request_id

    Client-side RPC(设备请求服务端)
    9.(SUB)监听服务端反馈:v1/devices/me/rpc/response/$request_id
    10.(PUB)发送命令到服务端:v1/devices/me/rpc/request/$request_id
    格式:{"method": "getTime","params": {}}

    11.(PUB)TB服务端设备认领:v1/devices/me/claim
    格式:{"secretKey":"value", "durationMs":60000}

    本博客所有文章如无特别注明均为原创。
    复制或转载请以超链接形式注明转自Who am I ?,原文地址《Thingsboard Topic
    喜欢 | 0
    分享:

还没有人抢沙发呢~