Skip to content

Commit

Permalink
Retained discovery messages
Browse files Browse the repository at this point in the history
  • Loading branch information
gemi254 committed Mar 16, 2023
1 parent e5473ae commit 63c0069
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mqtt.h
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ void mqttSetup(String identyfikator, String chipId, String uom = "x", String dc
Serial.println();
#endif

bool retained = false;
bool retained = true;

if (mqttClient.publish(topic_c, buffer_c, retained)) {
LOG_DBG("Message published successfully\n");
Expand Down

0 comments on commit 63c0069

Please sign in to comment.