|
ENTS-tock
Environmental NeTworked Sensor firmware on Tock OS
|
#include <libents/proto/controller.pb.h>Go to the source code of this file.
Functions | |
| void | SetupServer () |
| Setup endpoints for the webserver. | |
| void | HandleClient () |
| Handle requests from the webserver. | |
| IrrigationCommand_State | GetSolenoidState () |
| Get the current solenoid state. | |
| void | SetSolenoidState (IrrigationCommand_State newState) |
| Set the solenoid state. | |
| void | EnableAutoIrrigation (float min_thresh, float max_thresh) |
| void | DisableAutoIrrigation () |
| bool | IsAutoIrrigationEnabled () |
| float | GetMinThreshold () |
| float | GetMaxThreshold () |
| unsigned long | GetCheckInterval () |
| void | SetCheckInterval (unsigned long interval_ms) |
| float | GetSimpleSoilMoisture () |
| void | CheckIrrigationConditions () |
| float | GetCurrentMoistureFromCache () |
| void CheckIrrigationConditions | ( | ) |
Definition at line 80 of file irrigation.cpp.
References auto_irrigation_enabled, GetSolenoidState(), moisture_max_threshold, moisture_min_threshold, and SetSolenoidState().
Referenced by ModuleIrrigation::CheckAutoIrrigation(), and HandleMoisture().
| void DisableAutoIrrigation | ( | ) |
Definition at line 192 of file irrigation.cpp.
References auto_irrigation_enabled.
Referenced by HandleAutoToggle().
| void EnableAutoIrrigation | ( | float | min_thresh, |
| float | max_thresh | ||
| ) |
Definition at line 184 of file irrigation.cpp.
References auto_irrigation_enabled, moisture_max_threshold, and moisture_min_threshold.
Referenced by HandleAutoIrrigationSetup(), and HandleAutoToggle().
| unsigned long GetCheckInterval | ( | ) |
Definition at line 203 of file irrigation.cpp.
References check_interval.
Referenced by HandleAutoIrrigationSetup(), and HandleStatus().
| float GetCurrentMoistureFromCache | ( | ) |
Definition at line 209 of file irrigation.cpp.
Referenced by GetCurrentMoisture().
| float GetMaxThreshold | ( | ) |
Definition at line 201 of file irrigation.cpp.
References moisture_max_threshold.
Referenced by HandleAutoToggle(), and HandleStatus().
| float GetMinThreshold | ( | ) |
Definition at line 199 of file irrigation.cpp.
References moisture_min_threshold.
Referenced by HandleAutoToggle(), and HandleStatus().
| float GetSimpleSoilMoisture | ( | ) |
Definition at line 107 of file irrigation.cpp.
References formatTimeRFC1123().
Referenced by ModuleIrrigation::CheckAutoIrrigation().
| IrrigationCommand_State GetSolenoidState | ( | ) |
Get the current solenoid state.
Definition at line 30 of file webserver.cpp.
References currentSolenoidState.
Referenced by CheckIrrigationConditions(), HandleState(), and HandleStatus().
| void HandleClient | ( | ) |
Handle requests from the webserver.
Definition at line 103 of file webserver.cpp.
References UpdateTimedOperation().
Referenced by loop().
| bool IsAutoIrrigationEnabled | ( | ) |
Definition at line 197 of file irrigation.cpp.
References auto_irrigation_enabled.
Referenced by HandleMoisture(), and HandleStatus().
| void SetCheckInterval | ( | unsigned long | interval_ms | ) |
Definition at line 205 of file irrigation.cpp.
References check_interval.
Referenced by HandleAutoIrrigationSetup().
| void SetSolenoidState | ( | IrrigationCommand_State | newState | ) |
Set the solenoid state.
Definition at line 33 of file webserver.cpp.
References currentSolenoidState.
Referenced by CheckIrrigationConditions(), HandleAutoToggle(), HandleClose(), HandleOpen(), and UpdateTimedOperation().
| void SetupServer | ( | ) |
Setup endpoints for the webserver.
Definition at line 108 of file webserver.cpp.
References HandleAutoIrrigationSetup(), HandleAutoToggle(), HandleClose(), HandleMoisture(), HandleOpen(), HandleState(), HandleStatus(), and HandleTimed().
Referenced by setup().