fastclockClient/doc/WebServer_h.txt

35 lines
715 B
Plaintext

//
// FILE: WebServer.h
// VERSION: 0.1
// PURPOSE: Web Server offering online configuration changes and editing
//
//
#ifndef webServerLoaded
#define webServerLoaded true
#include <Arduino.h>
#include <DjDebug.h>
#include <DjGenericWebServer.h>
#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