File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change 2828 ******************************************************************************/
2929#if defined(ARDUINO_ARCH_ESP8266)
3030static int const ESP_WIFI_CONNECTION_TIMEOUT = 3000 ;
31- #elif defined(ARDUINO_ARCH_ESP32)
32- static int const ESP_WIFI_CONNECTION_TIMEOUT = 1000 ;
3331#endif
3432
3533/* *****************************************************************************
@@ -93,7 +91,6 @@ NetworkConnectionState WiFiConnectionHandler::update_handleInit()
9391#else
9492 WiFi.mode (WIFI_STA);
9593#endif /* #if !defined(ARDUINO_ARCH_ESP8266) && !defined(ARDUINO_ARCH_ESP32) */
96-
9794 return NetworkConnectionState::CONNECTING;
9895}
9996
@@ -102,7 +99,7 @@ NetworkConnectionState WiFiConnectionHandler::update_handleConnecting()
10299 if (WiFi.status () != WL_CONNECTED)
103100 {
104101 WiFi.begin (_ssid, _pass);
105- #if defined(ARDUINO_ARCH_ESP8266) || defined(ARDUINO_ARCH_ESP32)
102+ #if defined(ARDUINO_ARCH_ESP8266)
106103 /* Wait connection otherwise board won't connect */
107104 unsigned long start = millis ();
108105 while ((WiFi.status () != WL_CONNECTED) && (millis () - start) < ESP_WIFI_CONNECTION_TIMEOUT) {
You can’t perform that action at this time.
0 commit comments