esp32-warm-water
esp32 based project for the control of a heating element based on temperature
Macros | Functions | Variables
webserver.h File Reference

defininitions for webserver More...

#include "esp_err.h"
#include "esp_http_server.h"
Include dependency graph for webserver.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define IS_FILE_EXT(filename, ext)    (strcasecmp(&filename[strlen(filename) - sizeof(ext) + 1], ext) == 0)
 

Functions

void update_display (void)
 
esp_err_t start_file_server (const char *base_path)
 

Variables

volatile float temp
 current temp More...
 
volatile float goal
 goal temp for the system to aim for More...
 
volatile float under
 margin below goal temp at which to turn relay on More...
 
volatile float over
 margin above goal temp at which to turn relay off More...
 

Detailed Description

defininitions for webserver

Definition in file webserver.h.

Macro Definition Documentation

◆ IS_FILE_EXT

#define IS_FILE_EXT (   filename,
  ext 
)     (strcasecmp(&filename[strlen(filename) - sizeof(ext) + 1], ext) == 0)

Definition at line 43 of file webserver.h.

Function Documentation

◆ start_file_server()

esp_err_t start_file_server ( const char *  base_path)

function to start the file server

Parameters
base_paththe local base path to serve files from (eg. "/spiffs")
Returns
error value

Definition at line 429 of file webserver.c.

Here is the caller graph for this function:

◆ update_display()

void update_display ( void  )

Definition at line 86 of file main.c.

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

Variable Documentation

◆ goal

volatile float goal
extern

goal temp for the system to aim for

Definition at line 71 of file main.c.

◆ over

volatile float over
extern

margin above goal temp at which to turn relay off

Definition at line 74 of file main.c.

◆ temp

volatile float temp
extern

current temp

Definition at line 72 of file main.c.

◆ under

volatile float under
extern

margin below goal temp at which to turn relay on

Definition at line 73 of file main.c.