mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 09:05:56 +03:00
[GH-ISSUE #1602] AP mode if saved network not available #1368
Labels
No labels
📶 WiFi
🕸️ HTTP
Branch
DEV Help Wanted
Discussion
Documentation
ESP32
Example
Good First Issue
Hotfix
In Progress
Incomplete
Needs Feeback
Priority
QA
Question
Task
Upstream/Dependancy
bug
duplicate
enhancement
invalid
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/WiFiManager#1368
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @micronthings on GitHub (May 11, 2023).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1602
After device started, AP mode starts, if saved network is not available. Is there any way to turn this feature off?
My problem is: in case of electrical blackout the device can't connect if the router starts later than the device. (WiFi network is not exist at the moment when device starts). For my use case would better if the device tries connect to saved network permanently in this case.
@toome123 commented on GitHub (May 18, 2023):
i think you can just restart the device if no connection established. Here example with ESP
bool isConnected = wifiManager.autoConnect("WIFI", "password"); if(isConnected){ Serial.println("Connected to WIFI"); }else{ Serial.println("Unable to connect to WIFI"); Serial.println("failed to connect and hit timeout"); delay(3000); //reset and try again, or maybe put it to deep sleep ESP.restart(); delay(5000);}
@tablatronix commented on GitHub (May 18, 2023):
You can use the configportaltimeout or add some checks to see if creds are saved or not or use ondemand only. This is asked many times here in issues