[GH-ISSUE #1356] Question about WiFiManager #1164

Closed
opened 2026-02-28 01:28:48 +03:00 by kerem · 5 comments
Owner

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?

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?
kerem 2026-02-28 01:28:48 +03:00
  • closed this issue
  • added the
    Question
    label
Author
Owner

@tablatronix commented on GitHub (Feb 12, 2022):

you can use setConfigTimeout()
or manually via stopconfigportal

assumign you are using the beta

<!-- gh-comment-id:1037258574 --> @tablatronix commented on GitHub (Feb 12, 2022): you can use setConfigTimeout() or manually via stopconfigportal assumign you are using the beta
Author
Owner

@renanmbs commented on GitHub (Feb 12, 2022):

you can use setConfigTimeout() or manually via stopconfigportal

assumign you are using the beta

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?

<!-- gh-comment-id:1037309085 --> @renanmbs commented on GitHub (Feb 12, 2022): > you can use setConfigTimeout() or manually via stopconfigportal > > assumign you are using the beta 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?
Author
Owner

@renanmbs commented on GitHub (Feb 12, 2022):

Also, is this to only stop the portal? Or the server too?

<!-- gh-comment-id:1037310720 --> @renanmbs commented on GitHub (Feb 12, 2022): Also, is this to only stop the portal? Or the server too?
Author
Owner

@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.

  • If no wifi SET run cp
  • if no wifi CONX, retry for x seconds, then start cp for x seconds
  • Start CP on button press( or toggle )
  • Start CP always for timeout on all boot, or use a boot reason filter?
  • If button x seconds after boot or held on boot, start x
  • If x many reboots start cp
  • If x many reboots clearsettings ( tasmota style )
  • Button held, clear settings, reboot
<!-- gh-comment-id:1037372200 --> @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. * If no wifi SET run cp * if no wifi CONX, retry for x seconds, then start cp for x seconds * Start CP on button press( or toggle ) * Start CP always for timeout on all boot, or use a boot reason filter? * If button x seconds after boot or held on boot, start x * If x many reboots start cp * If x many reboots clearsettings ( tasmota style ) * Button held, clear settings, reboot *
Author
Owner

@renanmbs commented on GitHub (Apr 7, 2022):

Thank you!

<!-- gh-comment-id:1091906516 --> @renanmbs commented on GitHub (Apr 7, 2022): Thank you!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/WiFiManager#1164
No description provided.