Rolling 20201204

This commit is contained in:
jomjol
2020-12-04 22:09:20 +01:00
parent 9e85b1240a
commit 816f93222b
29 changed files with 591 additions and 12 deletions

View File

@@ -13,6 +13,8 @@
#include "esp_wifi.h"
#include "server_tflite.h"
httpd_handle_t server = NULL;
@@ -152,7 +154,9 @@ esp_err_t hello_main_handler(httpd_req_t *req)
if ((strcmp(req->uri, "/") == 0))
{
filetosend = filetosend + "/html/index.html";
{
filetosend = filetosend + "/html/index.html";
}
}
else
{
@@ -163,6 +167,11 @@ esp_err_t hello_main_handler(httpd_req_t *req)
}
}
if (filetosend == "/sdcard/html/index.html" && isSetupModusActive()) {
printf("System ist im Setupmodus --> index.html --> setup.html");
filetosend = "/sdcard/html/setup.html";
}
printf("Filename: %s\n", filename);
printf("File requested: %s\n", filetosend.c_str());