mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 00:55:52 +03:00
[GH-ISSUE #13] WifiMulti instead of single Wifi #12
Labels
No labels
📶 WiFi
🕸️ HTTP
Branch
DEV Help Wanted
Discussion
Documentation
ESP32
Example
Good First Issue
Hotfix
In Progress
Incomplete
Needs Feeback
Priority
QA
Question
Task
Upstream/Dependancy
bug
duplicate
enhancement
invalid
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/WiFiManager#12
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
@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.
@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.
@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.
@tzapu commented on GitHub (Dec 3, 2015):
i will close this for now, will ponder at it more in the future