MistyGro API
C++ API for MistyGro's ESP32 controller based on the Arduino framework
Functions | Variables
main.cpp File Reference
#include <Arduino.h>
#include "WiFi.h"
#include "firebase_logger.h"
#include "ldr.h"
#include "light_scheduler.h"
#include "relay.h"
#include "scheduler.h"
#include "secrets.h"
#include "temperature_sensor.h"
#include "timer.h"
#include "utility.h"
Include dependency graph for main.cpp:

Go to the source code of this file.

Functions

String wrap_date_time (const char *path)
 
String wrap_date (const char *path)
 
void toggle_misters ()
 
void check_temperature ()
 
void check_and_set_light ()
 
void check_wifi ()
 
void check_and_refresh_firebase_token ()
 
void handle_wifi_connection (WiFiEvent_t event, WiFiEventInfo_t info)
 
void setup ()
 
void loop ()
 

Variables

ADC adc
 
LDR ldr (10, &adc)
 
TemperatureSensor temp_sensor (pin::temp_sensor_bus)
 
RelayAH misters (pin::misters)
 
RelayAH light (pin::extra_relay)
 
RelayAH extra (pin::light)
 
Timer timer
 
FireLogger flog
 
Scheduler scheduler
 

Function Documentation

◆ check_and_refresh_firebase_token()

void check_and_refresh_firebase_token ( )

Definition at line 105 of file main.cpp.

◆ check_and_set_light()

void check_and_set_light ( )

Definition at line 83 of file main.cpp.

◆ check_temperature()

void check_temperature ( )

Definition at line 75 of file main.cpp.

◆ check_wifi()

void check_wifi ( )

Definition at line 97 of file main.cpp.

◆ handle_wifi_connection()

void handle_wifi_connection ( WiFiEvent_t  event,
WiFiEventInfo_t  info 
)

Definition at line 113 of file main.cpp.

◆ loop()

void loop ( )

Definition at line 157 of file main.cpp.

◆ setup()

void setup ( )

Definition at line 124 of file main.cpp.

◆ toggle_misters()

void toggle_misters ( )

Definition at line 67 of file main.cpp.

◆ wrap_date()

String wrap_date ( const char *  path)

Definition at line 55 of file main.cpp.

◆ wrap_date_time()

String wrap_date_time ( const char *  path)

Definition at line 41 of file main.cpp.

Variable Documentation

◆ adc

ADC adc

Definition at line 28 of file main.cpp.

◆ extra

RelayAH extra(pin::light) ( pin::light  )

◆ flog

FireLogger flog

Definition at line 38 of file main.cpp.

◆ ldr

LDR ldr(10, &adc) ( 10  ,
adc 
)

◆ light

LightScheduler light_scheduler & light ( pin::extra_relay  )

Definition at line 33 of file main.cpp.

◆ misters

RelayAH misters(pin::misters) ( pin::misters  )

◆ scheduler

Scheduler scheduler

Definition at line 39 of file main.cpp.

◆ temp_sensor

TemperatureSensor temp_sensor(pin::temp_sensor_bus) ( pin::temp_sensor_bus  )

◆ timer

Timer timer

Definition at line 37 of file main.cpp.