Connection failed to broker: mqtt://localhost:1883
Matthew Harrington
I'm facing issues on the connectivity between raspberry pi 3 with the Node-red MQTT.
My Raspberry Pi 3 shown as below:
Starting as a systemd service. 8 Sep 03:27:30 - [info]
[mqtt-broker:165e8c2d.4cb0d4] Connection failed to broker:
mqtt://localhost:1883 8 Sep 03:27:45 - [info]
[mqtt-broker:165e8c2d.4cb0d4] Connection failed to broker:
mqtt://localhost:1883
Can anyone help me with this error please? Thanks..
31 Answer
Node-RED does not include an MQTT broker; you need to install one yourself.
Mosquitto is probably the most popular broker for running locally. There are instructions for installing it on a variety of operating systems on their downloads page
1