If useful I wrote this function for an esp8266/wemos (used for clocks).
In my sketch I entered the credentials of my 4 hotspots and when it starts up the esp8266 loops until it finds one of the active wifi.
In my sketch I entered the credentials of my 4 hotspots and when it starts up the esp8266 loops until it finds one of the active wifi.