Thing.add_wifi with multiple SSID/Password, is it possible?


I’m new at this forum and I’m testing for basic arduino stuff like monitoring room temperature and on.

Currently I’ve already deployed a ESP8266 + DHT22 (no arduino here), and so far so good, however I’ve several WiFi networks on the place (don’t ask why) and I was wondering if it is possible to have thing.add_wifi(SSID, SSID_PASSWORD) configured to a set of pairs SSID/PASSW for whenever one of the WiFi networks are down, the system reconnects to the second one and so one.

Does anyone have this requirement also? How did you handle it?

Thank you

Hi @f616!

Yes, it is completely feasible to develop this use case, in fact, the current interface is called thing.add_wifi(), which means that it was supposed to add more than a Wifi connection. I have opened an issue in Github to track this feature. It should be easy to implement…