[GH-ISSUE #1038] Need help vith DEV configportal. #885

Closed
opened 2026-02-28 01:27:29 +03:00 by kerem · 3 comments
Owner

Originally created by @usane1 on GitHub (Apr 17, 2020).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1038

Hi!
I need a little help with nonblocking configportal.
I've managed to make my project from the nonblocking example, but there is one more thing i want to achieve. I don't know if its possible. So far if i set up the wifi then it works fine. If the router failing and recovering the ESP reconnect fine and it doesnt bother the main loop.
However, can i achive somehow that if the program in the ESP start without wifi (router shutdown) then if the wifi is up after the program started, the ESP connect to it if it was configured earlier?

Originally created by @usane1 on GitHub (Apr 17, 2020). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1038 Hi! I need a little help with nonblocking configportal. I've managed to make my project from the nonblocking example, but there is one more thing i want to achieve. I don't know if its possible. So far if i set up the wifi then it works fine. If the router failing and recovering the ESP reconnect fine and it doesnt bother the main loop. However, can i achive somehow that if the program in the ESP start without wifi (router shutdown) then if the wifi is up after the program started, the ESP connect to it if it was configured earlier?
kerem 2026-02-28 01:27:29 +03:00
  • closed this issue
  • added the
    Question
    label
Author
Owner

@tablatronix commented on GitHub (Apr 20, 2020):

ESP already does that automatically, you can just check for connected now and then. But esp autoreconnect in the background for you

<!-- gh-comment-id:616687137 --> @tablatronix commented on GitHub (Apr 20, 2020): ESP already does that automatically, you can just check for connected now and then. But esp autoreconnect in the background for you
Author
Owner

@tablatronix commented on GitHub (Apr 20, 2020):

if(WiFi.status() == WL_CONNECTED)

Or you can set startconfigportal to false and use autoconnect

<!-- gh-comment-id:616688046 --> @tablatronix commented on GitHub (Apr 20, 2020): ` if(WiFi.status() == WL_CONNECTED)` Or you can set startconfigportal to false and use autoconnect
Author
Owner

@usane1 commented on GitHub (Apr 21, 2020):

Thank you.

<!-- gh-comment-id:617095689 --> @usane1 commented on GitHub (Apr 21, 2020): 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#885
No description provided.