mirror of https://github.com/lumapu/ahoy.git
Browse Source
When isHidden is set, try WiFi.begin(ssid, pwd) without a BSSID up to 3 times (20 s timeout each) before falling back to the existing blind- scan BSSID carousel. The SDK's directed probe picks the strongest matching AP automatically. Clear stale mBSSIDList before each direct attempt so a CONNECTING timeout returns to DISCONNECTED (not stale SCAN_READY). Gate on !mScanActive to avoid overlapping WiFi.begin with an active scan. Reset mDirectAttempts on GOT_IP and on disconnect-from-connected. Worst case (all 3 direct attempts fail) = 60 s overhead before the existing scan path runs — functionally identical to current behavior. Measured: reconnect drops from 50-120+ minutes to ~5-8 seconds on a hidden-SSID network with two APs at RSSI -78..-91 dBm.pull/1891/head
1 changed files with 15 additions and 1 deletions
Loading…
Reference in new issue