mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 09:05:56 +03:00
[GH-ISSUE #1754] Changing wifi without having to turn on the config portal #1483
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#1483
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 @VladimirVecera on GitHub (Jul 29, 2024).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1754
First of all ... wifimanager is an absolutely amazing tool and I thank you for it. Thank you very much.
I have a question. I configure the ESP32 through the config portal, the ESP32 successfully connects to wifi. In a month I want to change wifi accesses. At the same time, I have my own web administration on ESP32. Is it possible to change wifi accesses without having to activate the config portal, which works on 192.168.4.1 and is it necessary to have a wifi device at hand to set up wifi? I would like to be able to configure the wifi via the web interface on the already connected wifi. I hope you understand me.
@F1p commented on GitHub (Jul 29, 2024):
wifiManager.startWebPortal();
At the end of setup to run the web server when on WiFi
And in loop to handle requests and modification:
wifiManager.process();
You may also need this if saving fields to a file:
if (shouldSaveConfig) { saveConfig(); } // Handles WiFiManager Settings Changes
@tablatronix commented on GitHub (Jul 29, 2024):
You can do it in regular esp code via begin()
@VladimirVecera commented on GitHub (Jul 30, 2024):
I'm a bit confused. Can you send the best code? Thank you very much in advance for your help.
@F1p commented on GitHub (Jul 31, 2024):
Edit of basic example:
@VladimirVecera commented on GitHub (Aug 12, 2024):
The problem is that the web administration of the project is already running on the web interface #include <WebServer.h>
And if I want to change the wifi configuration to the already successfully connected wifi, it doesn't work. Does it even work?
server.on("/wifiportal", []() { wm.startWebPortal(); });@tablatronix commented on GitHub (Aug 12, 2024):
I thought you meant in code.. you want to start the webportal you cant of you are already running another webserver
@VladimirVecera commented on GitHub (Aug 13, 2024):
Thank you for the information. If I understand it correctly. Are you using the Webserver library so I can use wm.server->on() ? See code below along with mdns.