Skip to content

Commit

Permalink
retain last will (the same as status online)
Browse files Browse the repository at this point in the history
  • Loading branch information
SciLor committed Aug 9, 2023
1 parent b2540e4 commit 0216864
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mqtt.c
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ error_t mqttConnect(MqttClientContext *mqtt_context)

mqttClientSetIdentifier(mqtt_context, settings_get_string("mqtt.identification"));
mqttClientSetAuthInfo(mqtt_context, settings_get_string("mqtt.username"), settings_get_string("mqtt.password"));
mqttClientSetWillMessage(mqtt_context, mqtt_prefix("status"), "offline", 7, MQTT_QOS_LEVEL_2, FALSE);
mqttClientSetWillMessage(mqtt_context, mqtt_prefix("status"), "offline", 7, MQTT_QOS_LEVEL_2, TRUE);

do
{
Expand Down

0 comments on commit 0216864

Please sign in to comment.