Sat, 23 Feb 2019 19:55:42 +0100
ABV calculation uses Daniels method. sg_to_plato and plato_to_sg functions use brewersfriend calculation. Added sg_to_brix and brix_to_sg functions. Make brewdate tab read only when the primary fermentation is ready. Brix aid input functions for primary end sg and final sg fields. Added tooltips on the fermentation tab. Changes in the layout of the fermentation tab.
0 | 1 | #ifndef _MQTT_H |
2 | #define _MQTT_H | |
3 | ||
4 | #define STATUS_CONNECTING 0 | |
5 | #define STATUS_CONNACK_RECVD 1 | |
6 | #define STATUS_WAITING 2 | |
7 | ||
8 | ||
9 | /** | |
10 | * @brief Connect to the MQTT server. | |
11 | * @return 0 if success, else the connection failed. | |
12 | */ | |
13 | int mqtt_connect(void); | |
14 | ||
15 | /** | |
16 | * @brief Disconnect from the MQTT server. | |
17 | */ | |
18 | void mqtt_disconnect(void); | |
19 | ||
20 | #endif |