[GH-ISSUE #1205] WebPortal param save doesn't seem to save to eeprom #1027

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

Originally created by @cpainchaud on GitHub (Feb 4, 2021).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1205

I am using lastest code (using OnDemandWebPortal example) and when I spawn config portal manually to edit some of my saved parameters, it seems to work but after I restart my ESP all values are back to what they were before.

Interestingly if I refresh the params page before i reboot, it properly displays the new values. I suspect they are never written to EEPROM

Originally created by @cpainchaud on GitHub (Feb 4, 2021). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1205 I am using lastest code (using OnDemandWebPortal example) and when I spawn config portal manually to edit some of my saved parameters, it seems to work but after I restart my ESP all values are back to what they were before. Interestingly if I refresh the params page before i reboot, it properly displays the new values. I suspect they are never written to EEPROM
kerem 2026-02-28 01:28:11 +03:00
  • closed this issue
  • added the
    Question
    label
Author
Owner

@cpainchaud commented on GitHub (Feb 4, 2021):

somewhere in my setup:

`WiFiManagerParameter mqtt_s_param("mqtt_s", "hostname or ip", MQTT_SERVER.c_str(), 40);
WiFiManagerParameter mqtt_p_param("mqtt_p", "port", MQTT_PORT.c_str(), 6);
WiFiManagerParameter mqtt_id_param("mqtt_id", "id", MQTT_ID.c_str(), 20);
WiFiManagerParameter mqtt_u_param("mqtt_u", "user", MQTT_USER.c_str(), 20);
WiFiManagerParameter mqtt_sec_param("mqtt_sec", "mqtt password", MQTT_PSWD.c_str(), 20);

void setup_WifiManager(){

const char* menu[] = {"wifi","param","info","close","sep","erase","restart","exit"};

wifiManager.addParameter(&mqtt_s_param);
wifiManager.addParameter(&mqtt_p_param);
wifiManager.addParameter(&mqtt_id_param);
wifiManager.addParameter(&mqtt_u_param);
wifiManager.addParameter(&mqtt_sec_param);

wifiManager.setMenu(menu, sizeof(menu));`

later i call ondemand portal!

wifiManager.setConfigPortalBlocking(false); wifiManager.startWebPortal();

<!-- gh-comment-id:773507157 --> @cpainchaud commented on GitHub (Feb 4, 2021): somewhere in my setup: `WiFiManagerParameter mqtt_s_param("mqtt_s", "hostname or ip", MQTT_SERVER.c_str(), 40); WiFiManagerParameter mqtt_p_param("mqtt_p", "port", MQTT_PORT.c_str(), 6); WiFiManagerParameter mqtt_id_param("mqtt_id", "id", MQTT_ID.c_str(), 20); WiFiManagerParameter mqtt_u_param("mqtt_u", "user", MQTT_USER.c_str(), 20); WiFiManagerParameter mqtt_sec_param("mqtt_sec", "mqtt password", MQTT_PSWD.c_str(), 20); void setup_WifiManager(){ const char* menu[] = {"wifi","param","info","close","sep","erase","restart","exit"}; wifiManager.addParameter(&mqtt_s_param); wifiManager.addParameter(&mqtt_p_param); wifiManager.addParameter(&mqtt_id_param); wifiManager.addParameter(&mqtt_u_param); wifiManager.addParameter(&mqtt_sec_param); wifiManager.setMenu(menu, sizeof(menu));` later i call ondemand portal! `wifiManager.setConfigPortalBlocking(false); wifiManager.startWebPortal();`
Author
Owner

@tablatronix commented on GitHub (Feb 4, 2021):

WM does not write to eeprom or save your params for you

<!-- gh-comment-id:773515828 --> @tablatronix commented on GitHub (Feb 4, 2021): WM does not write to eeprom or save your params for you
Author
Owner

@cpainchaud commented on GitHub (Feb 4, 2021):

Ok, this is confusing : where does it store wifi credentials then? These
are properly saved and remembered....

On Thu, Feb 4, 2021, 19:29 Shawn A notifications@github.com wrote:

WM does not write to eeprom or save your params for you


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/tzapu/WiFiManager/issues/1205#issuecomment-773515828,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABTC5PXCV2QHA7ZX4SXGLMDS5LRRNANCNFSM4XDJPCHA
.

<!-- gh-comment-id:773519339 --> @cpainchaud commented on GitHub (Feb 4, 2021): Ok, this is confusing : where does it store wifi credentials then? These are properly saved and remembered.... On Thu, Feb 4, 2021, 19:29 Shawn A <notifications@github.com> wrote: > WM does not write to eeprom or save your params for you > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > <https://github.com/tzapu/WiFiManager/issues/1205#issuecomment-773515828>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/ABTC5PXCV2QHA7ZX4SXGLMDS5LRRNANCNFSM4XDJPCHA> > . >
Author
Owner

@tablatronix commented on GitHub (Feb 4, 2021):

The esp library stores them automatically

<!-- gh-comment-id:773532940 --> @tablatronix commented on GitHub (Feb 4, 2021): The esp library stores them automatically
Author
Owner

@cpainchaud commented on GitHub (Feb 4, 2021):

Oh sorry! It made sense to me that WifiManager would store all configs, to
avoid the various other pieces ans librairies to "fight" for eeprom space
and step on each other toes. That would be a wonderful addition

On Thu, Feb 4, 2021, 19:58 Shawn A notifications@github.com wrote:

The esp library stores them automatically


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/tzapu/WiFiManager/issues/1205#issuecomment-773532940,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABTC5PRZZDWV4UT56DEDY4TS5LU5ZANCNFSM4XDJPCHA
.

<!-- gh-comment-id:773539444 --> @cpainchaud commented on GitHub (Feb 4, 2021): Oh sorry! It made sense to me that WifiManager would store all configs, to avoid the various other pieces ans librairies to "fight" for eeprom space and step on each other toes. That would be a wonderful addition On Thu, Feb 4, 2021, 19:58 Shawn A <notifications@github.com> wrote: > The esp library stores them automatically > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > <https://github.com/tzapu/WiFiManager/issues/1205#issuecomment-773532940>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/ABTC5PRZZDWV4UT56DEDY4TS5LU5ZANCNFSM4XDJPCHA> > . >
Author
Owner

@tablatronix commented on GitHub (Feb 4, 2021):

Most of the examples use spiffs not eeprom, wm does not tie itself to any specific storage and leaves it to the user. I would love to see some child classes though to do this automatically, just not in core

<!-- gh-comment-id:773615014 --> @tablatronix commented on GitHub (Feb 4, 2021): Most of the examples use spiffs not eeprom, wm does not tie itself to any specific storage and leaves it to the user. I would love to see some child classes though to do this automatically, just not in core
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#1027
No description provided.