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>
#ifdef ESP32
#include <AsyncTCP.h>
#include "../../me-no-dev-AsyncTCP/src/AsyncTCP.h"
#define SSE_MAX_QUEUED_MESSAGES 32
#else
#include <ESPAsyncTCP.h>
#define SSE_MAX_QUEUED_MESSAGES 8
#endif
#include <ESPAsyncWebServer.h>
#include "ESPAsyncWebServer.h"
#include "AsyncWebSynchronization.h"

View file

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

View file

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

View file

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

View file

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