File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -915,7 +915,7 @@ void Wippersnapper::runNetFSM() {
915
915
case FSM_NET_ESTABLISH_NETWORK:
916
916
// WS_DEBUG_PRINTLN("FSM_NET_ESTABLISH_NETWORK");
917
917
// Attempt to connect to wireless network
918
- maxAttempts = 2 ;
918
+ maxAttempts = 5 ;
919
919
while (maxAttempts >= 0 ) {
920
920
setStatusLEDColor (LED_NET_CONNECT);
921
921
WS.feedWDT ();
@@ -925,10 +925,9 @@ void Wippersnapper::runNetFSM() {
925
925
if (networkStatus () == WS_NET_CONNECTED)
926
926
break ;
927
927
setStatusLEDColor (BLACK);
928
- delay (500 );
929
928
maxAttempts--;
930
929
}
931
- // Validate connection OK
930
+ // Validate connection
932
931
if (networkStatus () == WS_NET_CONNECTED) {
933
932
fsmNetwork = FSM_NET_CHECK_NETWORK;
934
933
break ;
@@ -949,7 +948,7 @@ void Wippersnapper::runNetFSM() {
949
948
break ;
950
949
}
951
950
setStatusLEDColor (BLACK);
952
- delay (500 ;)
951
+ delay (500 );
953
952
}
954
953
if (fsmNetwork == FSM_NET_CHECK_MQTT) {
955
954
break ;
Original file line number Diff line number Diff line change @@ -181,14 +181,14 @@ class Wippersnapper_ESP32 : public Wippersnapper {
181
181
delay (100 );
182
182
WiFi.begin (_ssid, _pass);
183
183
_status = WS_NET_DISCONNECTED;
184
- delay (1000 );
184
+ delay (100 );
185
185
}
186
186
187
- /* // wait for a connection to be established
187
+ // wait for a connection to be established
188
188
long startRetry = millis ();
189
189
while (WiFi.status () != WL_CONNECTED && millis () - startRetry < 10000 ) {
190
190
// do nothing, busy loop during the timeout
191
- } */
191
+ }
192
192
}
193
193
194
194
/* *************************************************************************/
You can’t perform that action at this time.
0 commit comments