Is it possible to transfer JSON format files using MQTT Client function blocks ? Thanks!
Hi Sarath, Yes, this is possible using the MQTT_Library_2 and JSON Utility Library - both from the PLCnext Store. This Github project: https://github.com/PLCnext/IIOT_Library … includes an example showing how to send and receive JSON strings via MQTT. To transfer a JSON file, you will need to read the JSON file into a single STRING variable for publishing, and vice-versa for subscribing. In this case the file size will be limited to the maximum string length in PLCnext Engineer. Hope this helps. ~ Martin.
