Open main menu

DAVE Developer's Wiki β

Changes

Enabling the connection to the PLC
</pre>
We then configured Fledge in order to read periodically a couple of PLC's registers. Please note that this is a no-code operation as it is carried out with the help of the native web-based Fledge UI. To access PLC exposed data, the Fledge's <code>modbustcp</code> South plugin was used. Please note that also we had to patch it manually to solve a bug that prevented it from working properly. The patch is detailed [https://github.com/fledge-iot/fledge-south-modbustcp/pull/26/files here]. To make the change effective, we disabled and re-enabled the plugin via the web interface.
[[File:SBCSPG-Fledge-2.png|center|thumb|600x600px|Installing the <code>modbustcp</code> South plugin.]]
[[File:SBCSPG-Fledge-3.png|center|thumb|600x600px|Configuring the plugin]]
[[File:SBCSPG-Fledge-4.png|center|thumb|600x600px|Configuring the plugin.]]
[[File:SBCSPG-Fledge-5.png|center|thumb|600x600px|The plugin is enabled.]]
[[File:SBCSPG-Fledge-6.png|center|thumb|600x600px|Fledge provides a native web interface to visualize collected data. ]]
=== Enabling the connection to ThingsBoard IoT platform === Riavviare south In order to upload collected data to ThingsBoard platform, a simple North plugin was developed. To this end, the Microsoft Azure plugin was used as reference. The following box shows the code. The ThingsBoard South plugin is minimalist and unfit for a real-world production environment. Nevertheless, it was enough to perform the basic tests described in this TN. Before testing this new plugin, the mosquitto-clients package was installed as the plugin disableinvokes the <code>mosquitto_pub</enable per via graficacode> command line tool.
Created symlink /etc/systemd/system/multi-user.target.wants/mosquitto.service → /lib/systemd/system/mosquitto.service.
Processing triggers for libc-bin (2.31-13+deb11u5) ...
 
4,650
edits