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.
2 parents da88ba5 + 0aa54ff commit 275c954Copy full SHA for 275c954
Firmware/RTK_Everywhere/MQTT_Client.ino
@@ -524,8 +524,11 @@ void mqttClientUpdate()
524
525
// Start the network
526
case MQTT_CLIENT_ON: {
527
- if (networkUserOpen(NETWORK_USER_MQTT_CLIENT, NETWORK_TYPE_ACTIVE))
528
- mqttClientSetState(MQTT_CLIENT_NETWORK_STARTED);
+ if ((millis() - mqttClientTimer) > mqttClientConnectionAttemptTimeout)
+ {
529
+ if (networkUserOpen(NETWORK_USER_MQTT_CLIENT, NETWORK_TYPE_ACTIVE))
530
+ mqttClientSetState(MQTT_CLIENT_NETWORK_STARTED);
531
+ }
532
break;
533
}
534
0 commit comments