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

Commit

Permalink
v2.5.0 for LwIP W6100 and fix bugs
Browse files Browse the repository at this point in the history
### 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`
  • Loading branch information
khoih-prog committed Feb 1, 2023
1 parent c3f8969 commit 36dcb2e
Show file tree
Hide file tree
Showing 10 changed files with 360 additions and 282 deletions.
12 changes: 9 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,32 @@ However, before reporting a bug please check through the following:

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

---

### How to submit a bug report

Please ensure to specify the following:

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


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.

---

### Example

```
Arduino IDE version: 1.8.19
ESP32 Core Version 2.0.5
ESP32 Core Version 2.0.6
OS: Ubuntu 20.04 LTS
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
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
Context:
I encountered a crash while using this library
Expand Down
483 changes: 278 additions & 205 deletions README.md

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@
<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>
<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>


---
---

## Table of Contents

* [Changelog](#changelog)
* [Releases v2.5.0](#releases-v250)
* [Releases v2.4.0](#releases-v240)
* [Releases v2.3.0](#releases-v230)
* [Releases v2.2.1](#releases-v221)
Expand All @@ -39,6 +41,13 @@

## Changelog

### 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](https://github.com/khoih-prog/AsyncHTTPSRequest_Generic/issues/19)
3. Fix bug of `_parseURL()`. Check [Bug with _parseURL() #21](https://github.com/khoih-prog/AsyncHTTPSRequest_Generic/issues/21)
4. Improve `README.md` so that links can be used in other sites, such as `PIO`

### Releases v2.4.0

1. Add support to ESP32 boards using `LwIP W5500 Ethernet`
Expand Down
16 changes: 11 additions & 5 deletions library.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name":"AsyncHTTPSRequest_Generic",
"version": "2.4.0",
"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.",
"version": "2.5.0",
"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.",
"keywords":"communication, async, tcp, https, ssl, tls, ESP8266, ESP32, ESP32-S2, wt32-eth01, ESPAsyncTCP, AsyncTCP, stm32, ethernet, wifi, lan8742a, lan8720, f407ve, nucleo-144, stm32f7",
"authors": [
{
Expand Down Expand Up @@ -45,13 +45,19 @@
{
"owner": "khoih-prog",
"name": "WebServer_ESP32_ENC",
"version": ">=1.5.1",
"version": ">=1.5.3",
"platforms": ["espressif32"]
},
{
"owner": "khoih-prog",
"name": "WebServer_ESP32_W5500",
"version": ">=1.5.1",
"version": ">=1.5.3",
"platforms": ["espressif32"]
},
{
"owner": "khoih-prog",
"name": "WebServer_ESP32_W6100",
"version": ">=1.5.3",
"platforms": ["espressif32"]
},
{
Expand All @@ -69,7 +75,7 @@
],
"license": "LGPL-3.0",
"frameworks": "arduino",
"platforms": ["espressif8266", "espressif32"],
"platforms": ["espressif32"],
"examples": "examples/*/*/*.ino",
"headers": ["AsyncHTTPSRequest_Generic.h","AsyncHTTPSRequest_Generic.hpp"]
}
6 changes: 3 additions & 3 deletions library.properties
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name=AsyncHTTPSRequest_Generic
version=2.4.0
version=2.5.0
author=Bob Lemaire,Khoi Hoang <khoih.prog@gmail.com>
maintainer=Khoi Hoang <khoih.prog@gmail.com>
license=GPLv3
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.
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.
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
category=Communication
url=https://github.com/khoih-prog/AsyncHTTPSRequest_Generic
architectures=*
depends=AsyncTCP_SSL, WebServer_WT32_ETH01, WebServer_ESP32_ENC, WebServer_ESP32_W5500, AsyncHTTPRequest_Generic, ESPAsync_WiFiManager
depends=AsyncTCP_SSL, WebServer_WT32_ETH01, WebServer_ESP32_ENC, WebServer_ESP32_W5500, WebServer_ESP32_W6100, AsyncHTTPRequest_Generic, ESPAsync_WiFiManager
includes=AsyncHTTPSRequest_Generic.h,AsyncHTTPSRequest_Generic.hpp
10 changes: 6 additions & 4 deletions platformio/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,17 @@ lib_deps =
; AsyncTCP_SSL@>=1.3.1
; AsyncHTTPRequest_Generic@>=1.12.0
; WebServer_WT32_ETH01@>=1.5.1
; WebServer_ESP32_ENC@>=1.5.1
; WebServer_ESP32_W5500@>=1.5.1
; WebServer_ESP32_ENC@>=1.5.3
; WebServer_ESP32_W5500@>=1.5.3
; WebServer_ESP32_W6100@>=1.5.3
; ESPAsync_WiFiManager@>=1.15.1
; PlatformIO 5.x
khoih-prog/AsyncTCP_SSL@>=1.3.1
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/WebServer_ESP32_ENC@>=1.5.3
khoih-prog/WebServer_ESP32_W5500@>=1.5.3
khoih-prog/WebServer_ESP32_W6100@>=1.5.3
khoih-prog/ESPAsync_WiFiManager@>=1.15.1


Expand Down
3 changes: 2 additions & 1 deletion src/AsyncHTTPSRequest_Debug_Generic.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
You should have received a copy of the GNU General Public License along with this program.
If not, see <https://www.gnu.org/licenses/>.
Version: 2.4.0
Version: 2.5.0
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -38,6 +38,7 @@
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
2.5.0 K Hoang 31/01/2023 Fix bug of wrong reqStates and _parseURL()
*****************************************************************************************************************************/

#pragma once
Expand Down
3 changes: 2 additions & 1 deletion src/AsyncHTTPSRequest_Generic.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
You should have received a copy of the GNU General Public License along with this program.
If not, see <https://www.gnu.org/licenses/>.
Version: 2.4.0
Version: 2.5.0
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -38,6 +38,7 @@
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
2.5.0 K Hoang 31/01/2023 Fix bug of wrong reqStates and _parseURL()
*****************************************************************************************************************************/

#pragma once
Expand Down
13 changes: 8 additions & 5 deletions src/AsyncHTTPSRequest_Generic.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
You should have received a copy of the GNU General Public License along with this program.
If not, see <https://www.gnu.org/licenses/>.
Version: 2.4.0
Version: 2.5.0
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -38,6 +38,7 @@
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
2.5.0 K Hoang 31/01/2023 Fix bug of wrong reqStates and _parseURL()
*****************************************************************************************************************************/

#pragma once
Expand All @@ -53,13 +54,13 @@

////////////////////////////////////////

#define ASYNC_HTTPS_REQUEST_GENERIC_VERSION "AsyncHTTPSRequest_Generic v2.4.0"
#define ASYNC_HTTPS_REQUEST_GENERIC_VERSION "AsyncHTTPSRequest_Generic v2.5.0"

#define ASYNC_HTTPS_REQUEST_GENERIC_VERSION_MAJOR 2
#define ASYNC_HTTPS_REQUEST_GENERIC_VERSION_MINOR 4
#define ASYNC_HTTPS_REQUEST_GENERIC_VERSION_MINOR 5
#define ASYNC_HTTPS_REQUEST_GENERIC_VERSION_PATCH 0

#define ASYNC_HTTPS_REQUEST_GENERIC_VERSION_INT 2004000
#define ASYNC_HTTPS_REQUEST_GENERIC_VERSION_INT 2005000

////////////////////////////////////////

Expand Down Expand Up @@ -274,7 +275,9 @@ class xbuf: public Print

////////////////////////////////////////

#define DEFAULT_RX_TIMEOUT 30 // Seconds for timeout
#if !defined(DEFAULT_RX_TIMEOUT)
#define DEFAULT_RX_TIMEOUT 30 // Seconds for timeout
#endif

////////////////////////////////////////

Expand Down
Loading

0 comments on commit 36dcb2e

Please sign in to comment.