mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 00:55:52 +03:00
[GH-ISSUE #1442] Restoring Persistent Wi-Fi Data on the ESP8266 #1234
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#1234
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 @bergutja on GitHub (Jun 28, 2022).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1442
github.com/tzapu/WiFiManager@65fec94317/WiFiManager.cpp (L3638-L3639)I think these 2 lines of code should be like this:
if(persistent) wifi_station_get_config(&conf);
else wifi_station_get_config_default(&conf);
This resolves restoring persistent wifi data on the ESP8266.
@tablatronix commented on GitHub (Jun 28, 2022):
Resolves what? Whats the issue?
@tablatronix commented on GitHub (Jun 28, 2022):
@bergutja commented on GitHub (Jun 29, 2022):
Solution to: "This resolves restoring persistent wifi data on the ESP8266."
Solve the problem in the ESP8266 of loading the wifi data configured and saved via the web.
Well, every time it restarted it went into configuration mode and did not connect the saved wifi.
I understand that persistent wifi is to save the wifi and keep it on every reboot. I'm wrong?
Thank you
@tablatronix commented on GitHub (Jun 29, 2022):
I mean it has been working, noone has opened any bugs saying anything was broken. Persistent should already be working. If you are having issues with data saving, it could be corrupt flash, try a full erase, or a bug in an older version of esp library you are using
@bergutja commented on GitHub (Jun 30, 2022):
If you look at the code, when the "persistent" variable is true it retrieves the default data, but if the variable is false it retrieves the saved data, shouldn't it be the other way around?
I have changed those 2 lines and now it works perfectly for me when recovering the data saved on the web, before they were continuously deleted.
Thank you and greetings.
@tablatronix commented on GitHub (Jun 30, 2022):
wifi_station_get_config_defaultIS the saved data, that code i posted above is from the esp library itself in begin()