The problem seems to be that the esp8266 tries to reconnect in 1s intervals:
Code: Select all
398728> Wifi disconnected from ssid lambda, reason beacon_timeout (200)
398728> f -240, scandone
400861> Wifi disconnected from ssid lambda, reason no_ap_found (201)
400861> no lambda found, reconnect after 1s
400963> reconnect
400963> f 0, scandone
403094> Wifi disconnected from ssid lambda, reason no_ap_found (201)
403094> no lambda found, reconnect after 1s
403196> reconnect
403196> f -240, scandone
405327> Wifi disconnected from ssid lambda, reason no_ap_found (201)
405328> no lambda found, reconnect after 1s
405429> reconnect
405430> f 0, scandone
407568> Wifi disconnected from ssid lambda, reason no_ap_found (201)
407568> no lambda found, reconnect after 1s
407670> reconnect
407670> f -240,
Maybe it is possible to set the interval to a higher value? The SDK documentation did not help, and I also do not want to completely disable reconnects by means of wifi_station_set_reconnect_policy();
The idea is that the user can reconfigure/fix wifi settings by connecting to the esp8266 AP. But we also do not want to switch to AP-only mode because it may still be possible that the AP is just temporary off the grid.