mirror of
https://github.com/me-no-dev/ESPAsyncWebServer.git
synced 2025-08-14 01:54:30 +02:00
mathieucarbou/Async TCP @ ^3.1.3
This commit is contained in:
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@@ -48,7 +48,7 @@ jobs:
|
||||
run: arduino-cli core install --additional-urls "${{ matrix.index_url }}" ${{ matrix.core }}
|
||||
|
||||
- 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
|
||||
run: ARDUINO_LIBRARY_ENABLE_UNSAFE_INSTALL=true arduino-cli lib install --git-url https://github.com/mathieucarbou/esphome-ESPAsyncTCP#v2.0.0
|
||||
|
@@ -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 `StreamConcat` example to shoiw how to stream multiple files in one response
|
||||
- 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
|
||||
|
||||
## Documentation
|
||||
|
@@ -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 `StreamConcat` example to shoiw how to stream multiple files in one response
|
||||
- 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
|
||||
|
||||
## Documentation
|
||||
|
@@ -1,6 +1,4 @@
|
||||
// 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>
|
||||
#ifdef ESP32
|
||||
@@ -76,20 +74,20 @@ void setup() {
|
||||
})
|
||||
.setFilter(ON_STA_FILTER);
|
||||
|
||||
assert(WiFi.softAP("esp-captive-portal"));
|
||||
dnsServer.start(53, "*", WiFi.softAPIP());
|
||||
server.begin();
|
||||
Serial.println("Captive portal started!");
|
||||
// assert(WiFi.softAP("esp-captive-portal"));
|
||||
// dnsServer.start(53, "*", WiFi.softAPIP());
|
||||
// server.begin();
|
||||
// Serial.println("Captive portal started!");
|
||||
|
||||
while (!hit1) {
|
||||
dnsServer.processNextRequest();
|
||||
yield();
|
||||
}
|
||||
delay(1000); // Wait for the client to process the response
|
||||
// while (!hit1) {
|
||||
// dnsServer.processNextRequest();
|
||||
// yield();
|
||||
// }
|
||||
// delay(1000); // Wait for the client to process the response
|
||||
|
||||
Serial.println("Captive portal opened, stopping it and connecting to WiFi...");
|
||||
dnsServer.stop();
|
||||
WiFi.softAPdisconnect();
|
||||
// Serial.println("Captive portal opened, stopping it and connecting to WiFi...");
|
||||
// dnsServer.stop();
|
||||
// WiFi.softAPdisconnect();
|
||||
|
||||
WiFi.persistent(false);
|
||||
WiFi.begin("IoT");
|
||||
@@ -97,13 +95,13 @@ void setup() {
|
||||
delay(500);
|
||||
}
|
||||
Serial.println("Connected to WiFi with IP address: " + WiFi.localIP().toString());
|
||||
server.begin();
|
||||
|
||||
while (!hit2) {
|
||||
delay(10);
|
||||
}
|
||||
delay(1000); // Wait for the client to process the response
|
||||
|
||||
ESP.restart();
|
||||
// while (!hit2) {
|
||||
// delay(10);
|
||||
// }
|
||||
// delay(1000); // Wait for the client to process the response
|
||||
// ESP.restart();
|
||||
}
|
||||
|
||||
void loop() {
|
||||
|
@@ -27,7 +27,7 @@
|
||||
{
|
||||
"owner": "mathieucarbou",
|
||||
"name": "Async TCP",
|
||||
"version": "^3.1.2",
|
||||
"version": "^3.1.3",
|
||||
"platforms": "espressif32"
|
||||
},
|
||||
{
|
||||
|
@@ -6,7 +6,8 @@ build_flags =
|
||||
-D CORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_VERBOSE
|
||||
lib_deps =
|
||||
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
|
||||
esphome/ESPAsyncTCP-esphome @ 2.0.0
|
||||
upload_protocol = esptool
|
||||
|
Reference in New Issue
Block a user