bmsd/ispindels.h

changeset 568
6f3c24e21deb
parent 567
6bf0afc33e70
child 578
e75ce5bbda73
equal deleted inserted replaced
567:6bf0afc33e70 568:6f3c24e21deb
6 #define _ISPINDEL_H 6 #define _ISPINDEL_H
7 7
8 void ispindel_dump(sys_ispindel_list *ispindel); 8 void ispindel_dump(sys_ispindel_list *ispindel);
9 9
10 /** 10 /**
11 * @brief Birth of a ispindel or data update. Create it in the database if 11 * @brief Messages received from a iSpindel using the MQTT sender.
12 * never seen before, else just update the database entry. 12 * A new node is created if this is the first message of the
13 * @param topic The MQTT topic string, contains the ispindel type and name. 13 * iSpindel, else the last seen time is updated. Then the last
14 * @param payload The JSON formatted payload with the ispindel details. 14 * actual state is recorded. A log line is written when a beer
15 * is assigned.
16 * @param topic The MQTT topic string, contains the ispindel name and
17 * keyword for the data.
18 * @param payload The value for the selected keyword.
15 */ 19 */
16 void ispindel_mqtt(char *topic, char *payload); 20 void ispindel_mqtt(char *topic, char *payload);
17 21
18 22
19 #endif 23 #endif

mercurial