mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 00:55:52 +03:00
[GH-ISSUE #1088] getParam() example #928
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#928
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 @dontpanic21 on GitHub (Jul 3, 2020).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1088
Hi,
could you please update the "Advanced.ino" example to show how to retrieve custom parameters on normal startup.
This example includes the function getParam() however I've found that if I attempt to use this function on normal startup (ie after the wifi and parameter info has been saved and the device resets) it causes a crash.
Thanks
@tablatronix commented on GitHub (Jul 3, 2020):
are you saving the parameters? You have to save and get them yourself, wm doesnt
@dontpanic21 commented on GitHub (Jul 3, 2020):
Hi, thanks for the reply.
I'm pretty much just following the Advanced.ino example, I have not added
an additional save function to that.
I do have the save webpage enabled, I enter the wifi, password and the
radiobutton parameter and hit "save". At that point in the serial monitor
output I see that the parameter is saved with the expected value. I can
only assume from that that the parameter is saved.
The save function also does a reset, I let it reboot and at that point I'm
trying to use getParam() which is where it crashes.
thanks,
Will.
On Fri, Jul 3, 2020 at 2:25 PM Shawn A notifications@github.com wrote:
@tablatronix commented on GitHub (Jul 3, 2020):
you have to look at the spiffs examples, you ahve to save the params somewhere.
@dontpanic21 commented on GitHub (Jul 3, 2020):
Ok thanks, I'll do that, but just to clarify... if you have your extra parameters on the wifi page and you click on "save" it saves the wifi settings but not the parameters? you get the parameter values from the callback and then save them yourself?
@tablatronix commented on GitHub (Jul 4, 2020):
Yes exactly the wifi stuff is saved by the esp lib wm never saves anything on its own since it is hard to know what a user wants to use , flash , spiffs, tinyfs, cloud services etc
@dontpanic21 commented on GitHub (Jul 4, 2020):
ok, understand. thanks for the help.
Will.
On Sat, Jul 4, 2020 at 2:10 PM Shawn A notifications@github.com wrote: