Wed, 30 Jan 2019 16:40:23 +0100
Added two missing fields in getfermentablesources.php. When getting a single recipe from the database, update the fermentables json data with available inventory and ingredient. Added inventory column in the fermentable grid. Added ingredient selection in the fermentable popup window to replace ingredient.
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 |