modify ESPAsyncWebServer library such that it works correctly in this repository

This commit is contained in:
lenvm 2023-11-22 21:17:51 +01:00
parent 19900e6631
commit ace426cf2c
6 changed files with 10 additions and 10 deletions

View file

@ -22,13 +22,13 @@
#include <Arduino.h> #include <Arduino.h>
#ifdef ESP32 #ifdef ESP32
#include <AsyncTCP.h> #include "../../me-no-dev-AsyncTCP/src/AsyncTCP.h"
#define SSE_MAX_QUEUED_MESSAGES 32 #define SSE_MAX_QUEUED_MESSAGES 32
#else #else
#include <ESPAsyncTCP.h> #include <ESPAsyncTCP.h>
#define SSE_MAX_QUEUED_MESSAGES 8 #define SSE_MAX_QUEUED_MESSAGES 8
#endif #endif
#include <ESPAsyncWebServer.h> #include "ESPAsyncWebServer.h"
#include "AsyncWebSynchronization.h" #include "AsyncWebSynchronization.h"

View file

@ -35,7 +35,7 @@
#ifndef ASYNC_JSON_H_ #ifndef ASYNC_JSON_H_
#define ASYNC_JSON_H_ #define ASYNC_JSON_H_
#include <ArduinoJson.h> #include <ArduinoJson.h>
#include <ESPAsyncWebServer.h> #include "ESPAsyncWebServer.h"
#include <Print.h> #include <Print.h>
#if ARDUINOJSON_VERSION_MAJOR == 5 #if ARDUINOJSON_VERSION_MAJOR == 5

View file

@ -23,13 +23,13 @@
#include <Arduino.h> #include <Arduino.h>
#ifdef ESP32 #ifdef ESP32
#include <AsyncTCP.h> #include "../../me-no-dev-AsyncTCP/src/AsyncTCP.h"
#define WS_MAX_QUEUED_MESSAGES 32 #define WS_MAX_QUEUED_MESSAGES 32
#else #else
#include <ESPAsyncTCP.h> #include <ESPAsyncTCP.h>
#define WS_MAX_QUEUED_MESSAGES 8 #define WS_MAX_QUEUED_MESSAGES 8
#endif #endif
#include <ESPAsyncWebServer.h> #include "ESPAsyncWebServer.h"
#include "AsyncWebSynchronization.h" #include "AsyncWebSynchronization.h"

View file

@ -3,7 +3,7 @@
// Synchronisation is only available on ESP32, as the ESP8266 isn't using FreeRTOS by default // Synchronisation is only available on ESP32, as the ESP8266 isn't using FreeRTOS by default
#include <ESPAsyncWebServer.h> #include "ESPAsyncWebServer.h"
#ifdef ESP32 #ifdef ESP32

View file

@ -30,10 +30,10 @@
#ifdef ESP32 #ifdef ESP32
#include <WiFi.h> #include <WiFi.h>
#include <AsyncTCP.h> #include "../../me-no-dev-AsyncTCP/src/AsyncTCP.h"
#elif defined(ESP8266) #elif defined(ESP8266)
#include <ESP8266WiFi.h> #include <ESP8266WiFi.h>
#include <ESPAsyncTCP.h> #include "../../me-no-dev-AsyncTCP/src/AsyncTCP.h"
#else #else
#error Platform not supported #error Platform not supported
#endif #endif
@ -57,7 +57,7 @@ class AsyncStaticWebHandler;
class AsyncCallbackWebHandler; class AsyncCallbackWebHandler;
class AsyncResponseStream; class AsyncResponseStream;
#ifndef WEBSERVER_H #ifndef ESPWEBSERVER_H
typedef enum { typedef enum {
HTTP_GET = 0b00000001, HTTP_GET = 0b00000001,
HTTP_POST = 0b00000010, HTTP_POST = 0b00000010,

View file

@ -1,6 +1,6 @@
#ifndef SPIFFSEditor_H_ #ifndef SPIFFSEditor_H_
#define SPIFFSEditor_H_ #define SPIFFSEditor_H_
#include <ESPAsyncWebServer.h> #include "ESPAsyncWebServer.h"
class SPIFFSEditor: public AsyncWebHandler { class SPIFFSEditor: public AsyncWebHandler {
private: private: