debugging support :) over gdbstub

This commit is contained in:
Simon Schmidt
2021-06-22 20:25:27 +02:00
parent c8938f4b36
commit 1d7f2f368b
8 changed files with 112 additions and 23 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