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

Getting stuck in AP mode with unreliable WiFi connections #739

Open
towboogie opened this issue Sep 22, 2018 · 8 comments
Open

Getting stuck in AP mode with unreliable WiFi connections #739

towboogie opened this issue Sep 22, 2018 · 8 comments
Labels
DEV Help Wanted Developer Needs Help Question User Question member to member support

Comments

@towboogie
Copy link

Hi,

I have a V2 nodemcu that does a Get request to a server to read values every 5 minutes.

I am using wifiManager 0.1.4.0 to establish the WiFi connection every 5 minutes.

The WiFi at devices location is a little bit unreliable, so when the wifi is down, the esp will create a AP/ captive portal and will no longer try to see the saved wifi network.

Is there a work around for this situation? I have tried wifiManager.setConfigPortalTimeout(180); but this just restarts the captive portal instead of checking for the existing wifi network

Serial.begin(115200); WiFiManager wifiManager; wifiManager.setConfigPortalTimeout(30); wifiManager.autoConnect("Du YVest"); Serial.begin(115200); WiFiManager wifiManager; wifiManager.setConfigPortalTimeout(30); wifiManager.autoConnect("Autoconnect");
thanks

Mark

@Van4ik
Copy link

Van4ik commented Oct 1, 2018

I have a same question. How i can disable a AP, when i configured settings in station mode?

@ubergeekseven
Copy link

ubergeekseven commented Nov 28, 2018

Me too, having the same problem on all the devices with WiFi manager.

@tablatronix
Copy link
Collaborator

No idea what your code does, do it in your code.
Or dont call autoconnect

@Swiftnesses
Copy link

I also face this issue, I assume the timeout would recheck the saved network before starting :-(

@salvq
Copy link

salvq commented Sep 20, 2019

I would also very appreciate function that wifimanager in parallel keep checking for known AP credentails (in case router gets powerred off / restarted / firmware upgrade etc.) .

When no visible known network, you would end up having portal (AP mode) to enter new credential until the known network is visible, then board returns to client mode.

Is there any was to make this or workaround in sketch ?

Thanks

@tablatronix
Copy link
Collaborator

esp already does this..

@Swiftnesses
Copy link

esp already does this..

The ESP does, yes, but with regards Wifi Manager, it doesn't work ideally when used with unstable connection (as per the issue).

@tablatronix
Copy link
Collaborator

You can use ondemand non blocking configportal and start and stop it yourself..

Most of this can be done in user code now in development branch

@tablatronix tablatronix added DEV Help Wanted Developer Needs Help Question User Question member to member support labels Sep 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DEV Help Wanted Developer Needs Help Question User Question member to member support
Projects
None yet
Development

No branches or pull requests

6 participants