mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 17:15:53 +03:00
[GH-ISSUE #1356] Question about WiFiManager #1164
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#1164
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 @renanmbs on GitHub (Feb 12, 2022).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1356
Hello, can anyone answer my question?
I want to run the WiFi Manager for 5 minutes, if the person doesn't connect by then, cancel the WiFi Manager.
I am having issues with how to make the WiFi Manager stop and bring the server down.
disconnect() doesn't seem to be doing what I need, so how can I do that?
@tablatronix commented on GitHub (Feb 12, 2022):
you can use setConfigTimeout()
or manually via stopconfigportal
assumign you are using the beta
@renanmbs commented on GitHub (Feb 12, 2022):
So, for ‘ setConfigTimeout(120) ‘ the system stays on for 120 seconds? If there is no connection by then, it’ll stop running and continue with the rest from the loop
And for ‘ stopconfigportal ‘, I just call wifiManager.stopconfigportal()? And it’ll do the same thing as above?
@renanmbs commented on GitHub (Feb 12, 2022):
Also, is this to only stop the portal? Or the server too?
@tablatronix commented on GitHub (Feb 12, 2022):
That will stop the entire thing, if you want to run the webportal when on wifi lan, you can use startWebportal() separately..
If you want to layout your exact processm I need to make some new utility examples and this is one I use alot, so I will go ahead and make one
eg.
@renanmbs commented on GitHub (Apr 7, 2022):
Thank you!