esp32-warm-water
esp32 based project for the control of a heating element based on temperature
|
Go to the source code of this file.
Functions | |
void | check_system_handler (void *arg) |
void | check_relay (float average_temp) |
void | relay_deinit (void) |
void check_relay | ( | float | average_temp | ) |
void check_system_handler | ( | void * | arg | ) |
polls the ds18b20 sensor for it's latest temperatures and checks what range we are in with respect to the goal and sets the output to the relay accordingly
arg | void pointer mainly because that's the fingerprint that the isr expects. a void pointer holds some address to an unknown type. read more at: https://www.geeksforgeeks.org/void-pointer-c-cpp/ |
< create correctly sized float array for the sensor data
< average temp across sensors (for now =results[0] until we have averaging is implemented)
Definition at line 134 of file main.c.
void relay_deinit | ( | void | ) |