Edzelf / ESP32-Radio

Internet radio based on ESP32, VS1053 and a TFT screen.
GNU General Public License v3.0
987 stars 229 forks source link

second wi-fi? #27

Open lonelyjack opened 7 years ago

lonelyjack commented 7 years ago

It's not working second address

Edzelf commented 7 years ago

What happens if you remove the first SSID? Could be a problem with WiFiMulti.

derpicknicker1 commented 7 years ago

For me multiWiFi does not work. As soon as i put a second SSID into the settings, i can not connect to any network. With a single SSID in settings it works on every reboot.

Edzelf commented 7 years ago

Looks like WiFiMulti has a problem. Please try to make a minimal script that uses WifiMulti that shows the problem and report it to the author of the library.

derpicknicker1 commented 7 years ago

This is a problem with WiFi.scanNetworks() not with WiFiMulti. But WiFiMulti uses scanNetworks(). A discussion about this issue can be found at https://github.com/espressif/arduino-esp32/issues/242

I noticed that this also affects the list of networks on the config webpage (it's empty for me).

A known workaround is to do a WiFi.begin(ssid,pwd) before starting the network scan. ssid and pwd can be just any string and must not represent a valid connection.