Wed, 23 Oct 2019 14:20:50 +0200
Added the product divide scripts. All parts have all the volumes and weights divided, including the master record. Splitted batches have their own records with the product code formatted as code-n. From this design, we can rebuild the print and checklist.
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 |