![]() |
MQTT how to get started - 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 how to get started (/showthread.php?tid=4737) |
MQTT how to get started - alexll - 26.04.2023 Hi there, It's my first time using MQTT and I am a bit lost. I want to connect 2 LM and share group addresses between them, but after reading more and more posts about that, I have achieved nothing. Steps that I followed: - I have installed and configured MQTT broker app in one of my LMs; - I have created a resident script and group addresses as showed here: https://forum.logicmachine.net/showthread.php?tid=1759&pid=10926#pid10926 , pointing to localhost where the broker is, and to the broker IPs at the other; - I have installed MQTT Explorer in my PC to monitoring everything; - I'm stuck at this step, because I don't see anything at MQTT Explorer and I don't know what to do appart of changing group address values. Can anybody help me or share a tutorial? Thanks in advance! RE: MQTT how to get started - Daniel - 27.04.2023 Does the objects in your script exists? Any errors? On the client LM with broker in use ip 127.0.0.1 RE: MQTT how to get started - alexll - 27.04.2023 (27.04.2023, 08:17)Daniel Wrote: Does the objects in your script exists? Any errors? Yes, I have created the same objects included in the script just to avoid any bug on my side (indeed I have tried with different data types as I don't know if that is relevant). The LM log shows "* arg: 1 * string: mqtt connect status * arg: 2 * bool: true * arg: 3 * number: 0 * arg: 4 * string: connection accepted * arg: 5 * number: 0 * arg: 6 * nil". And yes, on the client with the installed broker I use the localhost IP. RE: MQTT how to get started - admin - 27.04.2023 Post your full script. RE: MQTT how to get started - alexll - 27.04.2023 I do not know why, but, while I was taking the screenshots to post them for you, everything started to work flawlessly ![]() Anyway, if anybody needs some help about this topic, just use this post. Thank you admins! |