bmsd/ispindels.h

branch
stable
changeset 665
4d01937ae7af
parent 578
e75ce5bbda73
child 680
0bb48333d133
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bmsd/ispindels.h	Fri May 01 16:37:31 2020 +0200
@@ -0,0 +1,22 @@
+/**
+ * @file ispindels.h
+ */
+
+#ifndef _ISPINDEL_H
+#define _ISPINDEL_H
+
+void ispindel_dump(sys_ispindel_list *ispindel);
+
+/**
+ * @brief Messages received from a iSpindel using the MQTT sender.
+ *        A new node is created if this is the first message of the
+ *        iSpindel, else the last seen time is updated. Then the last
+ *        actual state is recorded. A log line is written when a beer
+ *        is assigned.
+ * @param topic The MQTT topic string, contains the ispindel type and name
+ * @param payload The value for the selected keyword.
+ */
+void ispindel_birth_data(char *topic, char *payload);
+
+
+#endif

mercurial