In the circumstance where a WAP is off at startup - a Photon will now (OS 2.2.0) try to connect and then disconnect.
This then means if the WAP is turned on later, a process is required to reconnect WiFi (if using Semi_Automatic mode).
If the following is used on a timed basis (every minute or so) then how long does the timeout_period need to be to have certainty of reconnecting to the WAP?
I want to make this as short as possible since this is blocking on the application thread. Or is there another way to have a non-blocking reconnection?
WiFi.connect(); waitFor(WiFi.ready, timeout_period);