Logic Machine Forum
MQTT integration with node red - 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 integration with node red (/showthread.php?tid=1755)



MQTT integration with node red - pentadom - 29.11.2018

Hello,

I have a Node-red running in a Multitech Conduit Hardware with the next flow. I have a node that transmits the "56" value injected in topic "arqueta/humedad". Then, for test, I have a node that receives the info previously sended (you can see it at right in the debu window). 

[Image: mqtt%20flow.png]

The node-red is able to act as a MQTT broker, so de info is directly sended between MQTT nodes. Here you can see the broker configuration:

[Image: mqtt%20broker%20configuration%20connection.png]

Here's the in and out node configuration where I can select the broker configured before (localhost), the topic and other parameters (you can see the info of the diferent parameters in the right side).

OUT node:

[Image: mqtt%20out%20node%20config.png]

IN node:

[Image: mqtt%20in%20node%20config.png]

On the other hand, I have the LM where I want to receive this humidity into an object.

I've seen the example in the LM website: http://openrb.com/mqtt-client/ 

But I think is not the correct code for my case and I have to say I'm a novice programmer... could anyboy help me with the code I need??

Thanks in advance!