mathieucarbou/Async TCP @ ^3.1.3

This commit is contained in:
Mathieu Carbou
2024-05-30 01:15:57 +02:00
parent 499c455844
commit 23e2889402
6 changed files with 24 additions and 25 deletions

View File

@@ -48,7 +48,7 @@ jobs:
run: arduino-cli core install --additional-urls "${{ matrix.index_url }}" ${{ matrix.core }} run: arduino-cli core install --additional-urls "${{ matrix.index_url }}" ${{ matrix.core }}
- name: Install AsyncTCP-esphome - name: Install AsyncTCP-esphome
run: ARDUINO_LIBRARY_ENABLE_UNSAFE_INSTALL=true arduino-cli lib install --git-url https://github.com/mathieucarbou/AsyncTCP#v3.1.2 run: ARDUINO_LIBRARY_ENABLE_UNSAFE_INSTALL=true arduino-cli lib install --git-url https://github.com/mathieucarbou/AsyncTCP#v3.1.3
- name: Install ESPAsyncTCP-esphome - name: Install ESPAsyncTCP-esphome
run: ARDUINO_LIBRARY_ENABLE_UNSAFE_INSTALL=true arduino-cli lib install --git-url https://github.com/mathieucarbou/esphome-ESPAsyncTCP#v2.0.0 run: ARDUINO_LIBRARY_ENABLE_UNSAFE_INSTALL=true arduino-cli lib install --git-url https://github.com/mathieucarbou/esphome-ESPAsyncTCP#v2.0.0

View File

@@ -26,7 +26,7 @@ This fork is based on [yubox-node-org/ESPAsyncWebServer](https://github.com/yubo
- Added `setAuthentication(const String& username, const String& password)` - Added `setAuthentication(const String& username, const String& password)`
- Added `StreamConcat` example to shoiw how to stream multiple files in one response - Added `StreamConcat` example to shoiw how to stream multiple files in one response
- Remove filename after inline in Content-Disposition header according to RFC2183 - Remove filename after inline in Content-Disposition header according to RFC2183
- Depends on `mathieucarbou/Async TCP @ ^3.1.2` - Depends on `mathieucarbou/Async TCP @ ^3.1.3`
- Arduino 3 / ESP-IDF 5.1 compatibility - Arduino 3 / ESP-IDF 5.1 compatibility
## Documentation ## Documentation

View File

@@ -26,7 +26,7 @@ This fork is based on [yubox-node-org/ESPAsyncWebServer](https://github.com/yubo
- Added `setAuthentication(const String& username, const String& password)` - Added `setAuthentication(const String& username, const String& password)`
- Added `StreamConcat` example to shoiw how to stream multiple files in one response - Added `StreamConcat` example to shoiw how to stream multiple files in one response
- Remove filename after inline in Content-Disposition header according to RFC2183 - Remove filename after inline in Content-Disposition header according to RFC2183
- Depends on `mathieucarbou/Async TCP @ ^3.1.2` - Depends on `mathieucarbou/Async TCP @ ^3.1.3`
- Arduino 3 / ESP-IDF 5.1 compatibility - Arduino 3 / ESP-IDF 5.1 compatibility
## Documentation ## Documentation

View File

@@ -1,6 +1,4 @@
// Reproduced issue https://github.com/mathieucarbou/ESPAsyncWebServer/issues/26 // Reproduced issue https://github.com/mathieucarbou/ESPAsyncWebServer/issues/26
// The issue is present when using mathieucarbou/Async TCP @ ^3.1.2 (which is based on ESPHome fork)
// The issue is not present when directly using https://github.com/me-no-dev/AsyncTCP
#include <DNSServer.h> #include <DNSServer.h>
#ifdef ESP32 #ifdef ESP32
@@ -76,20 +74,20 @@ void setup() {
}) })
.setFilter(ON_STA_FILTER); .setFilter(ON_STA_FILTER);
assert(WiFi.softAP("esp-captive-portal")); // assert(WiFi.softAP("esp-captive-portal"));
dnsServer.start(53, "*", WiFi.softAPIP()); // dnsServer.start(53, "*", WiFi.softAPIP());
server.begin(); // server.begin();
Serial.println("Captive portal started!"); // Serial.println("Captive portal started!");
while (!hit1) { // while (!hit1) {
dnsServer.processNextRequest(); // dnsServer.processNextRequest();
yield(); // yield();
} // }
delay(1000); // Wait for the client to process the response // delay(1000); // Wait for the client to process the response
Serial.println("Captive portal opened, stopping it and connecting to WiFi..."); // Serial.println("Captive portal opened, stopping it and connecting to WiFi...");
dnsServer.stop(); // dnsServer.stop();
WiFi.softAPdisconnect(); // WiFi.softAPdisconnect();
WiFi.persistent(false); WiFi.persistent(false);
WiFi.begin("IoT"); WiFi.begin("IoT");
@@ -97,13 +95,13 @@ void setup() {
delay(500); delay(500);
} }
Serial.println("Connected to WiFi with IP address: " + WiFi.localIP().toString()); Serial.println("Connected to WiFi with IP address: " + WiFi.localIP().toString());
server.begin();
while (!hit2) { // while (!hit2) {
delay(10); // delay(10);
} // }
delay(1000); // Wait for the client to process the response // delay(1000); // Wait for the client to process the response
// ESP.restart();
ESP.restart();
} }
void loop() { void loop() {

View File

@@ -27,7 +27,7 @@
{ {
"owner": "mathieucarbou", "owner": "mathieucarbou",
"name": "Async TCP", "name": "Async TCP",
"version": "^3.1.2", "version": "^3.1.3",
"platforms": "espressif32" "platforms": "espressif32"
}, },
{ {

View File

@@ -6,7 +6,8 @@ build_flags =
-D CORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_VERBOSE -D CORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_VERBOSE
lib_deps = lib_deps =
bblanchon/ArduinoJson @ 7.0.4 bblanchon/ArduinoJson @ 7.0.4
mathieucarbou/Async TCP @ ^3.1.2 mathieucarbou/Async TCP @ ^3.1.3
; https://github.com/mathieucarbou/AsyncTCP
; https://github.com/me-no-dev/AsyncTCP ; https://github.com/me-no-dev/AsyncTCP
esphome/ESPAsyncTCP-esphome @ 2.0.0 esphome/ESPAsyncTCP-esphome @ 2.0.0
upload_protocol = esptool upload_protocol = esptool