Description
This is easily added by detecting if the SSID and password are not strings and iterating over them.
ATMakersBill: Hi folks, is there a way to list multiple SSIDs in the secrets.py file for the PyPortal and other WiFi boards?
anecdata: I think secrets.py is just a convenient place to put private stuff. Could make WiFi credentials an iterable, and randomize or cycle through in your code.
ATMakersBill: The PyPortal class has code for managing the secrets file - I'm asking if that has any ability to use multiples.
kjw: @ATMakersBill What's the use case for that? Portability between different places?
ATMakersBill: yes
cater: i think it's pretty hard wired: https://github.com/adafruit/Adafruit_CircuitPython_PyPortal/blob/master/adafruit_pyportal.py#L633
A second use-case is to deal with changing passwords, two passwords for one SSID allows for a device to work near-seamlessly across password changes.
Actually this probably belongs in adafruit_esp32spi.ESP_SPIcontrol.connect()
over in https://github.com/adafruit/Adafruit_CircuitPython_ESP32SPI/blob/master/adafruit_esp32spi/adafruit_esp32spi.py but will leave that discussion for those in the know.