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 |