Question

Mosquitto disconnects when I send data with mqtt

Posted August 24, 2020 122 views
Ubuntu 18.04

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?

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.

×
1 answer

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

Submit an Answer