Fri, 28 Dec 2018 23:18:42 +0100
Some pH calculations cane use twice as much loops, probably because we have better float precision then the original pascal code. More variables to prevent html reads. Use predicted mash pH (the grist in demi water) to calculate the pH shift from the tapwater to the target pH. It's better but not right yet. Or it is right and brouwhulp is far off.
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 |