ENTS-tock
Environmental NeTworked Sensor firmware on Tock OS
Loading...
Searching...
No Matches
irrigation.hpp
Go to the documentation of this file.
1
10#ifndef LIB_MODULE_HANDLER_INCLUDE_MODULES_IRRIGATION_HPP_
11#define LIB_MODULE_HANDLER_INCLUDE_MODULES_IRRIGATION_HPP_
12
13#include <Arduino.h>
15
16#include "template_module.hpp"
17#include "webserver.hpp"
18
30 public:
31 ModuleIrrigation(void);
32
34
38 void OnReceive(const Esp32Command& cmd);
39
43 size_t OnRequest(uint8_t* buffer);
44
49
50 private:
54 void Check(const Esp32Command& cmd);
55
57 uint8_t request_buffer[WiFiCommand_size] = {};
58 size_t request_buffer_len = 0;
59};
60
65#endif // LIB_MODULE_HANDLER_INCLUDE_MODULES_IRRIGATION_HPP_
Class prototype for modules.
Irrigation module for the esp32.
size_t OnRequest(uint8_t *buffer)
void OnReceive(const Esp32Command &cmd)
void CheckAutoIrrigation()
uint8_t buffer[32]
bool Check(void)
Check API health.
Definition wifi.c:353
Library for encoding/decoding protobuf messages.