Page 1 of 1

Many MQTT reconnects in 113

Posted: 03 Aug 2016, 08:34
by ambassadoro
Hello!

I have many mqtt-reconnects in my logfile with the build 113 on a sonoff device. Some month ago, I had kind of the same issue and it dissapeared when I connected a temp-sensor as a device to publish. Unfortunately, in the sonoff is no possibility to define a device sensor.
Maybe its a timing problem.

I have another sonoff running with ancient build 78, thats not making any troubles.

Code: Select all

42820719 : MQTT : Connection lost
42821727 : MQTT : Connected to broker
42821729 : Subscribed to: /lights/#
42823731 : SYS : -53.00
42823731 : EVENT: Wifi#Wifi=-51.01
42850720 : WD : Uptime 714 ConnectFailures 2461 FreeMem 28712
42850720 : MQTT : Connection lost
42851728 : MQTT : Connected to broker

Re: Many MQTT reconnects in 113

Posted: 03 Aug 2016, 19:01
by Yves911
I think your problem is because Unit nr Each ESP Easy unit needs a unique number in the range 1-31. This is important for MQTT connections and the Node list! Do not forget to set this field to a non-zero value, not conflicting with other units.
see here http://www.esp8266.nu/index.php/ESPEasy
Cheers

Re: Many MQTT reconnects in 113

Posted: 04 Aug 2016, 21:03
by fluppie
Any idea why it's limited to 31 nodes?

Re: Many MQTT reconnects in 113

Posted: 05 Aug 2016, 08:22
by ambassadoro
Great!
That was the solution, I changed from 99 to 17 and now it works!