mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 00:55:52 +03:00
[GH-ISSUE #1111] Value for Checkboxes overwritten - "Advanced" example #951
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#951
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 @Lithimlin on GitHub (Aug 20, 2020).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1111
Basic Infos
Hardware
WiFimanager Branch/Release:
Esp8266/Esp32:
Hardware: ESP-12e, esp01, esp25
ESP Core Version: 2.4.0, staging
Description
I've tried using the checkboxes (as in the "Advanced" example) to enable and disable things on my ESP. While doing that I figured out that once you disable a checkbox and exit the configuration or let the AP timeout, the value saved in the
WiFiManagerParameteris lost and the checkbox will not work again.How to reproduce
Params, clicksavewithout enabling the checkboxThe value of the checkbox will remain empty even if it is checked
Sketch
"Advanced" example:
Debug Messages
@Lithimlin commented on GitHub (Aug 24, 2020):
Any idea what could be causing this? I'm trying to understand the library atm to see if I find the issue and am possibly able to fix it.
@Lithimlin commented on GitHub (Aug 24, 2020):
So the issue seems to lie with this method:
and the
saveParamCallbackin the example. I added two lines to reset the value afterwards in the example:@lchamiso commented on GitHub (Oct 7, 2021):
I have the same problem.
Someone managed to solve?
@tablatronix commented on GitHub (Oct 7, 2021):
is it an issue with ids? There was a similar issue reported
@Lithimlin commented on GitHub (Oct 18, 2021):
iirc, this was indeed an issue with the IDs. I think #1130 fixed it. Though it's been a while so no guarantees.
@knylbyte commented on GitHub (Jul 14, 2023):
I know this thread is old but i run into the same issue. I have some checkboxes with const hidden ip address but if the user don't enable the check box the value of this uncheck checkbox will be overwritten with an empty string.
So I don't thing this issue is fixed.
Maybe its not important but all parameters are global.
main.cpp
callback function
LOG output