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 8a989a0 commit a39b4c0Copy full SHA for a39b4c0
src/Wippersnapper.cpp
@@ -939,7 +939,7 @@ void Wippersnapper::runNetFSM() {
939
// WS_DEBUG_PRINTLN("FSM_NET_ESTABLISH_MQTT");
940
WS._mqtt->setKeepAliveInterval(WS_KEEPALIVE_INTERVAL);
941
// Attempt to connect
942
- maxAttempts = 2;
+ maxAttempts = 10;
943
while (maxAttempts >= 0) {
944
setStatusLEDColor(LED_IO_CONNECT);
945
mqttRC = WS._mqtt->connect(WS._username, WS._key);
@@ -948,7 +948,8 @@ void Wippersnapper::runNetFSM() {
948
break;
949
}
950
setStatusLEDColor(BLACK);
951
- delay(500);
+ delay(1000);
952
+ maxAttempts--;
953
954
if (fsmNetwork == FSM_NET_CHECK_MQTT) {
955
0 commit comments