Open main menu

DAVE Developer's Wiki β

Changes

MISC-TN-021: SBCSPG and ThingsBoard IoT

154 bytes added, 13:56, 27 June 2022
Remote logging
[[File:MISC-TN-021-block-diagram.png|center|thumb|600x600px]]
''ThingsBoard IoT Gateway'' is interfaced to a local MQTT broker (''[https://mosquitto.org/ Mosquitto]'') via the [https://thingsboard.io/docs/iot-gateway/config/mqtt/ MQTT connector]. On the network side, ''ThingsBoard IoT Gateway'' is connected to an instance of ''[https://thingsboard.io/docs/ ThingsBoard IoT platform Community Edition]''. For the sake of simplicity, this instance was installed on a PC. The PC and the SBCSPG gateway are connected to the same LAN. Obviously, in a more realistic scenario, the ThingsBoard IoT platform would be installed on a remote server or on a cloud infrastructure. See [https://thingsboard.io/docs/user-guide/install/installation-options/ this page] for more information about installation options.
==Installing ''ThingsBoard IoT Gateway''==
== Testing ==
To test the configuration, it is possible to publish some data with the help of the <code>mosquitto_pub</code> client tool. In the following example, two data points are published , associated to the variables ''temperature'' and ''humidity'', are published :
<pre class="board-terminal">
</pre>
In turn, ''ThingsBoard IoT Gateway'' finally manages to send sends the data to the ''ThingsBoard IoT platform'':
[[File:SBCSPG-ThingsBoard-1.png|center|thumb|723x723px600px]]
=== Remote logging ===
''ThingsBoard'' provides the ''Remote logging'' functionality too. It can be extremely helpful when it comes to debug connections issues, for instance. It can be enabled as describe described [https://thingsboard.io/docs/iot-gateway/guides/how-to-enable-remote-logging/ here].
The following image shows how it looks like in a ''Timeseries widget'' in the ''ThingsBoard platform'' environment.
[[File:SBCSPG-ThingsBoard-2.png|center|thumb|800x800px]]
 
== Video ==
Watch our dedicated video were is possible to see this demo in action:
{{#ev:youtube|4TteWI8jG08|600|center|ThingsBoard IoT on Gateway ioT|frame}}
4,650
edits