Skip to content

Commit 988ca7c

Browse files
committed
Update mqttClientLastDataReceived when the connection is made
1 parent d93d2b0 commit 988ca7c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Firmware/RTK_Everywhere/MQTT_Client.ino

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -853,6 +853,8 @@ void mqttClientUpdate()
853853
// Subscribing to the localized distribution dictionary and local tile is handled by MQTT_CLIENT_SERVICES_CONNECTED
854854
// since we need a 3D fix for those
855855

856+
mqttClientLastDataReceived = millis(); // Prevent MQTT_CLIENT_SERVICES_CONNECTED from going immediately into timeout
857+
856858
reportHeapNow(settings.debugMqttClientState);
857859
mqttClientSetState(MQTT_CLIENT_SERVICES_CONNECTED);
858860

0 commit comments

Comments
 (0)