mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-28 01:25:49 +03:00
[GH-ISSUE #921] Pass config url to persistent http server? #779
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#779
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 @eyyit on GitHub (Aug 3, 2019).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/921
Using development branch at
34d9a975b5Once wifi is connected, I'd like to still be able to access the configuration menu to change stored credentials and sa "/update" or something. Would it be possible to have an ESP8266WebServer.h .on() configuration to pass any clients accessing "/update" to WiFiManager to change configs?
Thanks
@tablatronix commented on GitHub (Aug 3, 2019):
There is an ondemand webportal example.
@eyyit commented on GitHub (Aug 7, 2019):
It seems in that example that an event triggers the AP to enable as if autoConnect failed. I'd like to be able to use a custom URI to access the WiFimanager config page to be able to modify my WiFiManagerParameters on the fly without running the whole AP to do so, using a URI on an existing instance of ESP8266WebServer. I know this is probably nontrivial. Maybe just running WiFiManager config server on a different port instead?
@tablatronix commented on GitHub (Aug 7, 2019):
https://github.com/tzapu/WiFiManager/blob/development/examples/OnDemand/OnDemandWebPortal/onDemandWebPortal.ino
Literally what it does.
If you want advanced stuff like adding routes check the dev example
@eyyit commented on GitHub (Aug 18, 2019):
Yes, but I can't merge my own URI handlers with that. Can you add some HTTP server options so I can pass in my own URIs and function pointers for handling them? Or make server public so I can access it? Would that work?
@tablatronix commented on GitHub (Aug 18, 2019):
DEV/ example, look in the code!
@eyyit commented on GitHub (Aug 21, 2019):
Thanks! I was looking at the wrong example, sorry about that.
How can I get my parameters to show up after
wm.startWebPortal()? I don't see anything that seems to remove them. If I forcibly re-add them prior tostartWebPortal, they still don't show up on the/wifipage.Here's what I'm using:
I do see
*WM: [0] [ERROR] WiFiManagerParameter is out of scopewhen I load the page though. Thanks for your help.@tablatronix commented on GitHub (Aug 21, 2019):
You will probably have to change the scope of wm obj.
WiFiManager wm;to global outside of a function/setup for example@eyyit commented on GitHub (Aug 24, 2019):
That solved it. Thanks.
One last issue with this...
When using
startWebPortal(), it starts the DNS server as well. Can you add a function or modify the code so that the web portal can be started without DNS as well since it's not needed (in this case)?@Phil1pp commented on GitHub (Jul 31, 2021):
Any progress on this?
@tablatronix commented on GitHub (Aug 1, 2021):
#1210
@Phil1pp commented on GitHub (Aug 2, 2021):
Thanks.
I was using the library available in Arduino. Didn't know that it was outdated.
After pulling the latest source directly from github it was working as expected.
@tablatronix commented on GitHub (Aug 4, 2021):
Hmm yeah i need to cut a beta sorry about that