mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-24 11:16:34 +00:00
scan wifi asynchronously (#21498)
This commit is contained in:
parent
00694abbde
commit
33f491a8e6
@ -1987,7 +1987,11 @@ void HandleWifiConfiguration(void) {
|
||||
#ifdef USE_EMULATION
|
||||
UdpDisconnect();
|
||||
#endif // USE_EMULATION
|
||||
int n = WiFi.scanNetworks();
|
||||
int n = WiFi.scanNetworks(true);
|
||||
while(n<0){
|
||||
delay(50); // some magic number - maybe non optimal
|
||||
n = WiFi.scanComplete();
|
||||
}
|
||||
AddLog(LOG_LEVEL_DEBUG, PSTR(D_LOG_WIFI D_SCAN_DONE));
|
||||
|
||||
if (0 == n) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user