diff --git a/data_svelte/build/bundle.css.gz b/data_svelte/build/bundle.css.gz index a4f468ce..6b67d849 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 4fd4d387..34de4408 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 f717663f..d23cc8a1 100644 --- a/data_svelte/index.html +++ b/data_svelte/index.html @@ -4,7 +4,7 @@ - IoT Manager 4.3.0 + IoT Manager 4.3.1 diff --git a/include/EspFileSystem.h b/include/EspFileSystem.h index fbae8a7b..1906a6e2 100644 --- a/include/EspFileSystem.h +++ b/include/EspFileSystem.h @@ -45,3 +45,4 @@ extern const String getUniqueId(const char* name); extern uint32_t ESP_getChipId(void); extern uint32_t ESP_getFlashChipId(void); extern const String getMacAddress(); +extern const String getWebVersion(); diff --git a/src/EspFileSystem.cpp b/src/EspFileSystem.cpp index d7ec44ad..3065fea6 100644 --- a/src/EspFileSystem.cpp +++ b/src/EspFileSystem.cpp @@ -48,6 +48,14 @@ const String getUniqueId(const char* name) { return String(name) + getMacAddress(); } +const String getWebVersion() { + String text = readFile("/index.html", 2000); + text = selectFromMarkerToMarker(text, "title", 1); + text = selectFromMarkerToMarker(text, " ", 2); + text.replace("