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

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

how do you open firewall…?

The mqtt broker on droplet works when android mqtt client is used .I am assuming firewall is open.

only when using esp8826 the broker does not connect . which it does on local Raspberry pi mosquito broker