[GH-ISSUE #13] WifiMulti instead of single Wifi #12

Closed
opened 2026-02-28 01:22:51 +03:00 by kerem · 4 comments
Owner

Originally created by @nibelungen on GitHub (Nov 19, 2015).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/13

Thanks for the implementation of my other suggestions.
Here is a new one - maybe you can use WifiMulti.h instead of the single one.

https://github.com/esp8266/Arduino/blob/master/libraries/ESP8266WiFi/examples/WiFiMulti/WiFiMulti.ino

Best regards

Originally created by @nibelungen on GitHub (Nov 19, 2015). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/13 Thanks for the implementation of my other suggestions. Here is a new one - maybe you can use WifiMulti.h instead of the single one. https://github.com/esp8266/Arduino/blob/master/libraries/ESP8266WiFi/examples/WiFiMulti/WiFiMulti.ino Best regards
kerem closed this issue 2026-02-28 01:22:52 +03:00
Author
Owner

@tzapu commented on GitHub (Nov 19, 2015):

Hi,
You could simply achieve that by using WifiMulti as in the setup part of the example, and having WiFiManager after it, if it's not connected. You would then have the preset multiple AP's and fallback if that didn't work.
Since it's and already made and distributed with the core library, it wouldn t make much sense to duplicate it's functionality.
Cheers

/edit: actually it seems the library is async so what i wrote above won't work. I ll give it some thought.

<!-- gh-comment-id:158173020 --> @tzapu commented on GitHub (Nov 19, 2015): Hi, You could simply achieve that by using WifiMulti as in the setup part of the example, and having WiFiManager after it, if it's not connected. You would then have the preset multiple AP's and fallback if that didn't work. Since it's and already made and distributed with the core library, it wouldn t make much sense to duplicate it's functionality. Cheers /edit: actually it seems the library is async so what i wrote above won't work. I ll give it some thought.
Author
Owner

@nibelungen commented on GitHub (Nov 20, 2015):

Thanks - really good support and feedback from you so far!

To duplicate the code was not my intention, but to replace it in your examples and use it as default way to connect as it does not care if there is one or multiple predefined connections.

<!-- gh-comment-id:158416864 --> @nibelungen commented on GitHub (Nov 20, 2015): Thanks - really good support and feedback from you so far! To duplicate the code was not my intention, but to replace it in your examples and use it as default way to connect as it does not care if there is one or multiple predefined connections.
Author
Owner

@tzapu commented on GitHub (Nov 20, 2015):

Unfortunately there are some pretty big differences on how the two methods work
The default way of connecting is included by default in all sketches, WiFiMulti would need an additional library to be included. WiFiMulti is actually using the default wifi connect in the background anyway.
The normal way of connecting tries to connect and if it can't it releases control back to you (so i can switch to AP mode and start a webserver, etc), WIFiMulti is made to scan continuously for one of the known networks until it manages to connect.

<!-- gh-comment-id:158468165 --> @tzapu commented on GitHub (Nov 20, 2015): Unfortunately there are some pretty big differences on how the two methods work The default way of connecting is included by default in all sketches, WiFiMulti would need an additional library to be included. WiFiMulti is actually using the default wifi connect in the background anyway. The normal way of connecting tries to connect and if it can't it releases control back to you (so i can switch to AP mode and start a webserver, etc), WIFiMulti is made to scan continuously for one of the known networks until it manages to connect.
Author
Owner

@tzapu commented on GitHub (Dec 3, 2015):

i will close this for now, will ponder at it more in the future

<!-- gh-comment-id:161742008 --> @tzapu commented on GitHub (Dec 3, 2015): i will close this for now, will ponder at it more in the future
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#12
No description provided.