Open main menu

DAVE Developer's Wiki β

Changes

MISC-TN-021: SBCSPG and ThingsBoard IoT

448 bytes added, 14:58, 4 February 2022
Testing
== Testing ==
 httpsTo test the configuration, one can publish some data with the help of the mosquitto_pub client tool. In the following example, two data points are published associated to the variables ''temperature'' and ''humidity''://thingsboard.io/docs/iot-gateway/config/mqtt/
<pre class="board-terminal">
armbian@sbcspg:~$ mosquitto_pub -h 127.0.0.1 -p 1883 -u "testuser" -P "testuser" -t "/sensor/SN-001/data" -m '{"sensorType": "Thermometer", "sensorModel": "T1000", "temp": 22, "hum": 55}'
</pre>
 
By setting the logging level of the broker to all, a lot of useful messages are printed to understand if the data is received properly by the ThingsBoard IoT Gateway's MQTT connector:
<pre class="board-terminal">
</pre>
In turn, ThingsBoard IoT Gateway manages to send the data to the ThingsBoard IoT platform as well:
[[File:SBCSPG-ThingsBoard-1.png|center|thumb|723x723px]]
4,650
edits