[GH-ISSUE #234] delete saved SSID and password #193

Closed
opened 2026-02-28 01:23:56 +03:00 by kerem · 6 comments
Owner

Originally created by @fubax on GitHub (Oct 10, 2016).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/234

Hi.
I use wifimanger for my project and it's works fine.now I need a way to delete the saved ssid and password so I can use AP mode again and setup it with new ssid and pass.
I Know that if I turn off wifi modem my esp goes to AP mode but I wish to connect a pushbutton to my esp8266 and clear the previous saved configuration with that pushbutton.
Please help me.
Thanks.

Originally created by @fubax on GitHub (Oct 10, 2016). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/234 Hi. I use wifimanger for my project and it's works fine.now I need a way to delete the saved ssid and password so I can use AP mode again and setup it with new ssid and pass. I Know that if I turn off wifi modem my esp goes to AP mode but I wish to connect a pushbutton to my esp8266 and clear the previous saved configuration with that pushbutton. Please help me. Thanks.
kerem closed this issue 2026-02-28 01:23:56 +03:00
Author
Owner

@tzapu commented on GitHub (Oct 10, 2016):

hi,

just call wifiManager.resetSettings() on button press, followd by and ESP.reset()

that should do it

cheers

<!-- gh-comment-id:252574936 --> @tzapu commented on GitHub (Oct 10, 2016): hi, just call wifiManager.resetSettings() on button press, followd by and ESP.reset() that should do it cheers
Author
Owner

@fubax commented on GitHub (Oct 10, 2016):

Thank you tzapu .But when I insert wifiManager.resetSettings() in my sketch it give me this error:
exit status 1 'wifiManager' was not declared in this scope
My wifimanager version is 0.12.0
I'm test it with WifiManager.resetSettings() but got the this error:
exit status 1 expected unqualified-id before '.' token

<!-- gh-comment-id:252579026 --> @fubax commented on GitHub (Oct 10, 2016): Thank you tzapu .But when I insert wifiManager.resetSettings() in my sketch it give me this error: `exit status 1 'wifiManager' was not declared in this scope` My wifimanager version is 0.12.0 I'm test it with WifiManager.resetSettings() but got the this error: `exit status 1 expected unqualified-id before '.' token`
Author
Owner

@tzapu commented on GitHub (Oct 10, 2016):

hi, sorry, it s probably not defined as a global.

do wifi.disconnect() in place of that followed by the rest.

cheers

<!-- gh-comment-id:252579264 --> @tzapu commented on GitHub (Oct 10, 2016): hi, sorry, it s probably not defined as a global. do wifi.disconnect() in place of that followed by the rest. cheers
Author
Owner

@fubax commented on GitHub (Oct 10, 2016):

Thank you tzapu.
You save my day.
It works.

<!-- gh-comment-id:252580708 --> @fubax commented on GitHub (Oct 10, 2016): Thank you tzapu. You save my day. It works.
Author
Owner

@tzapu commented on GitHub (Oct 10, 2016):

cool, i am glad.

have fun

<!-- gh-comment-id:252582610 --> @tzapu commented on GitHub (Oct 10, 2016): cool, i am glad. have fun
Author
Owner

@kentaylor commented on GitHub (Oct 10, 2016):

You could also consider a version of WiFiManager that operates on button press only

<!-- gh-comment-id:252736335 --> @kentaylor commented on GitHub (Oct 10, 2016): You could also consider a version of WiFiManager that operates on [button press only](https://github.com/kentaylor/WiFiManager#configuration-portal-initiation-not-automatic)
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#193
No description provided.