espressif / ESP8266_NONOS_SDK

ESP8266 nonOS SDK
Other
926 stars 536 forks source link

"reconnect after 1s": Larger interval possible? #244

Open kriegste opened 5 years ago

kriegste commented 5 years ago

When we set wifi_station_set_reconnect_policy to true and there is some kind of problem with the wifi (wrong password or ap not present), the module tries to reconnect every single second ("reconnect after 1s"). We use STATIONAP_MODE in this case so the user has an option to set the correct wifi options (via a web server accessible through the access point the module opens). The problem with this is, all those reconnection attempts seem to cause a very high cpu load which makes the access point quite laggy. Also, the module even seems to change channels (while scanning) which also disrupts the access point feature. I think that one attempt every second is way too much.

Is there any option to expand the reconnection time to maybe 15 seconds?

MaBecker commented 5 years ago

This would be a benefit for all using this SDK.