mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 09:05:56 +03:00
[GH-ISSUE #180] Crash on AutoConnectWithFSParameters #143
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#143
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 @odilonafonso on GitHub (Jun 2, 2016).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/180
I tried to use this sample, without changes, got this error:
Any suggestion ?
Thanks
@odilonafonso commented on GitHub (Jun 3, 2016):
After formatting, without crash
@DavidTruyens commented on GitHub (Jul 30, 2017):
Hi @odilonafonso, @tzapu,
I have the same issue. And it works again after formatting. But if I push the reset button with formatting turned off it crashes again.
I'm using an Adafruit Huzzah with the HTTPRedirect from @electronicsguy.
@nhaduy99 commented on GitHub (Jul 31, 2017):
Hi, I had the same problem. I have a solution that:

This is due to the FS parameter problem at the beginning after resetting the ESp8266, the WifimanagerFSparameter.ino file firstly will read the JSON file which has already saved in FS memory. When you fist program to a new ESP, FS file has no JSON file in its FS memory, then it causes error like that.
To solve that problem I did following steps:
Step 1: You have to reprograme again but commented out the 4 lines (In my program I added 4 parameters and the ESP will check and read them in FS at the beginning, other parts is good to let it be) We commented out to let the ESP ignore it to prevent the error.
Step 2: Then you will get no error any more, get into the WiFi Configuration and add values for 4 parameters. Check if the FS is saved all parameter or not. But this time when you reset the ESP it will not read the 4 parameters because you have commented the 4 lines above.
Step 3: After ESP saved the parameter successfully, then you un-commented these 4 lines again and upload the code 1 more time to make the ESP read the FS at the beginning.
Then next time you will get no error until you want to add new parameters (or change the name of parameters)
That's it, the problem solved for me. How about you, please comment is issue your result.
Regards
Seppy
@DavidTruyens commented on GitHub (Jul 31, 2017):
Hi @nhaduy99 ,
seems to work! I'll do some more testing soon.
Thanks for your reaction!