mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 09:05:56 +03:00
[GH-ISSUE #960] Can't reset the configs #814
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#814
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 @cacs200281 on GitHub (Nov 5, 2019).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/960
Hello dears,
I am a newbie and so sorry if I'm doing some mistakes but I'm very need your help cause I must deliver my project at University this week.
My problem is when I use this line at my code: wifiManager.resetSettings();
After restart using this line: ESP.restart() that ESP still conects on my router :/
My preliminary infos are:
Arduino IDE V1.8.10 using an ESP-07 configured as Generic esp8266
Board manager: esp8266 by comunity V2.5.2
Library manager: wifimanager by tzapu V 0.14.0
At serial monitor I can see this msg:
*WM: settings invalidated
*WM: THIS MAY CAUSE AP NOT TO START UP PROPERLY. YOU NEED TO COMMENT IT OUT AFTER ERASING THE DATA.
I saw some issues telling about this problem but when I tried to apply that solutions my board still doesn't to reset to the initial config like AP.
Thanks in advance for "any light on my way"
Regards
@rick-pit commented on GitHub (Nov 11, 2019):
Hi, i use eraseConfig instead because i had the same problem, but im not sure if erase all content is good for you... hope this help
@cacs200281 commented on GitHub (Nov 11, 2019):
Hey Rick, I will try your method and update here, thanks a lot!
I found a "stable" config using arduino ide 1.8.10, lib 0.12.0 and board 2.4.0
Regards
@tablatronix commented on GitHub (Nov 11, 2019):
Erase your flash and try again.
@cacs200281 commented on GitHub (Nov 11, 2019):
Ok, now I am away from my home but will update my tests here a.s.a.p.
Thank you
Regards
@tablatronix commented on GitHub (Nov 12, 2019):
Usually if erase config fails, it is because memory is corrupt or changed since it was first written.
If it continues to not work let me know, I have not seen any other issues
@cacs200281 commented on GitHub (Nov 13, 2019):
Hello dears,
The solutions showed by Rick-pit solved that problem, I kept the same initial config (ide arduino+lib version+board version).
Before to share here about my problem I tried to this "reset" attempt in my setup block:
Using physical switch to reset the board, I don't write here but exists a "for" counting the time of that switch is pressed...5seconds and below is the code...
if(digitalRead(sw_reset) == 0)
{
Serial.println("");
Serial.println("Resetando...");
delay(10);
WiFiManager wifiManager;
wifiManager.resetSettings();
SPIFFS.begin();
SPIFFS.format();
delay(2000);
ESP.restart();
}
It forced to AP mode but the message "THIS MAY CAUSE AP NOT TO START....." still were showed by serial monitor.
Now my code is working well applying the solution by Rick-pit, thanks friend.
Thanks a lot dears, I will learning more about the amazings possibilities using ESP family + tzapu lib
Kind regards
@Ruandv commented on GitHub (Jan 14, 2020):
@tablatronix this is a NON issue and can be closed ;-)