mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 00:55:52 +03:00
[GH-ISSUE #1721] If anyone wants to change the name (SSID) of the Access Point (AP) that appears (with the IP address 192.168.4.1) #1460
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#1460
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 @rtek1000 on GitHub (Mar 15, 2024).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1721
If anyone wants to change the name (SSID) of the Access Point (AP) that appears (with the IP address 192.168.4.1), go to line 685. There seems to be a lack of alternatives in this part.
Example:
github.com/tzapu/WiFiManager@d82d0a1b9f/WiFiManager.cpp (L686)On line 538 something about HostName seems to be implemented, but I don't know if this should also appear when you press the button, for on-demand mode.
github.com/tzapu/WiFiManager@d82d0a1b9f/WiFiManager.cpp (L538)@tablatronix commented on GitHub (Mar 15, 2024):
Its the first argument in the function.. what do you mean?
startConfigPortal(ssid,..
@rtek1000 commented on GitHub (Mar 15, 2024):
The initial post about the 686 line was with ESP32.
It also occurs with the ESP8266, in the line 388
At the beginning of Main there is wm.setHostname("MDNSEXAMPLE"), line 37, onDemandNonBlocking.ino.
Shouldn't the library have used this same "MDNSEXAMPLE" as the SSID?
@rtek1000 commented on GitHub (Mar 15, 2024):
It appears there is a way to read the SSID, but there is no way to Set it
@rtek1000 commented on GitHub (Mar 15, 2024):
I managed to solve it, I was missing using:
autoConnect(apName, apPassword)
startConfigPortal(apName, apPassword)
wm.autoConnect(portal_SSID, portal_PASSWORD);
wm.startConfigPortal(portal_SSID, portal_PASSWORD);
Maybe it would be easier if there was a function to set this, instead of the user declaring the SSID and password on each line they use when the portal starts.
Thank you.
@tablatronix commented on GitHub (Mar 15, 2024):
Are you confusing mdns hostname and ssid, they are not the same thing.
I suppose there could be a global for setting apname, shrug seems trivial
@rtek1000 commented on GitHub (Mar 15, 2024):
Should the onDemandNonBlocking.ino example always be non-blocking?
If the ESP is not connected, how long will the portal wait to go to the loop() routine?
When I comment out the wm.autoConnect() line, then the led blinks, but if I leave the line, the portal is activated and remains active indefinitely.
I used wm.setConfigPortalTimeout(timeout), but it still takes the timeout time to go to loop().
@rtek1000 commented on GitHub (Mar 15, 2024):
The line needed to be uncommented:
// wm.setConfigPortalBlocking(false);@rtek1000 commented on GitHub (Mar 15, 2024):
If I use the portal Timeout, how can I know if the portal has already been stopped?
Note: On line 599, a form of time control that is not recommended appears to be being implemented, in the case of recycling the variable returned to millis().
But on line 607, A recommended form of time control is being implemented
@rtek1000 commented on GitHub (Mar 15, 2024):
I found this: getConfigPortalActive()
My sketch now (ESP8266):
Sketch:
(Now I think I can go to the part "auto update via email")
Thank you.
@tablatronix commented on GitHub (Mar 16, 2024):
The ondemand part is non blocking but not autoconnect is not in that example, // wm.setConfigPortalBlocking(false);
I see the millis rollover issue, thanks
Looks like you figured the rest out. I suggest you read the .h file the super example and the wiki https://github.com/tzapu/WiFiManager/wiki/Methods
The actual readme still needs work as do general docs
@rtek1000 commented on GitHub (Mar 18, 2024):
Hello, I would like to suggest that an example be made available (if possible) with a login to access the portal, it is the standard for almost all routers I have seen, I found a project that has this, perhaps it could serve as an example of how to implement it :
https://github.com/rtek1000/esp32-asyncwebserver-fileupload-example/tree/master/example-02
Login to access the portal:

Additional page that a commercial router shows if the user is unable to log in:

info.zip
@tablatronix commented on GitHub (Mar 19, 2024):
#1669