moving sensor data collection to collector src

This commit is contained in:
Torsten Ruger
2021-06-27 22:12:14 +03:00
parent de0532bc93
commit 568a8b88c3
4 changed files with 75 additions and 57 deletions

View File

@ -3,8 +3,6 @@
#define DBG_OUTPUT_PORT Serial
ESP8266WebServer* serv = NULL;
String getContentType(String filename){
if(filename.indexOf(".htm") > 0) return "text/html";
@ -28,7 +26,6 @@ bool handleFileRead(String path ){
DBG_OUTPUT_PORT.println("handle: " + path);
File file = LittleFS.open(path, "r");
if(path.endsWith(".gz")){
DBG_OUTPUT_PORT.println("sETTING GZIP" );
//server.sendHeader("Content-Encoding" , "gzip");
} else {
contentType += ";charset=utf-8";