Sat, 15 Dec 2018 21:27:01 +0100
During hops load an extra weight in grams field is generated for the grid. Edit the amount is done on the weight field and the amount field is updated too. During save to the database the extra field is removed.
0 | 1 | /** |
2 | * @file fermenters.h | |
3 | */ | |
4 | ||
5 | #ifndef _FERMENTERS_H | |
6 | #define _FERMENTERS_H | |
7 | ||
8 | void fermenter_dump(sys_fermenter_list *fermenter); | |
9 | ||
10 | /** | |
11 | * @brief Birth of a fermenter 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 fermenter type and name. | |
14 | * @param payload The JSON formatted payload with the fermenter details. | |
15 | */ | |
16 | void fermenter_birth_data(char *topic, char *payload); | |
17 | ||
18 | /** | |
19 | * @brief Death of a fermenter. Mark it offline in the database. | |
20 | * @param topic The MQTT topic string, contains the fermenter type and name. | |
21 | */ | |
22 | void fermenter_death(char *topic); | |
23 | ||
24 | /** | |
25 | * @brief Data logging from fermenters. | |
26 | * @param topic The MQTT topic string, contains the fermenter type and name. | |
27 | * @param payload The JSON formatted payload with the fermenter details. | |
28 | */ | |
29 | void fermenter_log(char *topic, char *payload); | |
30 | ||
31 | ||
32 | #endif |