I’ve some troubles about NodeMCU development board and MQTT. The NodeMCU client randomly disconnects from mosquitto broker after some minutes or several hours. I’ve already changed USB power adapter and USB cable with no solution.
Any suggestion?
Thank you.
I am also using the nodemcu development board and mqtt and have found it rock-solid. I am using cloud http://mqtt.com’ free service, though. Not mosquitto
Hello,
I had a similar problem a while back, although in my case it would disconnect very precisely after about 180 seconds or so, and there didn’t seem to be any particular reason why that happened. Mosquitto would simply report that the MQTT client on the ESP8266 had timed out and would disconnect it. To cut a long story short, I found out that my router was using 802.11g+n mode, and once I forced it to use pure 802.11g the problem vanished and hasn’t come back. You can give it a shot and see if it works for you too.
Good luck!
have the same problem with mosquitto latest version and nodemcu 0.9.6 did u solve it?