We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d541f9 commit 99dd1a4Copy full SHA for 99dd1a4
src/Arduino_WiFiConnectionHandler.cpp
@@ -90,12 +90,16 @@ NetworkConnectionState WiFiConnectionHandler::update_handleInit()
90
91
NetworkConnectionState WiFiConnectionHandler::update_handleConnecting()
92
{
93
-#if !defined(ARDUINO_ARCH_ESP8266) && !defined(ARDUINO_ARCH_ESP32)
94
if (WiFi.status() != WL_CONNECTED)
95
96
WiFi.begin(_ssid, _pass);
+#if defined(ARDUINO_ARCH_ESP8266)
97
+ WiFi.waitForConnectResult();
98
+#endif
99
+#if defined(ARDUINO_ARCH_ESP32)
100
+ WiFi.waitForConnectResult(1000);
101
102
}
-#endif /* #if !defined(ARDUINO_ARCH_ESP8266) && !defined(ARDUINO_ARCH_ESP32) */
103
104
if (WiFi.status() != NETWORK_CONNECTED)
105
0 commit comments