-->
Page 1 of 1

Wemos D1 Mini forgetting the access-point credentials

PostPosted: Thu Sep 05, 2019 2:53 pm
by majidnasiri
Hi there,

I have more than 20 Wemos D1 mini in a project but two of them are forgetting the access-point credentials after a couple of days (some times after 4-5 days some times after 20-30 days). All of them are using wifi manager and same codes. When they forget the AP, they will be disconnected and I have to find them on my phone, select the AP and set the password again.
Does anyone have any idea why this problem is happening

Thanks

Re: Wemos D1 Mini forgetting the access-point credentials

PostPosted: Fri Sep 06, 2019 5:49 am
by btidey
The only occasions where I have had this type of issue have been with module that was in an awkward screened spot where connection to the normal router was a bit marginal. I re-positioned it slightly.

I do, however, put in some defensive coding around WifiManager to avoid getting stuck in its local AP mode. Basically, I use its time-out set to around 3 minutes so that if it ever goes into local AP then it quits. The code then retries the saved Wifi connection and if that then fails then the loop repeats.