29.11.2018, 11:05
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]](http://www.pentadom.com/LM%20Forum%20MQTT%20-%20NODE-RED/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]](http://www.pentadom.com/LM%20Forum%20MQTT%20-%20NODE-RED/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]](http://www.pentadom.com/LM%20Forum%20MQTT%20-%20NODE-RED/mqtt%20out%20node%20config.png)
IN node:
![[Image: mqtt%20in%20node%20config.png]](http://www.pentadom.com/LM%20Forum%20MQTT%20-%20NODE-RED/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!
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]](http://www.pentadom.com/LM%20Forum%20MQTT%20-%20NODE-RED/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]](http://www.pentadom.com/LM%20Forum%20MQTT%20-%20NODE-RED/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]](http://www.pentadom.com/LM%20Forum%20MQTT%20-%20NODE-RED/mqtt%20out%20node%20config.png)
IN node:
![[Image: mqtt%20in%20node%20config.png]](http://www.pentadom.com/LM%20Forum%20MQTT%20-%20NODE-RED/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!