diff --git a/README.md b/README.md index e3c9e1f..d3df8e7 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,8 @@ * [1. ESP32 has 2 ADCs, named ADC1 and ADC2](#1--esp32-has-2-adcs-named-adc1-and-adc2) * [2. ESP32 ADCs functions](#2-esp32-adcs-functions) * [3. ESP32 WiFi uses ADC2 for WiFi functions](#3-esp32-wifi-uses-adc2-for-wifi-functions) +* [HOWTO use ESP32 with LwIP W5500 or ENC28J60 Ethernet](#HOWTO-use-ESP32-with-LwIP-W5500-or-ENC28J60-Ethernet) + * [1. ESP32 Wiring](#1-ESP32-wiring) * [Examples](#examples) * [For ESP32](#for-esp32) * [1. AsyncHTTPSRequest_ESP](examples/AsyncHTTPSRequest_ESP) @@ -63,6 +65,7 @@ * [ 9. AsyncHTTPSRequest_ESP_Multi on ESP32_DEV](#9-AsyncHTTPSRequest_ESP_Multi-on-ESP32_DEV) **New** * [10. AsyncHTTP_HTTPSRequest_ESP on ESP32_DEV](#10-AsyncHTTP_HTTPSRequest_ESP-on-ESP32_DEV) **New** * [11. AsyncHTTPSRequest_ESP32_ENC using ESP32_DEV with ESP32_ENC28J60](#11-AsyncHTTPSRequest_ESP32_ENC-using-ESP32_DEV-with-ESP32_ENC28J60) **New** + * [12. AsyncHTTPSRequest_ESP32_W5500 using ESP32_DEV with ESP32_W5500](#12-AsyncHTTPSRequest_ESP32_W5500-using-ESP32_DEV-with-ESP32_W5500) **New** * [Debug](#debug) * [Troubleshooting](#troubleshooting) * [Issues](#issues) @@ -163,6 +166,8 @@ This library is based on, modified from: #### 3. **ESP32 boards using LwIP ENC28J60 Ethernet** +#### 4. **ESP32 boards using LwIP W5500 Ethernet** + --- @@ -184,8 +189,9 @@ This library is based on, modified from: 3. [`AsyncTCP_SSL v1.3.1+`](https://github.com/khoih-prog/AsyncTCP_SSL) for ESP32. [![GitHub release](https://img.shields.io/github/release/khoih-prog/AsyncTCP_SSL.svg)](https://github.com/khoih-prog/AsyncTCP_SSL/releases) 4. [`WebServer_WT32_ETH01 v1.5.1+`](https://github.com/khoih-prog/WebServer_WT32_ETH01) for ESP32-based WT32_ETH01 using **either ESP32 core v2.0.0+ or v1.0.6-**. [![GitHub release](https://img.shields.io/github/release/khoih-prog/WebServer_WT32_ETH01.svg)](https://github.com/khoih-prog/WebServer_WT32_ETH01/releases) 5. [`WebServer_ESP32_ENC v1.5.1+`](https://github.com/khoih-prog/WebServer_ESP32_ENC) for ESP32 boards using `LwIP ENC28J60 Ethernet`. [![GitHub release](https://img.shields.io/github/release/khoih-prog/WebServer_ESP32_ENC.svg)](https://github.com/khoih-prog/WebServer_ESP32_ENC/releases) - 5. [`ESPAsync_WiFiManager library v1.15.1+`](https://github.com/khoih-prog/ESPAsync_WiFiManager) for ESP32/ESP8266 using some examples. [![GitHub release](https://img.shields.io/github/release/khoih-prog/ESPAsync_WiFiManager.svg)](https://github.com/khoih-prog/ESPAsync_WiFiManager/releases) - 6. [`AsyncHTTPRequest_Generic library v1.11.0+`](https://github.com/khoih-prog/AsyncHTTPRequest_Generic) for ESP32/ESP8266 using with [AsyncHTTP_HTTPSRequest_ESP example](https://github.com/khoih-prog/AsyncHTTPSRequest_Generic/tree/main/examples/AsyncHTTP_HTTPSRequest_ESP). [![GitHub release](https://img.shields.io/github/release/khoih-prog/AsyncHTTPRequest_Generic.svg)](https://github.com/khoih-prog/AsyncHTTPRequest_Generic/releases) + 6. [`WebServer_ESP32_W5500 v1.5.1+`](https://github.com/khoih-prog/WebServer_ESP32_W5500) for ESP32 boards using `LwIP W5500 Ethernet`. [![GitHub release](https://img.shields.io/github/release/khoih-prog/WebServer_ESP32_W5500.svg)](https://github.com/khoih-prog/WebServer_ESP32_W5500/releases) + 7. [`ESPAsync_WiFiManager library v1.15.1+`](https://github.com/khoih-prog/ESPAsync_WiFiManager) for ESP32/ESP8266 using some examples. [![GitHub release](https://img.shields.io/github/release/khoih-prog/ESPAsync_WiFiManager.svg)](https://github.com/khoih-prog/ESPAsync_WiFiManager/releases) + 8. [`AsyncHTTPRequest_Generic library v1.12.0+`](https://github.com/khoih-prog/AsyncHTTPRequest_Generic) for ESP32/ESP8266 using with [AsyncHTTP_HTTPSRequest_ESP example](https://github.com/khoih-prog/AsyncHTTPSRequest_Generic/tree/main/examples/AsyncHTTP_HTTPSRequest_ESP). [![GitHub release](https://img.shields.io/github/release/khoih-prog/AsyncHTTPRequest_Generic.svg)](https://github.com/khoih-prog/AsyncHTTPRequest_Generic/releases) @@ -323,6 +329,29 @@ Look in file [**adc_common.c**](https://github.com/espressif/esp-idf/blob/master - Use `ADC1`, and pins GPIO32-GPIO39 - If somehow it's a must to use those pins serviced by `ADC2` (**GPIO0, 2, 4, 12, 13, 14, 15, 25, 26 and 27**), use the **fix mentioned at the end** of [**ESP_WiFiManager Issue 39: Not able to read analog port when using the autoconnect example**](https://github.com/khoih-prog/ESP_WiFiManager/issues/39) to work with ESP32 WiFi/BlueTooth (BT/BLE). +--- +--- + +### HOWTO use ESP32 with LwIP W5500 or ENC28J60 Ethernet + +#### 1. ESP32 Wiring + +This is the wiring for ESP8266 `W5500` or `ENC28J60` Ethernet when using `SS = GPIO5` + +https://github.com/khoih-prog/AsyncHTTPSRequest_Generic/blob/6168613ea8c6cb4fd9dcdf831bacba7d0db04fa6/examples/ESP32_W5500/AsyncHTTPSRequest_ESP32_W5500/AsyncHTTPSRequest_ESP32_W5500.ino#L81-L92 + + +|W5x00/ENC28J60 Ethernet|<--->|ESP32| +|:-:|:-:|:-:| +|MOSI|<--->|MOSI = GPIO23| +|MISO|<--->|MISO = GPIO19| +|SCK|<--->|SCK = GPIO18| +|SS|<--->|GPIO5| +|INT|<--->|GPIO4| +|GND|<--->|GND| +|VCC|<--->|+3.3V| + + --- --- @@ -343,6 +372,10 @@ Look in file [**adc_common.c**](https://github.com/espressif/esp-idf/blob/master 1. [AsyncHTTPSRequest_ESP32_ENC](examples/ESP32_ENC/AsyncHTTPSRequest_ESP32_ENC) +#### For ESP32_W5500 + + 1. [AsyncHTTPSRequest_ESP32_W5500](examples/ESP32_W5500/AsyncHTTPSRequest_ESP32_W5500) + #### For ESP32, WT32_ETH01 or ESP32_ENC 1. [multiFileProject](examples/multiFileProject) @@ -366,7 +399,7 @@ Following is the debug terminal when running example [AsyncHTTPSRequest_ESP](exa ```cpp Starting AsyncHTTPSRequest_ESP using ESP32_DEV AsyncTCP_SSL v1.3.1 -AsyncHTTPSRequest_Generic v2.2.1 +AsyncHTTPSRequest_Generic v2.4.0 Connecting to WiFi SSID: HueNet1 ... AsyncHTTPSRequest @ IP : 192.168.2.80 @@ -426,7 +459,7 @@ Following is the debug terminal when running example [AsyncHTTPSRequest_ESP](exa ```cpp Starting AsyncHTTPSRequest_ESP using ESP32S2_DEV AsyncTCP_SSL v1.3.1 -AsyncHTTPSRequest_Generic v2.2.1 +AsyncHTTPSRequest_Generic v2.4.0 Connecting to WiFi SSID: HueNet1 ....... AsyncHTTPSRequest @ IP : 192.168.2.79 @@ -503,7 +536,7 @@ Following is the debug terminal when running example [AsyncHTTPSRequest_ESP](exa ```cpp Starting AsyncHTTPSRequest_ESP using ESP32C3_DEV AsyncTCP_SSL v1.3.1 -AsyncHTTPSRequest_Generic v2.2.1 +AsyncHTTPSRequest_Generic v2.4.0 Connecting to WiFi SSID: HueNet1 ......... AsyncHTTPSRequest @ IP : 192.168.2.80 @@ -552,9 +585,9 @@ Following is the debug terminal when running example [AsyncHTTPSRequest_ESP_WiFi ```cpp Starting AsyncHTTPSRequest_ESP_WiFiManager using LittleFS on ESP32_DEV -ESPAsync_WiFiManager v1.15.0 +ESPAsync_WiFiManager v1.15.1 AsyncTCP_SSL v1.3.1 -AsyncHTTPSRequest_Generic v2.2.1 +AsyncHTTPSRequest_Generic v2.4.0 Stored: SSID = HueNet1, Pass = 12345678 Got stored Credentials. Timeout 120s ConnectMultiWiFi in setup @@ -588,9 +621,9 @@ Following is the debug terminal when running example [AsyncHTTPSRequest_WT32_ETH ```cpp Starting AsyncHTTPSRequest_WT32_ETH01 using ESP32_DEV with ETH_PHY_LAN8720 -WebServer_WT32_ETH01 v1.5.0 for core v2.0.0+ +WebServer_WT32_ETH01 v1.5.1 for core v2.0.0+ AsyncTCP_SSL v1.3.1 -AsyncHTTPSRequest_Generic v2.2.1 +AsyncHTTPSRequest_Generic v2.4.0 ETH MAC: A8:03:2A:A1:61:73, IPv4: 192.168.2.82, FULL_DUPLEX, 100Mbps HTTP WebClient is @ IP : 192.168.2.82 @@ -622,9 +655,9 @@ Following is the debug terminal when running example [AsyncHTTPSRequest_WT32_ETH ```cpp Starting AsyncHTTPSRequest_WT32_ETH01 using ESP32_DEV with ETH_PHY_LAN8720 -WebServer_WT32_ETH01 v1.5.0 for core v1.0.6- +WebServer_WT32_ETH01 v1.5.1 for core v1.0.6- AsyncTCP_SSL v1.3.1 -AsyncHTTPSRequest_Generic v2.2.1 +AsyncHTTPSRequest_Generic v2.4.0 ETH MAC: A8:03:2A:A1:61:73, IPv4: 192.168.2.232, FULL_DUPLEX, 100Mbps HTTP WebClient is @ IP : 192.168.2.232 @@ -656,8 +689,8 @@ Following is the debug terminal when running example [AsyncHTTPSRequest_ESP_WiFi ```cpp Starting AsyncHTTPSRequest_ESP_WiFiManager using LittleFS on ESP32C3_DEV -ESPAsync_WiFiManager v1.15.0 -AsyncHTTPSRequest_Generic v2.2.1 +ESPAsync_WiFiManager v1.15.1 +AsyncHTTPSRequest_Generic v2.4.0 Stored: SSID = HueNet1, Pass = password Got stored Credentials. Timeout 120s ConnectMultiWiFi in setup @@ -710,8 +743,8 @@ Following is the debug terminal when running example [AsyncHTTPSRequest_ESP_WiFi ```cpp Starting AsyncHTTPSRequest_ESP_WiFiManager using LittleFS on ESP32S3_DEV -ESPAsync_WiFiManager v1.15.0 -AsyncHTTPSRequest_Generic v2.2.1 +ESPAsync_WiFiManager v1.15.1 +AsyncHTTPSRequest_Generic v2.4.0 Stored: SSID = HueNet1, Pass = password Got stored Credentials. Timeout 120s ConnectMultiWiFi in setup @@ -747,7 +780,7 @@ The terminal output of [AsyncHTTPSRequest_ESP_Multi example](examples/AsyncHTTPS ```cpp Starting AsyncHTTPSRequest_ESP_Multi on ESP32_DEV AsyncTCP_SSL v1.3.1 -AsyncHTTPSRequest_Generic v2.2.1 +AsyncHTTPSRequest_Generic v2.4.0 Connecting to WiFi SSID: HueNet1 ... AsyncHTTPSRequest @ IP : 192.168.2.187 @@ -821,8 +854,8 @@ The terminal output of [AsyncHTTP_HTTPSRequest_ESP example](examples/AsyncHTTP_H ```cpp Starting AsyncHTTP_HTTPSRequest_ESP on ESP32_DEV AsyncTCP_SSL v1.3.1 -AsyncHTTPSRequest_Generic v2.2.1 -AsyncHTTPRequest_Generic v1.10.2 +AsyncHTTPSRequest_Generic v2.4.0 +AsyncHTTPRequest_Generic v1.12.0 Connecting to WiFi SSID: HueNet1 ... AsyncHTTPSRequest @ IP : 192.168.2.80 @@ -906,14 +939,14 @@ week_number: 42 #### 11. AsyncHTTPSRequest_ESP32_ENC using ESP32_DEV with ESP32_ENC28J60 -Following is the debug terminal when running example [AsyncHTTPSRequest_ESP32_ENC](examples/ESP32_ENC/AsyncHTTPSRequest_ESP32_ENC) on `ESP32_DEV` boards using `LwIP ENC28J60 Ethernet`, to demonstrate the operation of SSL Async HTTPS request, using [AsyncTCP_SSL Library](https://github.com/khoih-prog/AsyncTCP_SSL) +Following is the debug terminal when running example [AsyncHTTPSRequest_ESP32_ENC](examples/ESP32_ENC/AsyncHTTPSRequest_ESP32_ENC) on `ESP32_DEV` boards using `LwIP ENC28J60 Ethernet`, to demonstrate the operation of `SSL Async HTTPS` request, using [AsyncTCP_SSL Library](https://github.com/khoih-prog/AsyncTCP_SSL) ```cpp Starting AsyncHTTPSRequest_ESP32_ENC using ESP32_DEV with ESP32_ENC28J60 WebServer_ESP32_ENC v1.5.1 for core v2.0.0+ AsyncTCP_SSL v1.3.1 -AsyncHTTPSRequest_Generic v2.2.1 +AsyncHTTPSRequest_Generic v2.4.0 [AHTTPS] Default SPI pinout: [AHTTPS] MOSI: 23 [AHTTPS] MISO: 19 @@ -966,6 +999,74 @@ utc_offset: -05:00 week_number: 48 ************************************** ``` + +--- + + +#### 12. AsyncHTTPSRequest_ESP32_W5500 using ESP32_DEV with ESP32_W5500 + +Following is the debug terminal when running example [AsyncHTTPSRequest_ESP32_W5500](examples/ESP32_W5500/AsyncHTTPSRequest_ESP32_W5500) on `ESP32_DEV` boards using `LwIP W5500 Ethernet`, to demonstrate the operation of `SSL Async HTTPS` request, using [AsyncTCP_SSL Library](https://github.com/khoih-prog/AsyncTCP_SSL) + + +```cpp +Starting AsyncHTTPSRequest_ESP32_W5500 using ESP32_DEV with ESP32_W5500 +WebServer_ESP32_W5500 v1.5.1 for core v2.0.0+ +AsyncTCP_SSL v1.3.1 +AsyncHTTPSRequest_Generic v2.4.0 +[AHTTPS] Default SPI pinout: +[AHTTPS] SPI_HOST: 2 +[AHTTPS] MOSI: 23 +[AHTTPS] MISO: 19 +[AHTTPS] SCK: 18 +[AHTTPS] CS: 5 +[AHTTPS] INT: 4 +[AHTTPS] SPI Clock (MHz): 25 +[AHTTPS] ========================= + +ETH Started +ETH Connected +ETH MAC: DE:AD:BE:EF:BE:12, IPv4: 192.168.2.103 +FULL_DUPLEX, 100Mbps + +HTTP WebClient is @ IP : 192.168.2.103 + +************************************** +abbreviation: EST +client_ip: 216.154.12.9 +datetime: 2022-11-30T19:05:25.743559-05:00 +day_of_week: 3 +day_of_year: 334 +dst: false +dst_from: +dst_offset: 0 +dst_until: +raw_offset: -18000 +timezone: America/Toronto +unixtime: 1669853125 +utc_datetime: 2022-12-01T00:05:25.743559+00:00 +utc_offset: -05:00 +week_number: 48 +************************************** +HHHHHH +************************************** +abbreviation: EST +client_ip: 216.154.12.9 +datetime: 2022-11-30T19:06:24.624668-05:00 +day_of_week: 3 +day_of_year: 334 +dst: false +dst_from: +dst_offset: 0 +dst_until: +raw_offset: -18000 +timezone: America/Toronto +unixtime: 1669853184 +utc_datetime: 2022-12-01T00:06:24.624668+00:00 +utc_offset: -05:00 +week_number: 48 +************************************** +HHHH +``` --- --- @@ -1035,6 +1136,9 @@ Submit issues to: [AsyncHTTPSRequest_Generic issues](https://github.com/khoih-pr 21. Default to reconnect to the same `host:port` after connected for new HTTP sites. 22. Use `allman` astyle 23. Add support to ESP32 boards using `LwIP ENC28J60 Ethernet` +24. Add support to ESP32 boards using `LwIP W5500 Ethernet` +25. [Fix "blank new line in chunk" bug #50](https://github.com/khoih-prog/AsyncHTTPRequest_Generic/pull/50) + --- --- diff --git a/changelog.md b/changelog.md index ed249e4..f4fb486 100644 --- a/changelog.md +++ b/changelog.md @@ -40,6 +40,11 @@ ## Changelog +### Releases v2.4.0 + +1. Add support to ESP32 boards using `LwIP W5500 Ethernet` +2. Fix bug. Check [Fix "blank new line in chunk" bug #50](https://github.com/khoih-prog/AsyncHTTPRequest_Generic/pull/50) + ### Releases v2.3.0 1. Add support to ESP32 boards using `LwIP ENC28J60 Ethernet` diff --git a/library.json b/library.json index 19de605..2148961 100644 --- a/library.json +++ b/library.json @@ -48,10 +48,16 @@ "version": ">=1.5.1", "platforms": ["espressif32"] }, + { + "owner": "khoih-prog", + "name": "WebServer_ESP32_W5500", + "version": ">=1.5.1", + "platforms": ["espressif32"] + }, { "owner": "khoih-prog", "name": "AsyncHTTPRequest_Generic", - "version": ">=1.11.0", + "version": ">=1.12.0", "platforms": ["espressif8266", "espressif32"] }, { diff --git a/library.properties b/library.properties index 9d5d393..2ecacf9 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=AsyncHTTPSRequest_Generic -version=2.3.0 +version=2.4.0 author=Bob Lemaire,Khoi Hoang maintainer=Khoi Hoang license=GPLv3 @@ -8,5 +8,5 @@ paragraph=Supporting in the future for RP2040W, ESP8266, Portenta_H7, STM32 with category=Communication url=https://github.com/khoih-prog/AsyncHTTPSRequest_Generic architectures=* -depends=AsyncTCP_SSL, WebServer_WT32_ETH01, WebServer_ESP32_ENC, AsyncHTTPRequest_Generic, ESPAsync_WiFiManager +depends=AsyncTCP_SSL, WebServer_WT32_ETH01, WebServer_ESP32_ENC, WebServer_ESP32_W5500, AsyncHTTPRequest_Generic, ESPAsync_WiFiManager includes=AsyncHTTPSRequest_Generic.h,AsyncHTTPSRequest_Generic.hpp diff --git a/platformio/platformio.ini b/platformio/platformio.ini index 3cec850..9d237a4 100644 --- a/platformio/platformio.ini +++ b/platformio/platformio.ini @@ -48,15 +48,17 @@ lib_ldf_mode = chain+ lib_deps = ; PlatformIO 4.x ; AsyncTCP_SSL@>=1.3.1 -; AsyncHTTPRequest_Generic@>=1.11.0 +; AsyncHTTPRequest_Generic@>=1.12.0 ; WebServer_WT32_ETH01@>=1.5.1 ; WebServer_ESP32_ENC@>=1.5.1 +; WebServer_ESP32_W5500@>=1.5.1 ; ESPAsync_WiFiManager@>=1.15.1 ; PlatformIO 5.x khoih-prog/AsyncTCP_SSL@>=1.3.1 - khoih-prog/AsyncHTTPRequest_Generic@>=1.11.0 + khoih-prog/AsyncHTTPRequest_Generic@>=1.12.0 khoih-prog/WebServer_WT32_ETH01@>=1.5.1 khoih-prog/WebServer_ESP32_ENC@>=1.5.1 + khoih-prog/WebServer_ESP32_W5500@>=1.5.1 khoih-prog/ESPAsync_WiFiManager@>=1.15.1 diff --git a/src/AsyncHTTPSRequest_Debug_Generic.h b/src/AsyncHTTPSRequest_Debug_Generic.h index 1642ffc..ea603ca 100644 --- a/src/AsyncHTTPSRequest_Debug_Generic.h +++ b/src/AsyncHTTPSRequest_Debug_Generic.h @@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . - Version: 2.3.0 + Version: 2.4.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -37,6 +37,7 @@ 2.2.0 K Hoang 20/10/2022 Fix crash and memory leak 2.2.1 K Hoang 09/11/2022 Default to reconnect to the same host:port after connected for new HTTP sites 2.3.0 K Hoang 28/11/2022 Add support to ESP32 boards using LwIP ENC28J60 Ethernet + 2.4.0 K Hoang 30/11/2022 Add support to ESP32 boards using LwIP W5500 Ethernet. Fix bug *****************************************************************************************************************************/ #pragma once diff --git a/src/AsyncHTTPSRequest_Generic.h b/src/AsyncHTTPSRequest_Generic.h index a2c3029..1b56732 100644 --- a/src/AsyncHTTPSRequest_Generic.h +++ b/src/AsyncHTTPSRequest_Generic.h @@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . - Version: 2.3.0 + Version: 2.4.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -37,6 +37,7 @@ 2.2.0 K Hoang 20/10/2022 Fix crash and memory leak 2.2.1 K Hoang 09/11/2022 Default to reconnect to the same host:port after connected for new HTTP sites 2.3.0 K Hoang 28/11/2022 Add support to ESP32 boards using LwIP ENC28J60 Ethernet + 2.4.0 K Hoang 30/11/2022 Add support to ESP32 boards using LwIP W5500 Ethernet. Fix bug *****************************************************************************************************************************/ #pragma once diff --git a/src/AsyncHTTPSRequest_Generic.hpp b/src/AsyncHTTPSRequest_Generic.hpp index 1c5d90b..704b703 100644 --- a/src/AsyncHTTPSRequest_Generic.hpp +++ b/src/AsyncHTTPSRequest_Generic.hpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . - Version: 2.3.0 + Version: 2.4.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -37,6 +37,7 @@ 2.2.0 K Hoang 20/10/2022 Fix crash and memory leak 2.2.1 K Hoang 09/11/2022 Default to reconnect to the same host:port after connected for new HTTP sites 2.3.0 K Hoang 28/11/2022 Add support to ESP32 boards using LwIP ENC28J60 Ethernet + 2.4.0 K Hoang 30/11/2022 Add support to ESP32 boards using LwIP W5500 Ethernet. Fix bug *****************************************************************************************************************************/ #pragma once @@ -52,13 +53,13 @@ //////////////////////////////////////// -#define ASYNC_HTTPS_REQUEST_GENERIC_VERSION "AsyncHTTPSRequest_Generic v2.3.0" +#define ASYNC_HTTPS_REQUEST_GENERIC_VERSION "AsyncHTTPSRequest_Generic v2.4.0" #define ASYNC_HTTPS_REQUEST_GENERIC_VERSION_MAJOR 2 -#define ASYNC_HTTPS_REQUEST_GENERIC_VERSION_MINOR 3 +#define ASYNC_HTTPS_REQUEST_GENERIC_VERSION_MINOR 4 #define ASYNC_HTTPS_REQUEST_GENERIC_VERSION_PATCH 0 -#define ASYNC_HTTPS_REQUEST_GENERIC_VERSION_INT 2003000 +#define ASYNC_HTTPS_REQUEST_GENERIC_VERSION_INT 2004000 //////////////////////////////////////// diff --git a/src/AsyncHTTPSRequest_Impl_Generic.h b/src/AsyncHTTPSRequest_Impl_Generic.h index ea6636e..1ee7dd1 100644 --- a/src/AsyncHTTPSRequest_Impl_Generic.h +++ b/src/AsyncHTTPSRequest_Impl_Generic.h @@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . - Version: 2.3.0 + Version: 2.4.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -37,6 +37,7 @@ 2.2.0 K Hoang 20/10/2022 Fix crash and memory leak 2.2.1 K Hoang 09/11/2022 Default to reconnect to the same host:port after connected for new HTTP sites 2.3.0 K Hoang 28/11/2022 Add support to ESP32 boards using LwIP ENC28J60 Ethernet + 2.4.0 K Hoang 30/11/2022 Add support to ESP32 boards using LwIP W5500 Ethernet. Fix bug *****************************************************************************************************************************/ #pragma once @@ -1496,7 +1497,8 @@ void AsyncHTTPSRequest::_processChunks() size_t chunkLength = strtol(chunkHeader.c_str(), nullptr, 16); _contentLength += chunkLength; - if (chunkLength == 0) + //if (chunkLength == 0) + if (chunkHeader == "0\r\n") { char* connectionHdr = respHeaderValue("connection");