MQTT Reconnection problems
Moderators: grovkillen, Stuntteam, TD-er
MQTT Reconnection problems
hi
i have 3 sonoff's with espeasy with ESP_Easy_mega-20191003_normal_ESP8266_1M.bin running.
all connected to my iobroker mqtt server.
sometimes they lost the connection to the mqtt server. in the log of the esp's:
MQTT : Intentional reconnect
MQTT : Failed to connect to broker
Restarting of the esp's or the broker doesn't solve the problems.
when i deactivate in the controller settings: MQTT enable, reboot, activate, reboot. They connect again
this on all esp's!
Is there any other way to log the error or has anyone a hint for me?
thanks
pat
i have 3 sonoff's with espeasy with ESP_Easy_mega-20191003_normal_ESP8266_1M.bin running.
all connected to my iobroker mqtt server.
sometimes they lost the connection to the mqtt server. in the log of the esp's:
MQTT : Intentional reconnect
MQTT : Failed to connect to broker
Restarting of the esp's or the broker doesn't solve the problems.
when i deactivate in the controller settings: MQTT enable, reboot, activate, reboot. They connect again
this on all esp's!
Is there any other way to log the error or has anyone a hint for me?
thanks
pat
Re: MQTT Reconnection problems
Hmm, that's strange.
If you power down the ESP units for longer than the set timeout in the MQTT broker, does it then properly reconnect?
Typical timeout on the broker side is 10 - 15 seconds.
If you power down the ESP units for longer than the set timeout in the MQTT broker, does it then properly reconnect?
Typical timeout on the broker side is 10 - 15 seconds.
Re: MQTT Reconnection problems
i must wait when it happens again and test it....
i can't reproduce it manualy
i can't reproduce it manualy
Re: MQTT Reconnection problems
after power down and waiting about 5 minutes, also no connection
if i change the ip adress and back again, it works
??
if i change the ip adress and back again, it works
??
Re: MQTT Reconnection problems
Change the IP address of what?
The controller or the node?
The controller or the node?
Re: MQTT Reconnection problems
The ip of the mqtt broker in espeasy.
Re: MQTT Reconnection problems
Is the MQTT broker in your own network?
Do you have it configured by host name or IP?
Could it be the IP of the broker has changed? This could be an indication the cache used for a DNS lookup may be flawed.
Do you have it configured by host name or IP?
Could it be the IP of the broker has changed? This could be an indication the cache used for a DNS lookup may be flawed.
Re: MQTT Reconnection problems
Yes
IP
No, the IP of the Broker (ioBroker) is fix.
Who is online
Users browsing this forum: No registered users and 36 guests