Implementation of Thingsboard MQTT commands
Hints: Php MQTT package: php-mqtt/client Thingsbard Documentation: https://thingsboard.io/docs/reference/mqtt-api/
-
[x] 1. PUB
v1/devices/me/telemetryPublish telemetry data to ThingsBoard server node. -
[x] 2. PUB
v1/devices/me/attributesPublish client-side device attributes to ThingsBoard server node. -
[ ] 3. SUB
v1/devices/me/attributesSubscribe to shared device attribute changes. -
[ ] 4. PUB
v1/devices/me/attributes/request/$request_idRequest client-side or shared device attributes to ThingsBoard server node -
[ ] 5. SUB
v1/devices/me/attributes/response/+Subscribe to client-side or shared device attribute changes. -
[ ] 6. SUB
v1/devices/me/rpc/request/+Subscribe to RPC commands from the server. -
[ ] 7. PUB
v1/devices/me/rpc/request/$request_idPublish RPC commands to ThingsBoard server node. -
[ ] 8. PUB
v1/devices/me/rpc/response/$request_idThe client (Device) should publish the response to this topic. -
[ ] 9. PUB
v1/devices/me/claimInitiate claiming device. -
[ ] 10. PUB
/provisionInitiate device provisioning. -
[ ] 11. PUB
v2/fw/request/${requestId}/chunk/${chunkIndex}Ddevice firmware update, it sets the fw_title, fw_version, fw_checksum, fw_checksum_algorithm shared attributes. -
[ ] 12. SUB
v2/fw/response/+/chunk/+Receive the device updates for fw_title and fw_version shared attributes.