Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG :Fail to find any SSID if connection is already saved #16

Open
milansim opened this issue Dec 6, 2022 · 3 comments
Open

BUG :Fail to find any SSID if connection is already saved #16

milansim opened this issue Dec 6, 2022 · 3 comments

Comments

@milansim
Copy link

milansim commented Dec 6, 2022

This is quite problematic ! If device is configured for one network and then ported to new location where is different network credentials device is in endless loop searching for SSID's but dont find any

only solution that work in this case but is not a viable option for me
if (ESPConnect.isConfigured()){ESPConnect.erase();}

Also I have a wifi check procedure in place as ESP32 wifi is buggy but for some reason when using your library ESP think it is still connected while it is actually not connected. I tried both
if (ESPConnect.isConnected()){
if (WiFi.status() == WL_CONNECTED){
both return true while wifi disconnected !?!

@milansim
Copy link
Author

milansim commented Dec 7, 2022

f (WiFi.status() == WL_CONNECTED){ problem seems to be only when on my guest network, not related to your library

@khseal
Copy link

khseal commented Mar 21, 2023

I confirm there is a bug. Fix please.

@adojang
Copy link

adojang commented Apr 4, 2023

A workaround I used is to edit line 231 if(WiFi.status() != WL_CONNECTED){
in the ESPCOnnect.cpp,
if(WiFi.status() != WL_CONNECTED){ ESPCONNECT_SERIAL("Connection to STA Falied [!]\n"); //This is a mod I added that will delete all saved networks and reboot the ESP32 if (ESPConnect.isConfigured()){ ESPCONNECT_SERIAL("Deleting All Saved Networks and Rebooting...\n"); ESPConnect.erase(); ESP.restart(); } }

This is a workaround with one major problem: if your Wifi is ever off when the ESP boots you'll have to reconfigure the device through the captive portal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants