[GH-ISSUE #709] wifimanager timeout implementation at the sketch #593

Closed
opened 2026-02-28 01:26:05 +03:00 by kerem · 6 comments
Owner

Originally created by @mikekgr on GitHub (Aug 25, 2018).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/709

Dear Sirs, I am using wifimanager development tree at my ESP8266 Arduino Core 2.4.2.
I need to set up a time out in the sense, when the hard coded SSID, PASSWORD doesn't achieve WiFi connection then to be activated the wifimanager in order to input using its web page, the new after scan PASSWORD for the known SSID if any. My requirement is in case that nothing is entered to wifimanager web page, to have specified a timeout (ex 10 minutes ) and if this reached then to return back to normal sketch execution. Looking at the examples I saw there two commands but I don't know how to use them:
wm.setConfigPortalTimeout(600);
wm.setConnectTimeout(10);

Please help me.

Thanks

Originally created by @mikekgr on GitHub (Aug 25, 2018). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/709 Dear Sirs, I am using wifimanager development tree at my ESP8266 Arduino Core 2.4.2. I need to set up a time out in the sense, when the hard coded SSID, PASSWORD doesn't achieve WiFi connection then to be activated the wifimanager in order to input using its web page, the new after scan PASSWORD for the known SSID if any. My requirement is in case that nothing is entered to wifimanager web page, to have specified a timeout (ex 10 minutes ) and if this reached then to return back to normal sketch execution. Looking at the examples I saw there two commands but I don't know how to use them: wm.setConfigPortalTimeout(600); wm.setConnectTimeout(10); Please help me. Thanks
kerem 2026-02-28 01:26:05 +03:00
  • closed this issue
  • added the
    Question
    label
Author
Owner

@tablatronix commented on GitHub (Aug 26, 2018):

Configportaltimeout will do what you want

<!-- gh-comment-id:416004569 --> @tablatronix commented on GitHub (Aug 26, 2018): Configportaltimeout will do what you want
Author
Owner

@mikekgr commented on GitHub (Aug 26, 2018):

Dear @tablatronix ,
thanks a lot for your fast reply. So, using setConfigPortalTimeout will do what I want! Could you also explain what setConnectTimeout does?
Many thanks.

<!-- gh-comment-id:416014185 --> @mikekgr commented on GitHub (Aug 26, 2018): Dear @tablatronix , thanks a lot for your fast reply. So, using setConfigPortalTimeout will do what I want! Could you also explain what setConnectTimeout does? Many thanks.
Author
Owner

@tablatronix commented on GitHub (Aug 26, 2018):

https://github.com/tzapu/WiFiManager/blob/development/WiFiManager.h#L169

<!-- gh-comment-id:416044280 --> @tablatronix commented on GitHub (Aug 26, 2018): https://github.com/tzapu/WiFiManager/blob/development/WiFiManager.h#L169
Author
Owner

@mikekgr commented on GitHub (Aug 26, 2018):

Dear @tablatronix
Thanks. I found the Advanced.ino in the examples, that is an excellent sketch to see and try many thinks.
I truly appreciate your time and effort in this near perfect library.

Thanks and Best Regards,
Mike Kranidis

<!-- gh-comment-id:416049597 --> @mikekgr commented on GitHub (Aug 26, 2018): Dear @tablatronix Thanks. I found the Advanced.ino in the examples, that is an excellent sketch to see and try many thinks. I truly appreciate your time and effort in this near perfect library. Thanks and Best Regards, Mike Kranidis
Author
Owner

@jorgele commented on GitHub (Aug 17, 2020):

Friends, I have a problem combining the parameter "setConfigPortalBlocking (false);" and "setConfigPortalTimeout (xx)". If I configure the first one so that the portal does not block the program, the timeout does not work.
Is that so, or am I doing something wrong?

<!-- gh-comment-id:675162010 --> @jorgele commented on GitHub (Aug 17, 2020): Friends, I have a problem combining the parameter "setConfigPortalBlocking (false);" and "setConfigPortalTimeout (xx)". If I configure the first one so that the portal does not block the program, the timeout does not work. Is that so, or am I doing something wrong?
Author
Owner

@tablatronix commented on GitHub (Aug 18, 2020):

This is not a forum post new issues, do not post to old issues

<!-- gh-comment-id:675188157 --> @tablatronix commented on GitHub (Aug 18, 2020): This is not a forum post new issues, do not post to old issues
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#593
No description provided.