Skip to content

Commit

Permalink
Add version to stats
Browse files Browse the repository at this point in the history
  • Loading branch information
geduxas authored Oct 20, 2023
1 parent c0a5408 commit 59fed88
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion HeishaMon/HeishaMon.ino
Original file line number Diff line number Diff line change
Expand Up @@ -1277,7 +1277,9 @@ void loop() {
stats += toolongread;
stats += F(",\"timeout reads\":");
stats += timeoutread;
stats += F("}");
stats += F(",\"version\":\"");
stats += heishamon_version;
stats += F("\"}");
sprintf_P(mqtt_topic, PSTR("%s/stats"), heishamonSettings.mqtt_topic_base);
mqtt_client.publish(mqtt_topic, stats.c_str(), MQTT_RETAIN_VALUES);

Expand Down

0 comments on commit 59fed88

Please sign in to comment.