1#ifndef LIB_IRRIGATION_INCLUDE_WEBSERVER_HPP
2#define LIB_IRRIGATION_INCLUDE_WEBSERVER_HPP
4#include <libents/proto/controller.pb.h>
void SetCheckInterval(unsigned long interval_ms)
IrrigationCommand_State GetSolenoidState()
Get the current solenoid state.
void SetupServer()
Setup endpoints for the webserver.
void EnableAutoIrrigation(float min_thresh, float max_thresh)
bool IsAutoIrrigationEnabled()
void SetSolenoidState(IrrigationCommand_State newState)
Set the solenoid state.
float GetCurrentMoistureFromCache()
float GetSimpleSoilMoisture()
unsigned long GetCheckInterval()
void HandleClient()
Handle requests from the webserver.
void CheckIrrigationConditions()
void DisableAutoIrrigation()