File tree 1 file changed +1
-4
lines changed
1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change 28
28
******************************************************************************/
29
29
#if defined(ARDUINO_ARCH_ESP8266)
30
30
static int const ESP_WIFI_CONNECTION_TIMEOUT = 3000 ;
31
- #elif defined(ARDUINO_ARCH_ESP32)
32
- static int const ESP_WIFI_CONNECTION_TIMEOUT = 1000 ;
33
31
#endif
34
32
35
33
/* *****************************************************************************
@@ -93,7 +91,6 @@ NetworkConnectionState WiFiConnectionHandler::update_handleInit()
93
91
#else
94
92
WiFi.mode (WIFI_STA);
95
93
#endif /* #if !defined(ARDUINO_ARCH_ESP8266) && !defined(ARDUINO_ARCH_ESP32) */
96
-
97
94
return NetworkConnectionState::CONNECTING;
98
95
}
99
96
@@ -102,7 +99,7 @@ NetworkConnectionState WiFiConnectionHandler::update_handleConnecting()
102
99
if (WiFi.status () != WL_CONNECTED)
103
100
{
104
101
WiFi.begin (_ssid, _pass);
105
- #if defined(ARDUINO_ARCH_ESP8266) || defined(ARDUINO_ARCH_ESP32)
102
+ #if defined(ARDUINO_ARCH_ESP8266)
106
103
/* Wait connection otherwise board won't connect */
107
104
unsigned long start = millis ();
108
105
while ((WiFi.status () != WL_CONNECTED) && (millis () - start) < ESP_WIFI_CONNECTION_TIMEOUT) {
You can’t perform that action at this time.
0 commit comments