mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 09:05:56 +03:00
[GH-ISSUE #1368] WiFi Manager Reset Settings #1171
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#1171
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 @renanmbs on GitHub (Mar 5, 2022).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1368
Hello, I have a question:
If I don't specify 'wifiManager.resetSettings(); ' the previous wifi information will not be deleted, correct? It will run once, save the information and use it.
How would a person change their wifi settings without changing the code, if they want to? Do I have to create a button that if it is pressed, resets the settings, then reboots the esp?
@ChristophCaina commented on GitHub (Mar 11, 2022):
that's how I would do it.
In my case, I have also included a "debug" slide switch - the switch will be checked during setup() - if the switch is set to off, the debug would be set to false; if it is on, it will set debug to true - and also do the wifimanager.resetSettings();...
For user-Reset, I would also include a push-button which will call the resetSettings() - maybe, this can be combined with the reset-pin / reset switch on the chip / dev.board?
@tablatronix commented on GitHub (Mar 11, 2022):
There are a few ways, you can have a on demand resetsettings to wipe credentials, or on demand start the portal via a button etc ( examples for this are included )
If you only have a reset button there are some libraries to count resets and do it that way.
Wiping settings is by far the easiest to code.as its just reset and reboot especially if its something that rearely has to be done.
You can also run the webserver all the time in sta mode and have it always available..
@renanmbs commented on GitHub (Apr 7, 2022):
It worked! Thank you