From f408e560e7544fdef6748d0f35d5f25126a8d6be Mon Sep 17 00:00:00 2001 From: Spragie <62320440+ACure4IT@users.noreply.github.com> Date: Fri, 24 Mar 2023 06:36:22 -0400 Subject: [PATCH 1/2] Upd dep-install.sh to menodev->dvarrel This update is to reference, or "include", the dvarrel libraries rather than the me-no-dev libraries as Arduino has deprecated at least one of me-no-dev's replacing it with dvarrel's. This update should resolve dependency issues in VSCode/PlatformIO. --- .github/scripts/dep-install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/scripts/dep-install.sh b/.github/scripts/dep-install.sh index fa1dd8e..7e8a4b2 100644 --- a/.github/scripts/dep-install.sh +++ b/.github/scripts/dep-install.sh @@ -1,5 +1,5 @@ #!/bin/bash cd ${HOME}/Arduino/libraries -git clone https://github.com/me-no-dev/ESPAsyncWebServer.git ESPAsyncWebServer -git clone https://github.com/me-no-dev/ESPAsyncTCP.git ESPAsyncTCP -git clone https://github.com/me-no-dev/AsyncTCP.git AsyncTCP +git clone https://github.com/dvarrel/ESPAsyncWebSrv.git ESPAsyncWebSrv +git clone https://github.com/dvarrel/ESPAsyncTCP.git ESPAsyncTCP +git clone https://github.com/dvarrel/AsyncTCP.git AsyncTCP From 82b34d26ec5db7cfcf577a1280bf1d0b71eb2dbf Mon Sep 17 00:00:00 2001 From: Spragie <62320440+ACure4IT@users.noreply.github.com> Date: Fri, 24 Mar 2023 11:32:59 +0000 Subject: [PATCH 2/2] Update reference to correct header file name. --- README.md | 8 ++++---- examples/Async_Demo/Async_Demo.ino | 2 +- src/AsyncElegantOTA.h | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index e6e16d5..63f69b9 100644 --- a/README.md +++ b/README.md @@ -102,13 +102,13 @@ upload_url = ``` #include #include -#include +#include #include const char* ssid = "........"; const char* password = "........"; -AsyncWebServer server(80); +AsyncWebSrv server(80); void setup(void) { @@ -148,7 +148,7 @@ void loop(void) { ``` #include #include -#include +#include #include const char* ssid = "........"; @@ -174,7 +174,7 @@ void setup(void) { Serial.print("IP address: "); Serial.println(WiFi.localIP()); - server.on("/", HTTP_GET, [](AsyncWebServerRequest *request) { + server.on("/", HTTP_GET, [](AsyncWebSrvRequest *request) { request->send(200, "text/plain", "Hi! I am ESP32."); }); diff --git a/examples/Async_Demo/Async_Demo.ino b/examples/Async_Demo/Async_Demo.ino index e854695..0a50881 100644 --- a/examples/Async_Demo/Async_Demo.ino +++ b/examples/Async_Demo/Async_Demo.ino @@ -15,7 +15,7 @@ #include #endif -#include +#include #include const char* ssid = "........"; diff --git a/src/AsyncElegantOTA.h b/src/AsyncElegantOTA.h index 326ff5d..1faf2f5 100644 --- a/src/AsyncElegantOTA.h +++ b/src/AsyncElegantOTA.h @@ -20,7 +20,7 @@ #endif #include "Hash.h" -#include "ESPAsyncWebServer.h" +#include "ESPAsyncWebSrv.h" #include "FS.h" #include "elegantWebpage.h"