Sat, 14 Jul 2018 21:36:08 +0200
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;