# HG changeset patch # User Michiel Broek # Date 1532002112 -7200 # Node ID 0e4d4b45249fb77119ef00e8d3695ebdaaefb7c7 # Parent d2e8626e71183ce8a9b074b76da13d343bc03b5d Versie 0.8.0. Fixed eerste DBIRTH fout geinitialiseerde waardes. diff -r d2e8626e7118 -r 0e4d4b45249f configure --- a/configure Thu Jul 19 12:55:40 2018 +0200 +++ b/configure Thu Jul 19 14:08:32 2018 +0200 @@ -2035,7 +2035,7 @@ PACKAGE="mbsePi-apps" -VERSION="0.6.8" +VERSION="0.8.0" COPYRIGHT="Copyright (C) 2014-2018 Michiel Broek, All Rights Reserved" CYEARS="2014-2018" diff -r d2e8626e7118 -r 0e4d4b45249f configure.ac --- a/configure.ac Thu Jul 19 12:55:40 2018 +0200 +++ b/configure.ac Thu Jul 19 14:08:32 2018 +0200 @@ -8,7 +8,7 @@ dnl General settings dnl After changeing the version number, run autoconf! PACKAGE="mbsePi-apps" -VERSION="0.6.8" +VERSION="0.8.0" COPYRIGHT="Copyright (C) 2014-2018 Michiel Broek, All Rights Reserved" CYEARS="2014-2018" AC_SUBST(PACKAGE) diff -r d2e8626e7118 -r 0e4d4b45249f thermferm/mqtt.c --- a/thermferm/mqtt.c Thu Jul 19 12:55:40 2018 +0200 +++ b/thermferm/mqtt.c Thu Jul 19 14:08:32 2018 +0200 @@ -727,7 +727,6 @@ */ mosquitto_loop_start(mosq); publishNData(true, 0); - publishDBirthAll(); } } diff -r d2e8626e7118 -r 0e4d4b45249f thermferm/mqtt.h --- a/thermferm/mqtt.h Thu Jul 19 12:55:40 2018 +0200 +++ b/thermferm/mqtt.h Thu Jul 19 14:08:32 2018 +0200 @@ -17,6 +17,12 @@ void mqtt_disconnect(void); /** + * @brief Publish DBIRTH for all active units. If there are no active units, don't + * publish anything. This function should be called at program start. + */ +void publishDBirthAll(void); + +/** * @brief Publish unit data. * @param unit Unit data structure. */ diff -r d2e8626e7118 -r 0e4d4b45249f thermferm/thermferm.c --- a/thermferm/thermferm.c Thu Jul 19 12:55:40 2018 +0200 +++ b/thermferm/thermferm.c Thu Jul 19 14:08:32 2018 +0200 @@ -1096,6 +1096,9 @@ initlog(unit->name); } } +#ifdef HAVE_MOSQUITTO_H + publishDBirthAll(); +#endif #ifdef HAVE_WIRINGPI_H piLock(LOCK_LCD);