first commit
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
#pragma once
|
||||
#include <Arduino.h>
|
||||
#include <WebServer.h>
|
||||
|
||||
class BoomWeb {
|
||||
public:
|
||||
void begin();
|
||||
void handle();
|
||||
|
||||
private:
|
||||
WebServer server_{80};
|
||||
|
||||
bool authorise();
|
||||
void addNoCache();
|
||||
void sendJson(int code, const String& json);
|
||||
void handleRoot();
|
||||
void handleStatus();
|
||||
void handleEvents();
|
||||
void handleWifiScan();
|
||||
void handleWifiSave();
|
||||
void handleWifiForget();
|
||||
void handleSensitivity();
|
||||
void handleSync();
|
||||
void handleReboot();
|
||||
};
|
||||
|
||||
extern BoomWeb boomWeb;
|
||||
Reference in New Issue
Block a user