[GH-ISSUE #723] Feature request: async wifi config #606

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

Originally created by @joba-1 on GitHub (Sep 6, 2018).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/723

Hi,

I used your lib successfully to configure wlan for a small project, very nice stuff, thanks.

Now I would like to use it for something else, where wifi is not necessary, just nice to have.

This means: I don't want the portal or wifi setup to block setup() or loop(), just setup wifi in setup() if config is available, else, if a button is pressed (or whatever other trigger) serve the wifi configuration portal in the background for some time, while the progam continues to do its usual job (in my case starting a fan if humidity is too high).

I have not fully understood the architecture of your lib, maybe this is already possible somehow, but if not: how about basically cutting out the while(1) loop out of startConfigPortal() as bool WiFiManager.handlePortal() where it returns false instead of yield() and true instead of break. Then I could call startConfigPortal() on request or in setup() and call handlePortal() in loop() without disturbing the more important stuff going on there.

Originally created by @joba-1 on GitHub (Sep 6, 2018). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/723 Hi, I used your lib successfully to configure wlan for a small project, very nice stuff, thanks. Now I would like to use it for something else, where wifi is not necessary, just nice to have. This means: I don't want the portal or wifi setup to block setup() or loop(), just setup wifi in setup() if config is available, else, if a button is pressed (or whatever other trigger) serve the wifi configuration portal **in the background** for some time, **while the progam continues to do its usual job** (in my case starting a fan if humidity is too high). I have not fully understood the architecture of your lib, maybe this is already possible somehow, but if not: how about basically cutting out the while(1) loop out of startConfigPortal() as bool WiFiManager.handlePortal() where it returns false instead of yield() and true instead of break. Then I could call startConfigPortal() on request or in setup() and call handlePortal() in loop() without disturbing the more important stuff going on there.
kerem 2026-02-28 01:26:11 +03:00
  • closed this issue
  • added the
    Question
    label
Author
Owner

@tablatronix commented on GitHub (Sep 6, 2018):

development branch

<!-- gh-comment-id:419176712 --> @tablatronix commented on GitHub (Sep 6, 2018): development branch
Author
Owner

@joba-1 commented on GitHub (Sep 6, 2018):

How?
I changed to dev branch, then opened an issue. Not enough?

Shawn A notifications@github.com schrieb am Do. 6. Sep. 2018 um 19:28:

development branch


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/tzapu/WiFiManager/issues/723#issuecomment-419176712,
or mute the thread
https://github.com/notifications/unsubscribe-auth/Ae8n-lIgLCqeYfTK6yUBLyFl8x3_9VIlks5uYVtKgaJpZM4WdPkO
.

--
iphone so i typo

<!-- gh-comment-id:419204663 --> @joba-1 commented on GitHub (Sep 6, 2018): How? I changed to dev branch, then opened an issue. Not enough? Shawn A <notifications@github.com> schrieb am Do. 6. Sep. 2018 um 19:28: > development branch > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > <https://github.com/tzapu/WiFiManager/issues/723#issuecomment-419176712>, > or mute the thread > <https://github.com/notifications/unsubscribe-auth/Ae8n-lIgLCqeYfTK6yUBLyFl8x3_9VIlks5uYVtKgaJpZM4WdPkO> > . > -- iphone so i typo
Author
Owner

@tablatronix commented on GitHub (Sep 6, 2018):

There are several issues discussing this, this is not a forum for support, its for reporting issues.
Did you even search?

<!-- gh-comment-id:419226752 --> @tablatronix commented on GitHub (Sep 6, 2018): There are several issues discussing this, this is not a forum for support, its for reporting issues. Did you even search?
Author
Owner

@joba-1 commented on GitHub (Sep 6, 2018):

just forget about it. I‘ll implement it for myself if I need it.

--
iphone so i typo

<!-- gh-comment-id:419234697 --> @joba-1 commented on GitHub (Sep 6, 2018): just forget about it. I‘ll implement it for myself if I need it. -- iphone so i typo
Author
Owner

@tablatronix commented on GitHub (Sep 7, 2018):

https://github.com/tzapu/WiFiManager/issues/379

<!-- gh-comment-id:419293197 --> @tablatronix commented on GitHub (Sep 7, 2018): https://github.com/tzapu/WiFiManager/issues/379
Author
Owner
<!-- gh-comment-id:419559544 --> @tablatronix commented on GitHub (Sep 7, 2018): https://github.com/tzapu/WiFiManager/blob/development/examples/AutoConnect/AutoConnectNonBlocking/AutoConnectNonBlocking.ino
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#606
No description provided.