mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 00:55:52 +03:00
[GH-ISSUE #699] Adding extra parameters is not wotking in the WiFiManager-development part #583
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#583
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 @pvdw0310 on GitHub (Aug 15, 2018).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/699
Hi,
I'm new to the WiFiManager project and I was testing it for a while, now I like to use the examples of the WiFiManager-development lib. But adding some extra parameters is not working? At least I don't find them on the config site at 192.168.4.1 . Using a esp8266f and arduino ide 1.8.5
Thanks
@liebman commented on GitHub (Aug 15, 2018):
Its probably this https://github.com/tzapu/WiFiManager/pull/681
@tablatronix commented on GitHub (Aug 15, 2018):
Which example, they are a bit of a mess right now. The fsparameters ones should work though
@pvdw0310 commented on GitHub (Aug 16, 2018):
I'm using the example advanced.ino that comes with the lib.
@tablatronix commented on GitHub (Aug 16, 2018):
That is probably broken
@pvdw0310 commented on GitHub (Aug 18, 2018):
is there a way to fix it ?
@tablatronix commented on GitHub (Aug 18, 2018):
dont use that example until I test it maybe
@tablatronix commented on GitHub (Aug 18, 2018):
oh that example doesn't actually save anything it just implements custom params, you have to handle the saving, the autoconnectwithfsparameters examples should work and actually save to spiffs
@pvdw0310 commented on GitHub (Aug 18, 2018):
Thanks for the reaction, but I understand that I have to handle the saving to spiffs. But, before that I need a way to enter the params. And that's the problem. I can't enter the params. If you declare the params in the program they don't show up on the website during the setup.
@tablatronix commented on GitHub (Aug 18, 2018):
Works for me
AutoConnectWithFSParameters
@pvdw0310 commented on GitHub (Aug 19, 2018):
Sorry, AutoConnectWithFSParameters.ino is working. I was using the development library and the advance.ino that use the param section. In for the advance.ino is the param section not working.
Many thanks
@tablatronix commented on GitHub (Aug 19, 2018):
works fine, params under setup menu
@alesrebec commented on GitHub (Aug 23, 2018):
I cannot get it to work.
Is it because I'm using startConfigPortal() in my setup()?
I only get the four blue buttons all the time.
Here's the code that doesn't display custom html:
@tablatronix commented on GitHub (Aug 23, 2018):
works for me

@diegoalbaga commented on GitHub (Oct 11, 2018):
now im having this same problem, when i use the master branch the parameters declared in the code show but when i use the development branch they dont, i think the onl way to use them is is editing in the strings file in the param form but i dont know if they will actually save in fs using the code functions
@tablatronix commented on GitHub (Oct 11, 2018):
Are you using an example?
@martinberlin commented on GitHub (Oct 11, 2018):
Works for me too in development branch.
What does not work is the setSaveConfigCallback() for me so I didn't find a way to store this extra parameters in the EEPROM. There was an issue but is closed: https://github.com/tzapu/WiFiManager/issues/714
Can you please indicate me how to do it ? ( I tried all examples I found, but I never get the Serial comment that is on the Callback function after pressing SAVE )
@tablatronix commented on GitHub (Oct 11, 2018):
I will test again but make sure you have updated
@martinberlin commented on GitHub (Oct 11, 2018):
Maybe it's my fault ? I've tested yesterday making a git pull from your development branch.
Just as a reference this is my sketch: https://github.com/martinberlin/esp/blob/master/FasarekCam-WiFi-Settings/FasarekCam-WiFi-Settings.ino
I'm just doing:
All the rest works perfectly I'm very happy with WifiManager, seriously I'm putting it in everything I make!
@diegoalbaga commented on GitHub (Oct 11, 2018):
UPDATE: i was puttting a space were it shouldnt, thanks for your quick reply and support.
@tablatronix commented on GitHub (Oct 11, 2018):
Did you get the callback working?
@martinberlin commented on GitHub (Oct 11, 2018):
No. I checked and made a git pull on the development branch. But I couldn't get it to work.
Happy that for Diego works the other stuff. I'm growing white hair ;)
@tablatronix commented on GitHub (Oct 11, 2018):
gonna test now, gimme a few
@tablatronix commented on GitHub (Oct 11, 2018):
ok yeah it looks like if you are not submitting an ssid and setBreakAfterConfig is false then it does not get called.
if you setBreakAfterConfig(true) is should work, I will see how this should properly work.
I think I have to just go ahead and add a paramsave callback, its on the list
@tablatronix commented on GitHub (Oct 11, 2018):
the problem is the docs have always said this
//called when settings have been changed and connection was successfulSo when not changing wifi , its not successful so I don't want to break peoples code that assumes wifi was saved in that callback, So I think I will leave it as is and add a new callback.
@martinberlin commented on GitHub (Oct 12, 2018):
Ah now I understand. Sorry I completely overseen that.
Maybe it will be great if there is also a small example of this with setBreakAfterConfig(true) in your examples section.
Great, I'm very thankful! I will try tonight and let you know- UPDATE : Could not wait! I see it getting called now! GREAT!
@tablatronix commented on GitHub (Oct 12, 2018):
yeah i also added a
setSaveParamsCallbackwhich should always get called if there are params@Behzad-6-1 commented on GitHub (Jul 17, 2020):
Hi I am new on this and tried to use wifiManager.addParameter
it seems if I add the 4th parameter it breaks the code and it goes in to endless loop and print table of hex code
@Behzad-6-1 commented on GitHub (Jul 17, 2020):
can the limit be set in .h file
#ifndef WIFI_MANAGER_MAX_PARAMS #define WIFI_MANAGER_MAX_PARAMS 6 // params will autoincrement and realloc by this amount when max is reached #endif@tablatronix commented on GitHub (Jul 17, 2020):
@Behzad-6-1 create a new issue , do not post on old ones
@Behzad-6-1 commented on GitHub (Jul 17, 2020):
this was open so I thought I it is ok sorry
I have now created new one wifiManager.addParameter not working or 6 parameter
would you be able to have a look at it please