mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 09:05:56 +03:00
[GH-ISSUE #293] How to check if there are saved wifi credentials #246
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#246
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 @gonsays on GitHub (Jan 12, 2017).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/293
Is there any simple way, on WiFiManager, to check whether there are wifi credentials saved or not?
I have an ESP8266 connected to a button. If I press the button upon esp's startup it will do: wifiManager.resetSettings() and wifiManager.autoConnect("AutoConnectAp").
Besides the button, I would like to have another option: if there are no previously saved settings it would launch the autoConnect function. To do so, I would use an IF LOOP to check that there are no saved settings and launch the WiFiManager AP mode for configuration.
Thank you very much in advance!
@skx commented on GitHub (Feb 1, 2017):
The following will output the saved values, if any:
You can test if they are null/empty as you wish :)