Logic Machine Forum
MQTT example - 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 example (/showthread.php?tid=2312)



MQTT example - Thomas - 30.10.2019

Hello
I don't understand why there's written 'Add Resident script, 0 seconds, to establish MQTT client connection to external broker.' here:
https://openrb.com/mqtt-client/
It's confusing and dangerous because this example sends just one message and then quits. If you put it into endless loop as there has been suggested then you flood your MQTT broker.


RE: MQTT example - admin - 31.10.2019

True, this example is not fully correct. For full MQTT example see gBridge integration: https://forum.logicmachine.net/showthread.php?tid=2184


RE: MQTT example - Thomas - 05.11.2019

Could you at least remove the dangerous sentence? Because it can result in two situatios:
1. You will be banned at your MQTT broker (like me).
2. Your brokeris fast enough and has no traffic limitation. Then you brick your LM because the endless loop consumes all resources.