Report this

What is the reason for this report?

Mosquitto disconnects when I send data with mqtt

Posted on August 24, 2020

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?



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!

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.

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.