Initial commit
This commit is contained in:
34
doc/WebServer_h.txt
Normal file
34
doc/WebServer_h.txt
Normal file
@@ -0,0 +1,34 @@
|
||||
//
|
||||
// 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
|
||||
Reference in New Issue
Block a user