This tutorial will show you in great detail how to set up and integrate DL28 into ThingsBoard IoT platform. With this Decode marks the beginning of partnership with ThingsBoard as their Silver Partner.
MQTT (a lightweight messaging protocol) is based on „publish/subscribe“ principle of message exchange between clients over the broker. Distance clients are connected to the broker by using the TCP/IP protocol. Broker has a static IP address. Clients could have either static or dynamic IP address. Default port is 1883.
DL28 supports MQTT client, it can send-publish messages to the broker, and receive-subscribe messages from the broker.
TEXT and JSON message formats are supported.
DL28 disposes internal MODBUS memory map, used to collect all the data from the connected devices, meters and IO modules. These data could be readout in different ways, and this time we are explaining MQTT way.
DL28 set up
Connect to the DL28 webserver using either default parameters or adequate ones in case you have changed the default parameters.
Default setup is | IP address : 192.168.0.67 | Username : admin | Password : admin |
Set all devices, meters, IO modules that are connected to the DL28. After establishing a successful communication with each, you should have all relevant data stored in the DL28 modbus map. Form the list of data that you would like to exchange over the MQTT.
Procedure will be explained using a small example based on data collected/read from GPRS Router 343 and heat meter by using a modbus RTU and M-Bus protocols, respectively. This is shown on the below screenshots.