Tue, 04 Jun 2019 19:50:06 +0200
Added console logging in the grid write callback functions. Removed grid sorting, it is done on the server side. Alert popup for block row edit functions. Better grid live updates. In recipe and product print show the whirlpool time. The checklist now shows misc ingredients added in the mash. Show hops added in the whirlpool. Most ingredient names are now quoted.
0 | 1 | /** |
2 | * @file nodes.h | |
3 | */ | |
4 | ||
5 | #ifndef _NODES_H | |
6 | #define _NODES_H | |
7 | ||
8 | void node_dump(sys_node_list *node); | |
9 | ||
10 | /** | |
11 | * @brief Birth of a node or data update. Create it in the database if | |
12 | * never seen before, else just update the database entry. | |
13 | * @param topic The MQTT topic string, contains the node type and name. | |
14 | * @param payload The JSON formatted payload with the node details. | |
15 | */ | |
16 | void node_birth_data(char *topic, char *payload); | |
17 | ||
18 | /** | |
19 | * @brief Death of a node. Mark it offline in the database. | |
20 | * @param topic The MQTT topic string, contains the node type and name. | |
21 | */ | |
22 | void node_death(char *topic); | |
23 | ||
384
442d23455ae4
The bms daemon now checks if a node went away of no data is received for 10 minutes.
Michiel Broek <mbroek@mbse.eu>
parents:
0
diff
changeset
|
24 | /** |
442d23455ae4
The bms daemon now checks if a node went away of no data is received for 10 minutes.
Michiel Broek <mbroek@mbse.eu>
parents:
0
diff
changeset
|
25 | * @brief Check if nodes are still online and mark them offline if not |
442d23455ae4
The bms daemon now checks if a node went away of no data is received for 10 minutes.
Michiel Broek <mbroek@mbse.eu>
parents:
0
diff
changeset
|
26 | * been seen for 10 minutes. |
442d23455ae4
The bms daemon now checks if a node went away of no data is received for 10 minutes.
Michiel Broek <mbroek@mbse.eu>
parents:
0
diff
changeset
|
27 | */ |
442d23455ae4
The bms daemon now checks if a node went away of no data is received for 10 minutes.
Michiel Broek <mbroek@mbse.eu>
parents:
0
diff
changeset
|
28 | void nodes_check_online(void); |
442d23455ae4
The bms daemon now checks if a node went away of no data is received for 10 minutes.
Michiel Broek <mbroek@mbse.eu>
parents:
0
diff
changeset
|
29 | |
0 | 30 | #endif |