# HG changeset patch # User Michiel Broek # Date 1531596968 -7200 # Node ID 3c4c6d5e4b8d2ae5d07b48b2f09d79d548288a64 # Parent 92b546d4a839bb107dccc338496b23d22679cf20 Een kleine correctie diff -r 92b546d4a839 -r 3c4c6d5e4b8d thermferm/mqtt.c --- 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;