This commit is contained in:
Pupsmuckel
2021-06-23 15:58:48 +02:00
19 changed files with 2193 additions and 18 deletions
+37
View File
@@ -0,0 +1,37 @@
#ifndef __HTTPSERVER_H
#define __HTTPSERVER_H
#include <ESP8266WebServer.h>
class HTTPServer {
private:
int port;
ESP8266WebServer* server;
public:
HTTPServer(int port) {
server = new ESP8266WebServer;
// server->on("/", handleRootGz);
// server->on("/style.css", handleCssGz);
// server->on("/favicon.png", handleFaviconGz);
// server->onNotFound(handleNotFound);
server->begin(port);
}
~HTTPServer() {
server->stop();
delete server;
}
void initialize() {
server->begin(port);
}
void handleClient() {
server->handleClient();
}
};
#endif // __HTTPSERVER_H
-2
View File
@@ -1,2 +0,0 @@
CD .\include\http
py.exe -m http.server