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.
/** * @file mysql.h */ #ifndef _MYSQL_H #define _MYSQL_H /** * @brief Connect to the MySQL server and select the database. All parameters must be * set in the $HOME/.bms/bms.conf file. * @return 0 if success, any other value if the connection failed. */ int bms_mysql_init(void); /** * @brief Close MySQL connection and free resources. */ void bms_mysql_end(void); /** * @brief Ping MySQL connection and try to reconnect if the connection is broken. */ void bms_mysql_ping(void); void node_mysql_insert(sys_node_list *node); void node_mysql_update(sys_node_list *node); void node_mysql_death(char *node); void fermenter_mysql_insert(sys_fermenter_list *fermenter); void fermenter_mysql_update(sys_fermenter_list *fermenter); void fermenter_mysql_death(char *node, char *alias); void fermentation_mysql_log(fermentation_log *log); #endif