This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

MQTT example
#1
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.
LM5Lp, firmware: 2018.08.22 and 2021.12.15, FlashSYS v2, ARMv7 Processor rev 5 (v7l), kernel 4.4.151 and 4.4.259
Reply
#2
True, this example is not fully correct. For full MQTT example see gBridge integration: https://forum.logicmachine.net/showthread.php?tid=2184
Reply
#3
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.
LM5Lp, firmware: 2018.08.22 and 2021.12.15, FlashSYS v2, ARMv7 Processor rev 5 (v7l), kernel 4.4.151 and 4.4.259
Reply


Forum Jump: