mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2026-01-27 21:00:42 +03:00
Rolling 20201204
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user