mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 00:55:52 +03:00
[GH-ISSUE #1623] Customfields saved values not display on portal #1381
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#1381
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 @zstergios on GitHub (Jun 8, 2023).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1623
When I configure the settings are saved and everything works great, if I start the portal to change some settings, the last saved values are not display and default value is displayed.
The thrid parameter is default value.
I expected to see the last saved value instead. Is it bug or I missing something?
Debug Messages
@tablatronix commented on GitHub (Jun 9, 2023):
you have to restore saved values, wm doesnt know what you saved
@zstergios commented on GitHub (Jun 9, 2023):
How to restore them?
This way causes restarts
and that way returns empty value probably because it's before adding the "custom_weburl" to wm.addParameter
@zenz commented on GitHub (Mar 4, 2024):
@tablatronix commented on GitHub (Mar 5, 2024):
What do you mean? Thats called in a callback whats the scope here?
@zenz commented on GitHub (Mar 5, 2024):
you can just try to compile and run the Advanced samples, while using custom_field, if you want to get custom_field value, it will crash, since wm.server is equal to nullptr.
@tablatronix commented on GitHub (Mar 5, 2024):
Still not sure what you are calling, this happens in the example with no changes?
@zenz commented on GitHub (Mar 6, 2024):
while compile and running this sample
https://github.com/tzapu/WiFiManager/blob/master/examples/Advanced/Advanced.ino
you will find that custom field value with name "customfieldid" cannot be get and store, at that moment calling wm.server, it's nullptr. you will never have a chance to use hasArg or arg to check and get the value.
@tablatronix commented on GitHub (Mar 8, 2024):
But its only called from the callback is it not?