Quick question:
When does WiFi.begin(ssid, password) actually timeout when not able to connect?
I 'solved' the the 'problem' with the following code but find it not very elegant.
- while (WiFi.status() != WL_CONNECTED && (millis() - startTime) <= 5000) // try for 5 seconds
- {
- delay(500);
- Serial.print(".");
- }