thermferm/mqtt.h

changeset 533
49580ca85ab7
parent 515
7ab5cf2afc0c
child 545
c382a6c58c20
--- a/thermferm/mqtt.h	Fri Aug 18 17:45:14 2017 +0200
+++ b/thermferm/mqtt.h	Sat Jul 14 17:21:25 2018 +0200
@@ -16,7 +16,30 @@
 void pub_domoticz_output(int, int);
 void mqtt_connect(void);
 void mqtt_disconnect(void);
-void publishDData(units_list *);
-void publishNData(bool, int);
+
+/**
+ * @brief Publish unit data.
+ * @param unit Unit data structure.
+ */
+void publishDData(units_list *unit);
+
+/**
+ * @brief Publish unit birth.
+ * @param unit Unit data structure.
+ */
+void publishDBirth(units_list *unit);
+
+/**
+ * @brief Publish death of a unit.
+ * @param unit Unit data structure.
+ */
+void publishDDeath(units_list *unit);
+
+/**
+ * @brief Publish Node data or birth message.
+ * @param birth If true send a birh message, else a regular data update.
+ * @param flag Bit flag to enable control messages.
+ */
+void publishNData(bool birth, int flag);
 
 #endif

mercurial