From f3cdafe7d00cb06508b7efe08d4aa672b5d360a7 Mon Sep 17 00:00:00 2001 From: proddy Date: Sat, 14 Jun 2025 09:30:47 +0200 Subject: [PATCH] ESPAsyncWebServer 3.7.8 support --- mock-api/restServer.ts | 26 +++++++++++++------------- platformio.ini | 2 +- src/ESP32React/HttpEndpoint.h | 1 + 3 files changed, 15 insertions(+), 14 deletions(-) diff --git a/mock-api/restServer.ts b/mock-api/restServer.ts index b8ed64b37..0ea13ac1c 100644 --- a/mock-api/restServer.ts +++ b/mock-api/restServer.ts @@ -278,10 +278,10 @@ function updateMask(entity: any, de: any, dd: any) { const old_custom_name = dd.nodes[dd_objIndex].cn; console.log( 'comparing names, old (' + - old_custom_name + - ') with new (' + - new_custom_name + - ')' + old_custom_name + + ') with new (' + + new_custom_name + + ')' ); if (old_custom_name !== new_custom_name) { changed = true; @@ -377,15 +377,15 @@ function check_upgrade(version: string) { console.log( 'Upgrade this version (' + - THIS_VERSION + - ') to dev (' + - dev_version + - ') is ' + - (DEV_VERSION_IS_UPGRADEABLE ? 'YES' : 'NO') + - ' and to stable (' + - stable_version + - ') is ' + - (STABLE_VERSION_IS_UPGRADEABLE ? 'YES' : 'NO') + THIS_VERSION + + ') to dev (' + + dev_version + + ') is ' + + (DEV_VERSION_IS_UPGRADEABLE ? 'YES' : 'NO') + + ' and to stable (' + + stable_version + + ') is ' + + (STABLE_VERSION_IS_UPGRADEABLE ? 'YES' : 'NO') ); data = { emsesp_version: THIS_VERSION, diff --git a/platformio.ini b/platformio.ini index 0f095e423..704c1a6d1 100644 --- a/platformio.ini +++ b/platformio.ini @@ -102,7 +102,7 @@ board_build.filesystem = littlefs lib_deps = bblanchon/ArduinoJson @ 7.4.1 ESP32Async/AsyncTCP @ 3.4.4 - ESP32Async/ESPAsyncWebServer @ 3.7.7 + ESP32Async/ESPAsyncWebServer @ 3.7.8 https://github.com/emsesp/EMS-ESP-Modules.git @ 1.0.7 ; diff --git a/src/ESP32React/HttpEndpoint.h b/src/ESP32React/HttpEndpoint.h index b2c34c99f..3b46a9e18 100644 --- a/src/ESP32React/HttpEndpoint.h +++ b/src/ESP32React/HttpEndpoint.h @@ -2,6 +2,7 @@ #define HttpEndpoint_h #include +#include #include #include "SecurityManager.h"