12#ifndef LIB_MODULE_HANDLER_INCLUDE_TEMPLATE_MODULE_HPP_
13#define LIB_MODULE_HANDLER_INCLUDE_TEMPLATE_MODULE_HPP_
15#include <libents/proto/controller.pb.h>
48 virtual void OnReceive(
const Esp32Command& cmd) = 0;
Class prototype for modules.
int Type()
Get the message type associated with the module.
~Module(void)
Destroy the Module object.
void Reset(void)
Resets the module to default state.
Module(void)
Construct a new Module object.
int State(void)
Get the current state of the module.
virtual void OnReceive(const Esp32Command &cmd)=0
Arduino I2C onRecieve.
virtual size_t OnRequest(uint8_t *buffer)=0
Arduino I2C onRequest.
Power module for the esp32.