I wonder how the ESPeasy works when I reboot my Wifi router or the router is down for more then 10 minutes. Does it connect by itself when the wifi router is up again?
Thanks in advance…
Does ESPEasy reconnects after reboot Wifi router?
I wonder how the ESPeasy works when I reboot my Wifi router or the router is down for more then 10 minutes. Does it connect by itself when the wifi router is up again?
Thanks in advance…
Hi @lschip,
In the last dev version R95, regulates the following:
Added periodic Wifi reconnect check when Wifi connection is lost, the AP will be active During this stage (see ReleaseNotes.ino)
Pimatic = Smart Home
Maybe I don’t understand it right.
I mean when the ESPEasy acts like a Wifi client, not as an accespoint.
So the wifi router (accespoint) is down and comes up lateron, does the ESPEasy recconect as client tot the wifi router accespoint?
thanks!
My understanding is that they run both.
I never thought this test. I have reserved the AP for this use.
Pimatic = Smart Home
I have an espeasy running with R107. I reboot my cisco wifi rooter every week (as it gets slow over the week) automatically from my RPi, and 4 minutes later I restart pimatic.
I do lose connection though with my espeasy, or more probably: my espeasy with mosquitto. I’m not sure.
What I do now is rebooting the espeasy when pimatic restarts (as pimatic is also restarted after the wifi rooter reboot). It also means that the espeasy is rebooted when I restart pimatic after a config change, but I don’t care.
The rule:
"rule": "if pimatic is starting then execute \"curl --silent http://192.168.144.242/?cmd=reboot > /dev/null\""
The 192.168.144.242
is of course the fixed ip-address of my espeasy.
You could also run the curl command from your crontab every night or so, but that’s not necessary (in my case).
The strange thing is that my mysensors Esp8266 MQTT client wifi gateway does not loose connection to pimatic and continues delivering its data.
Edit: the ESPEasy does not always lose the connection. It happened twice to me now. Maybe due to the fact that the R107 is not a stable version.
Several times I turned off the AP. It behaves quite erratically. I have the version R91, R100, R103 and 2x R107.
Every time begins to detach diferrent ESPEasy.
Since version R95 it should behave as follows: http://www.esp8266.nu/forum/viewtopic.php?f=4&t=1146&p=5435&hilit=reconnect+to+AP#p5435
EDIT: I made a few more trial and R91 are connected at a time. It has some connection with the link above.
Pimatic = Smart Home
I also have a rule that when the values are not updated for more than 15 minutes it reboots the ESPEasy, but until now that rule has never kicked off.
(Actually I have multiple versions of those rules: for my ESPEasy, for 2 Espimatics and for my mysensors MQTT Espgateway. And a crontab script that checks every 10 minutes whether pimatic still runs. I guess I’m quite paranoid )
Edit: After such a “broken connection” I can still access the webgui on the ESPEasy. It is the data transfer to mosquitto that doesn’t function. Either it has stopped sending, or the sending itself is somehow not reaching mosquitto.
@Harry-van-der-Wolf said
Edit: After such a “broken connection” I can still access the webgui on the ESPEasy. It is the data transfer to mosquitto that doesn’t function. Either it has stopped sending, or the sending itself is somehow not reaching mosquitto.
Yes, wifi is connected correctly. Only a connection to the broker is periodically disconnected. Maybe the problem is PubSub client. ESPEasy uses the old version.
Pimatic = Smart Home
@wutu said in Does ESPEasy reconnects after reboot Wifi router?:
Yes, wifi is connected correctly. Only a connection to the broker is periodically disconnected. Maybe the problem is PubSub client. ESPEasy uses the old version.
It’s a very old version from Oct/Nov 2012. However, mysensors 2.0 Dev uses the same old 1.9 version and the mqttclient of that one remains stable.
Edit: no it doesn’t. mysensors 2.0 dev uses the latest 2.6 pubsubclient for the MQTT gateway.