#pragma once #include "hardware.pb.h" #include #include #include class OtaUpdate { public: OtaUpdate(); bool configure(const hardware_SensorOTAEnable& config); void update(); void disable(); private: hardware_SensorOTAEnable _config; ESP8266WebServer _server; ESP8266HTTPUpdateServer _httpUpdater; bool _configured; unsigned long _startTime; };