<
From version < 161.1 >
edited by Dilisi S
on 2025/03/18 04:12
To version < 160.1 >
edited by Dilisi S
on 2025/03/18 04:12
>
Change comment: Uploaded new attachment "new-device.png", version {1}

Summary

Details

Page properties
Content
... ... @@ -459,6 +459,7 @@
459 459  * **QoS:** 0-At most once
460 460  
461 461  
462 +
462 462  [[image:add-integration-connection.png||height="511" width="500"]]
463 463  
464 464  
... ... @@ -515,10 +515,10 @@
515 515  == 5.2 Sending messages ==
516 516  
517 517  
518 -On the terminal, issue the following MQTT command which simulates the device S31B-NB. The message payload contains the fields temperature and humidity, which hold the values S31B-NB and 27, respectively. This payload is also (technically) known as telemetry.
519 +On the terminal, issue the following MQTT command which simulates the device S31B-NB. The message payload contains the fields temperature and humidity, which hold the values 10.4 and 85, respectively. This payload is also (technically) known as telemetry.
519 519  
520 520  {{code language="none"}}
521 -mosquitto_pub -d -q 1 -h 011731f7928xxxxx.s1.eu.hivemq.cloud -p 8883 -t "v1/devices/me/telemetry" -u "xxxxx" -P "xxxxx" -m '{"IMEI": "S31B-NB", "temperature": 27}'
522 +mosquitto_pub -d -q 1 -h 011731f7928xxxxx.s1.eu.hivemq.cloud -p 8883 -t "tb/mqtt-integration-tutorial/sensors/S31B-NB/telemetry" -u "xxxxx" -P "xxxxx" -m '{"temperature":10.4, "humidity":85}'
522 522  {{/code}}
523 523  
524 524  If the integration was performed without errors, the status of the integration changes to 'Active' after the first telemetry transmission.
... ... @@ -530,10 +530,9 @@
530 530  Also, a new device named **S31B-NB** will appear under **//Entities -> Devices -> All//**. This means the first MQTT message triggers ThingsBoard to provision a device named **S31B-NB**.
531 531  
532 532  
534 +[[image:device-provision-1.png]]
533 533  
534 -[[image:new-device.png]]
535 535  
536 -
537 537  Click on the device S31B-NB on the devices list to see its details.
538 538  
539 539  Then go to the **Latest telemetry** tab.
Copyright ©2010-2024 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0