Question
why is Esp 8826 mqtt example given in arduino ide not able to connect to Mosquito broker.
using mqtt with esp8826 from example code in arduino ide mosquito broker running on droplet properly but gives following message from esp 8826 ( Attempting MQTT connection…failed, rc=-4 try again in 5 seconds )
not able to resolve this for some reason
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×
Have you opened the firewall to allow connections from outside to MQTT?
Did you follow this guide? Or how did you setup Ubuntu with MQTT?
https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-the-mosquitto-mqtt-messaging-broker-on-ubuntu-16-04