Skip to content
Snippets Groups Projects
Commit c8cd0993 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Re-publish the server error_count topic in mqtt_startup()

Fixes a stale non-zero error_count retained topic.
parent 2852540e
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #3881 passed
...@@ -531,6 +531,7 @@ int mqtt_startup(struct mqtt* mqtt, scfg_t* cfg, struct startup* startup, const ...@@ -531,6 +531,7 @@ int mqtt_startup(struct mqtt* mqtt, scfg_t* cfg, struct startup* startup, const
mqtt_pub_strval(mqtt, TOPIC_HOST_LEVEL, NULL, startup->host_name); mqtt_pub_strval(mqtt, TOPIC_HOST_LEVEL, NULL, startup->host_name);
mqtt_pub_strval(mqtt, TOPIC_SERVER, "version", version); mqtt_pub_strval(mqtt, TOPIC_SERVER, "version", version);
mqtt_pub_uintval(mqtt, TOPIC_SERVER, "served", mqtt->served); mqtt_pub_uintval(mqtt, TOPIC_SERVER, "served", mqtt->served);
mqtt_pub_uintval(mqtt, TOPIC_SERVER, "error_count", mqtt->error_count);
#ifdef USE_MOSQUITTO #ifdef USE_MOSQUITTO
if(mqtt->handle != NULL) if(mqtt->handle != NULL)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment