[GH-ISSUE #1088] getParam() example #928

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

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

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
kerem closed this issue 2026-02-28 01:27:43 +03:00
Author
Owner

@tablatronix commented on GitHub (Jul 3, 2020):

are you saving the parameters? You have to save and get them yourself, wm doesnt

<!-- gh-comment-id:653338275 --> @tablatronix commented on GitHub (Jul 3, 2020): are you saving the parameters? You have to save and get them yourself, wm doesnt
Author
Owner

@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:

are you saving the parameters? You have to save and get them yourself, wm
doesnt


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

<!-- gh-comment-id:653341984 --> @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: > are you saving the parameters? You have to save and get them yourself, wm > doesnt > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > <https://github.com/tzapu/WiFiManager/issues/1088#issuecomment-653338275>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AG5F7PBQPXGU56S27OGH7STRZVMSXANCNFSM4OPMCYVA> > . >
Author
Owner

@tablatronix commented on GitHub (Jul 3, 2020):

you have to look at the spiffs examples, you ahve to save the params somewhere.

<!-- gh-comment-id:653577490 --> @tablatronix commented on GitHub (Jul 3, 2020): you have to look at the spiffs examples, you ahve to save the params somewhere.
Author
Owner

@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?

<!-- gh-comment-id:653689482 --> @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?
Author
Owner

@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

<!-- gh-comment-id:653718237 --> @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
Author
Owner

@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:

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


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

<!-- gh-comment-id:653737587 --> @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: > 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 > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > <https://github.com/tzapu/WiFiManager/issues/1088#issuecomment-653718237>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AG5F7PCD5DTXJRNPYGD5G2TRZ2TTHANCNFSM4OPMCYVA> > . >
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#928
No description provided.