esp32-warm-water
esp32 based project for the control of a heating element based on temperature
Functions
control.h File Reference
This graph shows which files directly or indirectly include this file:

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)
 

Function Documentation

◆ check_relay()

void check_relay ( float  average_temp)

check if a change in the relay's operation is necessary and perform it if so

Todo:
average results/check difference between sensors if multiple here

Definition at line 149 of file main.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ check_system_handler()

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

Parameters
argvoid 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.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ relay_deinit()

void relay_deinit ( void  )
Here is the caller graph for this function: