I have two Pi's, one as MQTT broker.
This can connect MQTT-out just fine, with MQTT server set to localhost, or IP address
On Pi2, I cannot get the node-red MQTT-in node to connect to Pi1
What have I missed here?
Thank you
I have two Pi's, one as MQTT broker.
This can connect MQTT-out just fine, with MQTT server set to localhost, or IP address
On Pi2, I cannot get the node-red MQTT-in node to connect to Pi1
What have I missed here?
Thank you
Have you configured mosquitto (assuming you are using mosquitto) to allow network connections? If not then create a file in /etc/mosquitto/conf.d/ called, for example mossy.conf
(anything.conf will do) and in there put
# allow network access without a password
listener 1883
allow_anonymous true
# human readable timestamps in log
log_timestamp true
log_timestamp_format %Y-%m-%d %H:%M:%S
The timestamp bit is not essential, but tells mosquitto to put readable timestamps in its log. Then restart mosquitto
sudo systemctl restart mosquitto
That's done it, thank you.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.