Logic Machine Forum
MQTT Topics - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: MQTT Topics (/showthread.php?tid=2638)



MQTT Topics - sjfp - 12.05.2020

Hi, looking for assistance on how build a script that can generate all the required topics for an IoT MQTT Broker, before we go to site and put on line the LM machines.
So if we were going to commission 20 site in a week, then in the office we could simply generate the topics for each site, just by running a Master Setup Script before hand.

Would like to build the script so that we can choose the QoS and Retain options for each Topic, prior to the LM's going on line. Thus once the LM connects, the required RETAINED values are auto updated.
We will be having a lot of sites (100s) for the same client, so to build a common set of topics for each site 
Like:
Site Name= DS-LM110

Topics would then be like
DS-LM110/Alarm/  ... QoS 1  Retain True
DS-LM110/Door/  ... QoS 1  Retain False
DS-LM110/Temp_IN/  ... QoS 1  Retain True
DS-LM110/Temp_Out/  ... QoS 1  Retain False
 etc. etc.
Thank you for any help.