|
ENTS-tock
Environmental NeTworked Sensor firmware on Tock OS
|
Irrigation module for the esp32. More...
#include <module_handler/include/modules/irrigation.hpp>
Public Member Functions | |
| ModuleIrrigation (void) | |
| ~ModuleIrrigation (void) | |
| void | OnReceive (const Esp32Command &cmd) |
| size_t | OnRequest (uint8_t *buffer) |
| void | CheckAutoIrrigation () |
Public Member Functions inherited from ModuleHandler::Module | |
| Module (void) | |
| Construct a new Module object. | |
| ~Module (void) | |
| Destroy the Module object. | |
| int | State (void) |
| Get the current state of the module. | |
| int | Type () |
| Get the message type associated with the module. | |
| void | Reset (void) |
| Resets the module to default state. | |
Additional Inherited Members | |
Protected Attributes inherited from ModuleHandler::Module | |
| int | state = 0 |
| int | type = 0 |
Irrigation module for the esp32.
The irrigation module supports opening and closing an irrigation value that is connect to the esp32.
Definition at line 29 of file irrigation.hpp.
| ModuleIrrigation::ModuleIrrigation | ( | void | ) |
Definition at line 21 of file irrigation.cpp.
References ModuleHandler::Module::type.
| ModuleIrrigation::~ModuleIrrigation | ( | void | ) |
Definition at line 25 of file irrigation.cpp.
| void ModuleIrrigation::CheckAutoIrrigation | ( | ) |
Handles irrigation based on soil moisture measurements
Definition at line 48 of file irrigation.cpp.
References auto_irrigation_enabled, check_interval, CheckIrrigationConditions(), and GetSimpleSoilMoisture().
Referenced by loop().
|
virtual |
Implements ModuleHandler::Module.
Definition at line 29 of file irrigation.cpp.
References Check().
|
virtual |
Implements ModuleHandler::Module.
Definition at line 43 of file irrigation.cpp.
References buffer.