Skip to content

Commit ebbaf68

Browse files
committed
Correctly mark MQTT client online
The online tag allows the client to notify the network that it needs the network, thus preventing network shutdown before the client has moved offline.
1 parent 7a9500b commit ebbaf68

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Firmware/RTK_Everywhere/MQTT_Client.ino

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -870,6 +870,9 @@ void mqttClientUpdate()
870870
millis(); // Prevent MQTT_CLIENT_SERVICES_CONNECTED from going immediately into timeout
871871

872872
reportHeapNow(settings.debugMqttClientState);
873+
874+
online.mqttClient = true;
875+
873876
mqttClientSetState(MQTT_CLIENT_SERVICES_CONNECTED);
874877

875878
break;

0 commit comments

Comments
 (0)