Open Valthol opened 2 years ago
Sorry for the delay in replying. My only guess on this is that when you were connecting the server had reached the limit of number of clients allowed to connect, so you had to wait until a slot became free. If it's still a problem for you please let me know. I'll close this issue in a while otherwise.
Mosquitto broker version 6.0.1 Home Assistant version 2022.2.3
Arduino Mega (tried few different boards) with Etherned module (tried few different modules) with PubSubClient library.
Tested working with -> test.mosquitto.org -> program works 100% fine, every restart, every message was delivered and received. Nothing to worry about.
With Mosquitto Broker I have very strange issue, in where my Arduino properly talks via MQTT with Mosquitto only once every 2-8 restarts. Please see attached screenshot, 8th restart estabilished proper connection with two way communication. Normally it takes 2-8 restarts. When I get a "good restart" the connection is stable and stays like that.
Please see attached screenshot. On the upper half of it you can see estabilished connections which just don't work as they should (no message received by broker and sent back), and then on the 8th try it works. This happens very regulary.
By testing it on test.mosquitto.org and with different boards and modules I think I have narrowed the problem down to Mosquitto Broker.
Can anyone help me?