diff --git a/data_svelte/build/bundle.css.gz b/data_svelte/build/bundle.css.gz index 6b67d849..689220c2 100644 Binary files a/data_svelte/build/bundle.css.gz and b/data_svelte/build/bundle.css.gz differ diff --git a/data_svelte/build/bundle.js.gz b/data_svelte/build/bundle.js.gz index 34de4408..565074c8 100644 Binary files a/data_svelte/build/bundle.js.gz and b/data_svelte/build/bundle.js.gz differ diff --git a/data_svelte/index.html b/data_svelte/index.html index d23cc8a1..c0a9e9c1 100644 --- a/data_svelte/index.html +++ b/data_svelte/index.html @@ -4,7 +4,7 @@ - IoT Manager 4.3.1 + IoT Manager 4.3.2 diff --git a/data_svelte/settings.json b/data_svelte/settings.json index 3fc823d6..b6b59bc9 100644 --- a/data_svelte/settings.json +++ b/data_svelte/settings.json @@ -3,7 +3,7 @@ "name": "IoTmanagerVer4", "apssid": "IoTmanager", "appass": "", - "routerssid": "rise2", + "routerssid": "rise", "routerpass": "hostel3333", "timezone": 2, "ntp": "pool.ntp.org", diff --git a/include/Const.h b/include/Const.h index c9f2f027..049ed5c7 100644 --- a/include/Const.h +++ b/include/Const.h @@ -1,7 +1,7 @@ #pragma once //Версия прошивки -#define FIRMWARE_VERSION 423 +#define FIRMWARE_VERSION 424 #ifdef esp8266_4mb #define FIRMWARE_NAME "esp8266_4mb" diff --git a/myProfile.json b/myProfile.json index b807c1e6..fec8e45d 100644 --- a/myProfile.json +++ b/myProfile.json @@ -4,7 +4,7 @@ "name": "IoTmanagerVer4", "apssid": "IoTmanager", "appass": "", - "routerssid": "rise2", + "routerssid": "rise", "routerpass": "hostel3333", "timezone": 2, "ntp": "pool.ntp.org", diff --git a/src/StandWebServer.cpp b/src/StandWebServer.cpp index b1abe6ea..83139b5b 100644 --- a/src/StandWebServer.cpp +++ b/src/StandWebServer.cpp @@ -5,9 +5,11 @@ File fsUploadFile; void standWebServerInit() { // Кэшировать файлы для быстрой работы - HTTP.serveStatic("/bundle.js", FileFS, "/", "max-age=31536000"); // кеширование на 1 год - HTTP.serveStatic("/bundle.css", FileFS, "/", "max-age=31536000"); // кеширование на 1 год - HTTP.serveStatic("/favicon.png", FileFS, "/", "max-age=31536000"); // кеширование на 1 год + HTTP.serveStatic("/bundle.js", FileFS, "/", "max-age=31536000"); // кеширование на 1 год + HTTP.serveStatic("/bundle.css", FileFS, "/", "max-age=31536000"); // кеширование на 1 год + HTTP.serveStatic("/bundle.js.gz", FileFS, "/", "max-age=31536000"); // кеширование на 1 год + HTTP.serveStatic("/bundle.css.gz", FileFS, "/", "max-age=31536000"); // кеширование на 1 год + HTTP.serveStatic("/favicon.png", FileFS, "/", "max-age=31536000"); // кеширование на 1 год HTTP.on("/devicelist.json", HTTP_GET, []() { HTTP.send(200, "application/json", devListHeapJson); @@ -207,7 +209,7 @@ void handleFileList() { HTTP.send(500, "text/plain", "BAD ARGS"); return; } - File dir = FileFS.open(HTTP.arg("list"), "r"); + File dir = FileFS.open("/", "r"); String output = "["; File entry; while (entry = dir.openNextFile()) { @@ -221,6 +223,7 @@ void handleFileList() { entry.close(); } output += "]"; + Serial.println(output); HTTP.send(200, "text/json", output); } //#endif