Skip to content
This repository was archived by the owner on Feb 4, 2023. It is now read-only.

Commit 36dcb2e

Browse files
authored
v2.5.0 for LwIP W6100 and fix bugs
### Releases v2.5.0 1. Add support to ESP32 boards using `LwIP W6100 Ethernet` 2. Fix bug of wrong `reqStates`. Check [Callback behavior buggy #19](#19) 3. Fix bug of `_parseURL()`. Check [Bug with _parseURL() #21](#21) 4. Improve `README.md` so that links can be used in other sites, such as `PIO`
1 parent c3f8969 commit 36dcb2e

10 files changed

+360
-282
lines changed

CONTRIBUTING.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,32 @@ However, before reporting a bug please check through the following:
1010

1111
If you don't find anything, please [open a new issue](https://github.com/khoih-prog/AsyncHTTPSRequest_Generic/issues/new).
1212

13+
---
14+
1315
### How to submit a bug report
1416

1517
Please ensure to specify the following:
1618

1719
* Arduino IDE version (e.g. 1.8.19) or Platform.io version
18-
* `ESP8266` or`ESP32` Core Version (e.g. ESP8266 core v3.0.2, ESP32 v2.0.5)
20+
* `ESP8266` or`ESP32` Core Version (e.g. ESP8266 core v3.1.1, ESP32 v2.0.6)
1921
* Contextual information (e.g. what you were trying to achieve)
2022
* Simplest possible steps to reproduce
2123
* Anything that might be relevant in your opinion, such as:
2224
* Operating system (Windows, Ubuntu, etc.) and the output of `uname -a`
2325
* Network configuration
2426

2527

28+
Please be educated, civilized and constructive as you've always been. Disrespective posts against [GitHub Code of Conduct](https://docs.github.com/en/site-policy/github-terms/github-event-code-of-conduct) will be ignored and deleted.
29+
30+
---
31+
2632
### Example
2733

2834
```
2935
Arduino IDE version: 1.8.19
30-
ESP32 Core Version 2.0.5
36+
ESP32 Core Version 2.0.6
3137
OS: Ubuntu 20.04 LTS
32-
Linux xy-Inspiron-3593 5.15.0-53-generic #59~20.04.1-Ubuntu SMP Thu Oct 20 15:10:22 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
38+
Linux xy-Inspiron-3593 5.15.0-58-generic #64~20.04.1-Ubuntu SMP Fri Jan 6 16:42:31 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
3339
3440
Context:
3541
I encountered a crash while using this library

README.md

Lines changed: 278 additions & 205 deletions
Large diffs are not rendered by default.

changelog.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,14 @@
99
<a href="https://www.buymeacoffee.com/khoihprog6" title="Donate to my libraries using BuyMeACoffee"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Donate to my libraries using BuyMeACoffee" style="height: 50px !important;width: 181px !important;" ></a>
1010
<a href="https://www.buymeacoffee.com/khoihprog6" title="Donate to my libraries using BuyMeACoffee"><img src="https://img.shields.io/badge/buy%20me%20a%20coffee-donate-orange.svg?logo=buy-me-a-coffee&logoColor=FFDD00" style="height: 20px !important;width: 200px !important;" ></a>
1111

12+
1213
---
1314
---
1415

1516
## Table of Contents
1617

1718
* [Changelog](#changelog)
19+
* [Releases v2.5.0](#releases-v250)
1820
* [Releases v2.4.0](#releases-v240)
1921
* [Releases v2.3.0](#releases-v230)
2022
* [Releases v2.2.1](#releases-v221)
@@ -39,6 +41,13 @@
3941

4042
## Changelog
4143

44+
### Releases v2.5.0
45+
46+
1. Add support to ESP32 boards using `LwIP W6100 Ethernet`
47+
2. Fix bug of wrong `reqStates`. Check [Callback behavior buggy #19](https://github.com/khoih-prog/AsyncHTTPSRequest_Generic/issues/19)
48+
3. Fix bug of `_parseURL()`. Check [Bug with _parseURL() #21](https://github.com/khoih-prog/AsyncHTTPSRequest_Generic/issues/21)
49+
4. Improve `README.md` so that links can be used in other sites, such as `PIO`
50+
4251
### Releases v2.4.0
4352

4453
1. Add support to ESP32 boards using `LwIP W5500 Ethernet`

library.json

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name":"AsyncHTTPSRequest_Generic",
3-
"version": "2.4.0",
4-
"description":"Simple Async HTTPS Request library, supporting GET, POST, PUT, PATCH, DELETE and HEAD, on top of AsyncTCP_SSL library for ESP32 (including ESP32_S2, ESP32_S3 and ESP32_C3), WT32_ETH01 (ESP32 + LAN8720) and ESP32 with LwIP ENC28J60. Supporting in the future for RP2040W, ESP8266, Portenta_H7, STM32 with built-in LAN8742A Ethernet, etc. Now you can send HTTP / HTTPS requests to multiple addresses and receive responses from them.",
3+
"version": "2.5.0",
4+
"description":"Simple Async HTTPS Request library, supporting GET, POST, PUT, PATCH, DELETE and HEAD, on top of AsyncTCP_SSL library for ESP32 (including ESP32_S2, ESP32_S3 and ESP32_C3), WT32_ETH01 (ESP32 + LAN8720) and ESP32 with LwIP ENC28J60, W5500 or W6100. Supporting in the future for RP2040W, ESP8266, Portenta_H7, STM32 with built-in LAN8742A Ethernet, etc. Now you can send HTTP / HTTPS requests to multiple addresses and receive responses from them.",
55
"keywords":"communication, async, tcp, https, ssl, tls, ESP8266, ESP32, ESP32-S2, wt32-eth01, ESPAsyncTCP, AsyncTCP, stm32, ethernet, wifi, lan8742a, lan8720, f407ve, nucleo-144, stm32f7",
66
"authors": [
77
{
@@ -45,13 +45,19 @@
4545
{
4646
"owner": "khoih-prog",
4747
"name": "WebServer_ESP32_ENC",
48-
"version": ">=1.5.1",
48+
"version": ">=1.5.3",
4949
"platforms": ["espressif32"]
5050
},
5151
{
5252
"owner": "khoih-prog",
5353
"name": "WebServer_ESP32_W5500",
54-
"version": ">=1.5.1",
54+
"version": ">=1.5.3",
55+
"platforms": ["espressif32"]
56+
},
57+
{
58+
"owner": "khoih-prog",
59+
"name": "WebServer_ESP32_W6100",
60+
"version": ">=1.5.3",
5561
"platforms": ["espressif32"]
5662
},
5763
{
@@ -69,7 +75,7 @@
6975
],
7076
"license": "LGPL-3.0",
7177
"frameworks": "arduino",
72-
"platforms": ["espressif8266", "espressif32"],
78+
"platforms": ["espressif32"],
7379
"examples": "examples/*/*/*.ino",
7480
"headers": ["AsyncHTTPSRequest_Generic.h","AsyncHTTPSRequest_Generic.hpp"]
7581
}

library.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
name=AsyncHTTPSRequest_Generic
2-
version=2.4.0
2+
version=2.5.0
33
author=Bob Lemaire,Khoi Hoang <[email protected]>
44
maintainer=Khoi Hoang <[email protected]>
55
license=GPLv3
6-
sentence=Simple Async HTTPS Request library, supporting GET, POST, PUT, PATCH, DELETE and HEAD, on top of AsyncTCP_SSL library for ESP32 (including ESP32_S2, ESP32_S3 and ESP32_C3), WT32_ETH01 (ESP32 + LAN8720) and ESP32 with LwIP ENC28J60.
6+
sentence=Simple Async HTTPS Request library, supporting GET, POST, PUT, PATCH, DELETE and HEAD, on top of AsyncTCP_SSL library for ESP32 (including ESP32_S2, ESP32_S3 and ESP32_C3), WT32_ETH01 (ESP32 + LAN8720) and ESP32 with LwIP ENC28J60, W5500 or W6100.
77
paragraph=Supporting in the future for RP2040W, ESP8266, Portenta_H7, STM32 with built-in LAN8742A Ethernet, etc. Now you can send HTTP / HTTPS requests to multiple addresses and receive responses from them
88
category=Communication
99
url=https://github.com/khoih-prog/AsyncHTTPSRequest_Generic
1010
architectures=*
11-
depends=AsyncTCP_SSL, WebServer_WT32_ETH01, WebServer_ESP32_ENC, WebServer_ESP32_W5500, AsyncHTTPRequest_Generic, ESPAsync_WiFiManager
11+
depends=AsyncTCP_SSL, WebServer_WT32_ETH01, WebServer_ESP32_ENC, WebServer_ESP32_W5500, WebServer_ESP32_W6100, AsyncHTTPRequest_Generic, ESPAsync_WiFiManager
1212
includes=AsyncHTTPSRequest_Generic.h,AsyncHTTPSRequest_Generic.hpp

platformio/platformio.ini

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,17 @@ lib_deps =
5050
; AsyncTCP_SSL@>=1.3.1
5151
; AsyncHTTPRequest_Generic@>=1.12.0
5252
; WebServer_WT32_ETH01@>=1.5.1
53-
; WebServer_ESP32_ENC@>=1.5.1
54-
; WebServer_ESP32_W5500@>=1.5.1
53+
; WebServer_ESP32_ENC@>=1.5.3
54+
; WebServer_ESP32_W5500@>=1.5.3
55+
; WebServer_ESP32_W6100@>=1.5.3
5556
; ESPAsync_WiFiManager@>=1.15.1
5657
; PlatformIO 5.x
5758
khoih-prog/AsyncTCP_SSL@>=1.3.1
5859
khoih-prog/AsyncHTTPRequest_Generic@>=1.12.0
5960
khoih-prog/WebServer_WT32_ETH01@>=1.5.1
60-
khoih-prog/WebServer_ESP32_ENC@>=1.5.1
61-
khoih-prog/WebServer_ESP32_W5500@>=1.5.1
61+
khoih-prog/WebServer_ESP32_ENC@>=1.5.3
62+
khoih-prog/WebServer_ESP32_W5500@>=1.5.3
63+
khoih-prog/WebServer_ESP32_W6100@>=1.5.3
6264
khoih-prog/ESPAsync_WiFiManager@>=1.15.1
6365

6466

src/AsyncHTTPSRequest_Debug_Generic.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
You should have received a copy of the GNU General Public License along with this program.
1818
If not, see <https://www.gnu.org/licenses/>.
1919
20-
Version: 2.4.0
20+
Version: 2.5.0
2121
2222
Version Modified By Date Comments
2323
------- ----------- ---------- -----------
@@ -38,6 +38,7 @@
3838
2.2.1 K Hoang 09/11/2022 Default to reconnect to the same host:port after connected for new HTTP sites
3939
2.3.0 K Hoang 28/11/2022 Add support to ESP32 boards using LwIP ENC28J60 Ethernet
4040
2.4.0 K Hoang 30/11/2022 Add support to ESP32 boards using LwIP W5500 Ethernet. Fix bug
41+
2.5.0 K Hoang 31/01/2023 Fix bug of wrong reqStates and _parseURL()
4142
*****************************************************************************************************************************/
4243

4344
#pragma once

src/AsyncHTTPSRequest_Generic.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
You should have received a copy of the GNU General Public License along with this program.
1818
If not, see <https://www.gnu.org/licenses/>.
1919
20-
Version: 2.4.0
20+
Version: 2.5.0
2121
2222
Version Modified By Date Comments
2323
------- ----------- ---------- -----------
@@ -38,6 +38,7 @@
3838
2.2.1 K Hoang 09/11/2022 Default to reconnect to the same host:port after connected for new HTTP sites
3939
2.3.0 K Hoang 28/11/2022 Add support to ESP32 boards using LwIP ENC28J60 Ethernet
4040
2.4.0 K Hoang 30/11/2022 Add support to ESP32 boards using LwIP W5500 Ethernet. Fix bug
41+
2.5.0 K Hoang 31/01/2023 Fix bug of wrong reqStates and _parseURL()
4142
*****************************************************************************************************************************/
4243

4344
#pragma once

src/AsyncHTTPSRequest_Generic.hpp

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
You should have received a copy of the GNU General Public License along with this program.
1818
If not, see <https://www.gnu.org/licenses/>.
1919
20-
Version: 2.4.0
20+
Version: 2.5.0
2121
2222
Version Modified By Date Comments
2323
------- ----------- ---------- -----------
@@ -38,6 +38,7 @@
3838
2.2.1 K Hoang 09/11/2022 Default to reconnect to the same host:port after connected for new HTTP sites
3939
2.3.0 K Hoang 28/11/2022 Add support to ESP32 boards using LwIP ENC28J60 Ethernet
4040
2.4.0 K Hoang 30/11/2022 Add support to ESP32 boards using LwIP W5500 Ethernet. Fix bug
41+
2.5.0 K Hoang 31/01/2023 Fix bug of wrong reqStates and _parseURL()
4142
*****************************************************************************************************************************/
4243

4344
#pragma once
@@ -53,13 +54,13 @@
5354

5455
////////////////////////////////////////
5556

56-
#define ASYNC_HTTPS_REQUEST_GENERIC_VERSION "AsyncHTTPSRequest_Generic v2.4.0"
57+
#define ASYNC_HTTPS_REQUEST_GENERIC_VERSION "AsyncHTTPSRequest_Generic v2.5.0"
5758

5859
#define ASYNC_HTTPS_REQUEST_GENERIC_VERSION_MAJOR 2
59-
#define ASYNC_HTTPS_REQUEST_GENERIC_VERSION_MINOR 4
60+
#define ASYNC_HTTPS_REQUEST_GENERIC_VERSION_MINOR 5
6061
#define ASYNC_HTTPS_REQUEST_GENERIC_VERSION_PATCH 0
6162

62-
#define ASYNC_HTTPS_REQUEST_GENERIC_VERSION_INT 2004000
63+
#define ASYNC_HTTPS_REQUEST_GENERIC_VERSION_INT 2005000
6364

6465
////////////////////////////////////////
6566

@@ -274,7 +275,9 @@ class xbuf: public Print
274275

275276
////////////////////////////////////////
276277

277-
#define DEFAULT_RX_TIMEOUT 30 // Seconds for timeout
278+
#if !defined(DEFAULT_RX_TIMEOUT)
279+
#define DEFAULT_RX_TIMEOUT 30 // Seconds for timeout
280+
#endif
278281

279282
////////////////////////////////////////
280283

0 commit comments

Comments
 (0)