Qrome / marquee-scroller

Marquee Scroller Clock News Weather and More
https://www.thingiverse.com/thing:2867294
MIT License
330 stars 158 forks source link

Wifi/power lost -> reconnect does not work #219

Closed dexter2111 closed 2 years ago

dexter2111 commented 2 years ago

When the power is lost and came back, the ESP8266 start before the wifi router, WiFi message is showing on display. A have to reconnect the power supply on ESP8266(does not auto-connect), after the router start.

Qrome commented 2 years ago

Not sure what is different about your network, but this is not an issue. Please check the lease or of there is another authentication required to retain IP address. What is the IP lease length on the router?

brianmiller1956 commented 2 years ago

I have a similar situation with regular power cuts, my understanding is that the router takes about 2 minutes from power on before Wi-Fi actually starts broadcasting, the esp8266 is looking for the network within a second or two of power on. I just wait for the router to show it has finished booting and then reset the 3 scrollers that I have. Works every time.

Sent from my iPad Pro

On 27 Nov 2021, at 19:49, Qrome @.***> wrote:

 Not sure what is different about your network, but this is not an issue. Please check the lease or of there is another authentication required to retain IP address. What is the IP lease length on the router?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

dexter2111 commented 2 years ago

Hi Qrome, The address lease time is 120 min. I have 5 devices with Esp 8266, on my network, only with marquee-scroller, a have this issue.(static IP) 2 are Sonoff , and 3 are Blynk , all with DHCP. Thank you.

Leonessa02016 commented 2 years ago

I have exactly the same situation.In my understanding the problem is that the Wi-Fi signal from the router takes more time with respect the time that esp8266 is looking for the network 8few seconds). So is it possible to increase the time that esp8266 is looking for the network (from few seconds to some minutes) ? Thanks you

dexter2111 commented 2 years ago

I have set the address lease time to maxim value on the wifi router,but that don't fix this issue. The esp8266 should try connect to wifi, 3-4 times, with a delay of 1-2min before the next attempt.

dexter2111 commented 2 years ago

@Qrome There is a solution for this issue? Thank you.

Qrome commented 2 years ago

No, not offering a solution for this. You will simply have to start the device after the router and network are up and running.