esp32-xbee icon indicating copy to clipboard operation
esp32-xbee copied to clipboard

Autoconnect to multiple hotspots option?

Open arwooldridge opened this issue 5 years ago • 2 comments

I programmed a Huzzah esp32 and works now, although I had to enter TX/RX pins in config.c as the configuration html page seemed to have no effect on changing those pins. Anyway I need to change frequently between two hotspots ( two users) and I found setting up using 192.168.4.1 is quite a painful, and somewhat erratic procedure. A useful facility would be to auto connect to two or more preset hotspot SSIDs / Passwords. So similar to a PC autoconnecting to multiple wifi SSID's whichever one is available. I guess the html interface could remain unchanged and just enter multiple SSIDs and passwords as comma seperated values.

arwooldridge avatar Apr 19 '20 22:04 arwooldridge

So the flow could be: Use the first items (SSID, pw) in the csv lists. Check for valid RSSI after say 5 seconds? if no valid RSSI use the next SSID in the csv lists. repeat until end of list return to first SSID

arwooldridge avatar Apr 20 '20 11:04 arwooldridge

I believe this is a very desirable feature. Even if this is not N SSID/pw pairs, just having 2 would be very useful. In my case, I would like the device to connect to my phone's hotspot, if present (usually not enabled), and if not, my home SSID.

An example of a device which behaves this way is the Emlid Reach (original version), which has a list of SSIDs. This runs GNU/Linux so it is just a wpa_supplicant config file. Once programmed, I am able to use it with my phone's hotspot (to get RTK corrections), and to have it join the home network (to offload logs, etc.).

A further nicety would be to have the device's own SSID (where it creates the network) be active only when none of the configured SSIDs can be joined. (This is the Reach behavior, and quite useful.)

gdt avatar Sep 09 '20 13:09 gdt