In the event the device is unable to connect to WiFi within an acceptable time, switch to being a a WiFi server so that the user can connect directly to it, and give it the WiFi login details. This will require use of local FS to store the WiFi details. Once the information has been submitted, switch back to being a WiFi client and start over.