Page 1 of 1

EasyESP lost connection to MQTT server

Posted: 07 Aug 2018, 13:33
by mackowiakp
I have four EasyESP based units. All of them works with Domoticz, 3 via MQTT Mosquitto broker and one via Domoticz HTTP. All units using the last available on Github FW, that is Release mega-20180804. The problem is that MQTT based units, lost connection to server - netstat shows that co IP connection is established - but it is possible to login to such unit over WEB and after soft reboot from menu, it works properly next several hours. What the problem it shuld be? Below my mosquitto config file:

Code: Select all

pid_file /var/run/mosquitto.pid
persistence true
persistence_location /var/lib/mosquitto/
log_dest none
#log_dest file /var/log/mosquitto/mosquitto.log
include_dir /etc/mosquitto/conf.d
max_queued_messages 200
message_size_limit 0
allow_anonymous true 
autosave_interval 900
autosave_on_changes false
allow_zero_length_clientid true
allow_duplicate_messages false
persistence_file mosquitto.db
password_file /etc/mosquitto/passwd

Re: EasyESP lost connection to MQTT server

Posted: 07 Aug 2018, 22:21
by TD-er
You could have a look at the sysinfo page and check the IP-address reported there. (when MQTT connection is lost again)
If it is 0.0.0.0, then it is something reported before, but still not known what is causing it.

Re: EasyESP lost connection to MQTT server

Posted: 08 Aug 2018, 10:27
by mackowiakp
So I switch all units to Domoticz HTTP and it works correctly over 2 days.

Re: EasyESP lost connection to MQTT server

Posted: 08 Aug 2018, 21:42
by waspie
My units have been dropping MQTT about once a day for many days now but I've never checked for the 0.0.0.0
at least with the mqtt#connected i can alert openhab to resend commands.

you're not alone