12#ifndef LIB_MODULE_HANDLER_INCLUDE_MODULES_WIFI_HPP_
13#define LIB_MODULE_HANDLER_INCLUDE_MODULES_WIFI_HPP_
19#include <libents/proto/controller.pb.h>
67 void Post(
const Esp32Command& cmd);
69 void Connect(
const Esp32Command& cmd);
71 void CheckRequest(
const Esp32Command& cmd);
73 void Time(
const Esp32Command& cmd);
77 void CheckWiFi(
const Esp32Command& cmd);
79 void CheckApi(
const Esp32Command& cmd);
81 void NtpSync(
const Esp32Command& cmd);
83 void Host(
const Esp32Command& cmd);
91 NTPClient* timeClient;
94 uint8_t request_buffer[WiFiCommand_size] = {};
95 size_t request_buffer_len = 0;
Logic for interfacing with the Dirtviz API.
Class prototype for modules.
WiFi module for the esp32.
size_t OnRequest(uint8_t *buffer)
void OnReceive(const Esp32Command &cmd)
bool Disconnect(void)
Disconnect from WiFi.
bool Connect(void)
Connect to WiFi.
Library for encoding/decoding protobuf messages.