// // FILE: WebServer.h // VERSION: 0.1 // PURPOSE: Web Server offering online configuration changes and editing // // #ifndef webServerLoaded #define webServerLoaded true #include #include #include #include "ClockServer.h" class WebServer: public GenericWebServer { public: WebServer(Debug& _debug, Config& _config, ClockServer& _clockServer) : GenericWebServer(_debug, _config), clockServer(_clockServer) { logHeap(); }; void loop(); void begin(); private: ClockServer& clockServer; void handleBattery(); void handleGetClockStatus(); void handleClockActivate(); void handleClockDeactivate(); void handleClockStatus(); }; #endif