Skip to content

Commit

Permalink
Merge pull request #390 from geduxas/patch-2
Browse files Browse the repository at this point in the history
Add version to stats
  • Loading branch information
Egyras authored Oct 20, 2023
2 parents 2ccfcaf + 59fed88 commit 34e9965
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 34e9965

Please sign in to comment.