`
男人50
  • 浏览: 227283 次
  • 性别: Icon_minigender_1
  • 来自: 珠海
社区版块
存档分类
最新评论

Connect to an MQTT Broker

 
阅读更多
Connect to an MQTT Broker
Problem
You want to connect to an MQTT broker running locally.

Solution
Use the MQTT Input input or MQTT Output node and an associated MQTT Config node to connect to an MQTT broker.

Example


Show flow
Discussion
Many users will run an MQTT broker such as mosquitto on the same Raspberry Pi or PC that Node-RED is running on. Once you have an MQTT input or output node in your flow, you create an MQTT Config node by clicking on the Server configuration pop-up and selecting Add an MQTT broker.... Assuming your broker is open, set the server host to localhost and leave the port set to 1883.

To connect to non-local, secured brokers, other MQTT Config node options will need to be set according to your broker’s connectivity requirements.
1
0
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics