Changes for page ThingsBoard

Last modified by Dilisi S on 2025/04/23 19:23

From version 193.1
edited by Dilisi S
on 2025/03/27 23:31
Change comment: Mar 27 edits - part 2
To version 188.1
edited by Dilisi S
on 2025/03/27 22:53
Change comment: Uploaded new attachment "add-integartion-connection.png", version {1}

Summary

Details

Page properties
Content
... ... @@ -205,10 +205,8 @@
205 205  [[image:create-new-converter-menu.png||height="259" width="500"]]
206 206  
207 207  
208 -The **Add data converter** window will appear.
208 +The **Add data converter** window will appear. Name it ‘**MQTT Uplink Converter NB/CB**’ and select the Type as **Uplink**.
209 209  
210 -Let's create an uplink data converter for the device named '**Device A**'. Name it ‘**MQTT Uplink Converter - Device A**’ and select the Type as **Uplink**.
211 -
212 212  Click on the **TBEL** button if it has not been selected by default.
213 213  
214 214  Modify the default TBEL function to match with your device as described below:
... ... @@ -285,17 +285,16 @@
285 285  Once you modify the decoder function, click on the **Add** button.
286 286  
287 287  
286 +[[image:mqtt-uplink.png||width="500"]]
288 288  
289 -[[image:ul-data-converter-device-a.png||height="524" width="500"]]
290 290  
291 291  
292 292  You should see that the newly added **MQTT Uplink converter **NB/CB is listed on the **Data Converters** page.
293 293  
294 294  
295 -[[image:ul-data-converter-added.png||height="257"]]
293 +[[image:data-converter-list-showing-uplink-dc.png]]
296 296  
297 297  
298 -
299 299  = 5. Add Integration =
300 300  
301 301  
... ... @@ -316,7 +316,7 @@
316 316  **Basic settings:**
317 317  
318 318  * **Integration type**: MQTT
319 -* **Name**: MQTT integration - Device A
316 +* **Name**: MQTT integration NB/CB
320 320  * **Enable integration**: YES
321 321  * **Allows create devices or assets**: YES
322 322  
... ... @@ -323,11 +323,9 @@
323 323  Click **Next** button.
324 324  
325 325  
326 -[[image:add-integration-basic-settings.png||height="504" width="500"]]
323 +[[image:add-integration-basic-settings.png||height="511" width="500"]]
327 327  
328 328  
329 -
330 -
331 331  **Uplink data converter:**
332 332  
333 333  * Click on the **Select existing** button.
... ... @@ -336,10 +336,9 @@
336 336  Click **Next** button.
337 337  
338 338  
339 -[[image:add-integration-ul-data-converter.png||height="505" width="500"]]
334 +[[image:add-integration-uplink-data-converter.png||height="511" width="500"]]
340 340  
341 341  
342 -
343 343  **Downlink data converter:**
344 344  
345 345  Dragino NB/CB devices don't require a downlink data converter to decode their payloads, so you can skip this step.
... ... @@ -364,10 +364,9 @@
364 364  * **Topic: device/a** (The topic can be anything; you can even use just the device name.)
365 365  * **QoS:** 0-At most once
366 366  
361 +[[image:add-integration-connection.png||height="511" width="500"]]
367 367  
368 -[[image:add-integartion-connection.png||height="505" width="500"]]
369 369  
370 -
371 371  Click on the **Advanced settings** button.
372 372  
373 373  * **Clean session:** YES
... ... @@ -395,10 +395,9 @@
395 395  Since we haven't received data from a device yet, the integration **Status** is shown as **Pending.**
396 396  
397 397  
398 -[[image:integration-added.png]]
391 +[[image:new-integration-pending.png]]
399 399  
400 400  
401 -
402 402  = 6. Verifying the receipt of data from virtual devices =
403 403  
404 404  
... ... @@ -421,7 +421,7 @@
421 421  == 5.2 Sending messages ==
422 422  
423 423  
424 -On your computer's terminal, issue the following MQTT command which simulates the device '**Device A'**. The message payload contains the fields IMEI, temperature, humidity, and pressure, which hold the values 350693903995577, 30, 80, and 1005 respectively. This payload is also (technically) known as telemetry.
416 +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.
425 425  
426 426  {{code language="none"}}
427 427  mosquitto_pub -d -q 1 -h 011731f7928xxxxx.s1.eu.hivemq.cloud -p 8883 -u "xxxxx" -P "xxxxx" -t "device/a" -m '{"IMEI":"350693903995577", "temperature":30, "humidity":80, "pressure":1005}'
... ... @@ -433,6 +433,8 @@
433 433  [[image:integration-active.png]]
434 434  
435 435  
428 +
429 +
436 436  == 6.3 Viewing messages ==
437 437  
438 438  
... ... @@ -451,28 +451,21 @@
451 451  Then click on the **Apply changes** (//**tick icon**//) button.
452 452  
453 453  
454 -[[image:debug-enabled.png||height="301" width="700"]]
448 +[[image:Screenshot 2025-03-18 at 09.23.10.png]]
455 455  
456 456  
457 -
458 -
459 459  Now go to the **Events** tab.
460 460  
461 -Select the **Event type** as **Debug** from the dropdown list.
453 +Select the Event type as **Debug** from the dropdown list.
462 462  
463 -Publish another message (of course, you can repeat the previous message by pressing the UP arrow on your keyboard and then press Enter key) to your MQTT broker from your terminal, for example:
455 +Now you can see all the Uplink messages you are simulating through the MQTT broker. The status should be **OK **if there is no errors in your integration.
464 464  
465 -{{code language="none"}}
466 -mosquitto_pub -d -q 1 -h 011731f7928xxxxx.s1.eu.hivemq.cloud -p 8883 -u "xxxxx" -P "xxxxx" -t "device/a" -m '{"IMEI":"350693903995577", "temperature":30, "humidity":80, "pressure":1005}'
467 -{{/code}}
468 468  
469 -Now you can see that uplink message in the **Events** tab (Click the **refresh** button if you didn't see any messages in the Events tab). The status should be **OK **if there is no errors in your integration.
470 -
471 -
472 472  [[image:Screenshot 2025-03-26 at 19.49.31.png]]
473 473  
474 474  
475 475  
462 +
476 476  Then click on the **three dots (...)** in the **Message** column. You can see the uplink message's **payload** in the **Message** window.
477 477  
478 478  
... ... @@ -596,3 +596,6 @@
596 596  {{/info}}
597 597  
598 598  [[image:image-4.png]]
586 +
587 +
588 +
debug-enabled.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.pradeeka
Size
... ... @@ -1,1 +1,0 @@
1 -196.3 KB
Content
integration-active.png
Size
... ... @@ -1,1 +1,1 @@
1 -64.1 KB
1 +64.2 KB
Content
integration-added.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.pradeeka
Size
... ... @@ -1,1 +1,0 @@
1 -196.2 KB
Content