Skip to content

Commit

Permalink
Correctly mark MQTT client online
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
nseidle committed Dec 10, 2024
1 parent 7a9500b commit ebbaf68
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Firmware/RTK_Everywhere/MQTT_Client.ino
Original file line number Diff line number Diff line change
Expand Up @@ -870,6 +870,9 @@ void mqttClientUpdate()
millis(); // Prevent MQTT_CLIENT_SERVICES_CONNECTED from going immediately into timeout

reportHeapNow(settings.debugMqttClientState);

online.mqttClient = true;

mqttClientSetState(MQTT_CLIENT_SERVICES_CONNECTED);

break;
Expand Down

0 comments on commit ebbaf68

Please sign in to comment.