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 | #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 |