Skip to content

Commit 1b07095

Browse files
author
dam74
committed
compatibility esp32 >=3.0.0
1 parent bc8b756 commit 1b07095

File tree

5 files changed

+14
-3
lines changed

5 files changed

+14
-3
lines changed

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=ESPAsyncWebSrv
2-
version=1.2.7
2+
version=1.2.8
33
author=dvarrel
44
maintainer=dvarrel
55
sentence=Asynchronous HTTP and WebSocket Server Library for ESP8266 and ESP32 . Forked from https://github.com/me-no-dev/ESPAsyncWebServer

src/AsyncEventSource.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ void AsyncEventSourceClient::_queueMessage(AsyncEventSourceMessage *dataMessage)
185185
return;
186186
}
187187
if(_messageQueue.length() >= SSE_MAX_QUEUED_MESSAGES){
188-
ets_printf("ERROR: Too many messages queued\n");
188+
//ets_printf("ERROR: Too many messages queued\n");
189189
delete dataMessage;
190190
} else {
191191
_messageQueue.add(dataMessage);

src/AsyncWebSocket.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ void AsyncWebSocketClient::_queueMessage(AsyncWebSocketMessage *dataMessage){
548548
return;
549549
}
550550
if(_messageQueue.length() >= WS_MAX_QUEUED_MESSAGES){
551-
ets_printf("ERROR: Too many messages queued\n");
551+
//ets_printf("ERROR: Too many messages queued\n");
552552
delete dataMessage;
553553
} else {
554554
_messageQueue.add(dataMessage);

src/AsyncWebSocket.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@
2424
#include <Arduino.h>
2525
#ifdef ESP32
2626
#include <AsyncTCP.h>
27+
#if ESP_ARDUINO_VERSION >= ESP_ARDUINO_VERSION_VAL(3, 0, 0)
28+
// Code for version 3.x
29+
#include "mbedtls/compat-2.x.h"
30+
#endif
2731
#define WS_MAX_QUEUED_MESSAGES 32
2832
#else
2933
#include <ESPAsyncTCP.h>

src/WebAuthentication.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@
2424

2525
#include "Arduino.h"
2626

27+
#if ESP_ARDUINO_VERSION >= ESP_ARDUINO_VERSION_VAL(3, 0, 0)
28+
// Code for version 3.x
29+
#ifdef ESP32
30+
#include "mbedtls/compat-2.x.h"
31+
#endif
32+
#endif
33+
2734
bool checkBasicAuthentication(const char * header, const char * username, const char * password);
2835
String requestDigestAuthentication(const char * realm);
2936
bool checkDigestAuthentication(const char * header, const char * method, const char * username, const char * password, const char * realm, bool passwordIsHash, const char * nonce, const char * opaque, const char * uri);

0 commit comments

Comments
 (0)