[GH-ISSUE #1368] WiFi Manager Reset Settings #1171

Closed
opened 2026-02-28 01:28:50 +03:00 by kerem · 3 comments
Owner

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?

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?
kerem 2026-02-28 01:28:50 +03:00
  • closed this issue
  • added the
    Question
    label
Author
Owner

@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?

<!-- gh-comment-id:1065070818 --> @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?
Author
Owner

@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..

<!-- gh-comment-id:1065122484 --> @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..
Author
Owner

@renanmbs commented on GitHub (Apr 7, 2022):

It worked! Thank you

<!-- gh-comment-id:1091906149 --> @renanmbs commented on GitHub (Apr 7, 2022): It worked! Thank you
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/WiFiManager#1171
No description provided.