Een kleine correctie

Sat, 14 Jul 2018 21:36:08 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Sat, 14 Jul 2018 21:36:08 +0200
changeset 535
3c4c6d5e4b8d
parent 534
92b546d4a839
child 536
e833bbd5e733

Een kleine correctie

thermferm/mqtt.c file | annotate | diff | comparison | revisions
--- a/thermferm/mqtt.c	Sat Jul 14 21:15:20 2018 +0200
+++ b/thermferm/mqtt.c	Sat Jul 14 21:36:08 2018 +0200
@@ -695,6 +695,8 @@
 	 * After that, remove the retained topic.
          */
         syslog(LOG_NOTICE, "MQTT disconnecting");
+	publisher(mosq, topic_base((char *)"DBIRTH"), NULL, true);	// Not always needed, but ...
+	publisher(mosq, topic_base((char *)"DDEATH"), NULL, true);
 	publisher(mosq, topic_base((char *)"NBIRTH"), NULL, true);
 	publisher(mosq, topic_base((char *)"NDEATH"), NULL, true);
         mqtt_last_mid = mqtt_mid_sent;

mercurial