Question

Mosquitto disconnects when I send data with mqtt

Hi, I had everything working well for a week, then suddenly when I try to send MQTT data to Node-RED, it disconnects from mosquitto. When the transmission is over, it re-connects. I am using port 2110 for mosquitto running as a daemon, and it worked fine until today. Any ideas?


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.

So it turns out to be the ClientID that makes it disconnect from Mosquitto, so I am wondering if anyone know how to make a proper mosquitto.conf file?

I have tried all kinds of rule combinations, but I cannot seem to get it to accept the Client ID. I don’t want a username or pwd because the data stream isn’t of any consequence; the Client ID will be enough.

Tks, AB