Accessing MQTT Broker using websockets from Node-RED

If your broker accepts websocket connections then you can connect to it using that protocol instead of normal port 1883 connection

To do so, add an MQTT node and then configure it for a new broker.

The Server field text needed is a bit un-intuitive and the Port entry field is not used as we explicitly use the websocket port number in the server field

Note: you should replace the 192.168.0.180 with the IP address or URL of your broker and also replace 9001 with the websocket port your broker is using

You may also like...

Leave a Reply

Your e-mail address will not be published. Required fields are marked *