Versie 0.8.0. Fixed eerste DBIRTH fout geinitialiseerde waardes.

Thu, 19 Jul 2018 14:08:32 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Thu, 19 Jul 2018 14:08:32 +0200
changeset 547
0e4d4b45249f
parent 546
d2e8626e7118
child 548
2924fe4911d9

Versie 0.8.0. Fixed eerste DBIRTH fout geinitialiseerde waardes.

configure file | annotate | diff | comparison | revisions
configure.ac file | annotate | diff | comparison | revisions
thermferm/mqtt.c file | annotate | diff | comparison | revisions
thermferm/mqtt.h file | annotate | diff | comparison | revisions
thermferm/thermferm.c file | annotate | diff | comparison | revisions
--- 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"
 
--- 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)
--- 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();
     }
 }
 
--- 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.
  */
--- 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);

mercurial