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

Commit

Permalink
v1.1.1 not to reconnect after connected
Browse files Browse the repository at this point in the history
### Release v1.1.1

1. Not try to reconnect to the same host:port after connected. Check [setReuse feature #12](khoih-prog/AsyncHTTPSRequest_Generic#12)
  • Loading branch information
khoih-prog committed Oct 19, 2022
1 parent 085399c commit 19ea1ad
Show file tree
Hide file tree
Showing 16 changed files with 94 additions and 63 deletions.
8 changes: 4 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ If you don't find anything, please [open a new issue](https://github.com/khoih-p
Please ensure to specify the following:

* Arduino IDE version (e.g. 1.8.19) or Platform.io version
* `RP2040` Core Version (e.g. RP2040 core v2.5.0)
* `RP2040` Core Version (e.g. RP2040 core v2.6.1)
* `RP2040` Board type (e.g. RASPBERRY_PI_PICO_W)
* Contextual information (e.g. what you were trying to achieve)
* Simplest possible steps to reproduce
Expand All @@ -28,13 +28,13 @@ Please ensure to specify the following:

```
Arduino IDE version: 1.8.19
RP2040 core v2.5.0
RP2040 core v2.6.1
RASPBERRY_PI_PICO_W Module
OS: Ubuntu 20.04 LTS
Linux xy-Inspiron-3593 5.15.0-46-generic #49~20.04.1-Ubuntu SMP Thu Aug 4 19:15:44 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Linux xy-Inspiron-3593 5.15.0-50-generic #56~20.04.1-Ubuntu SMP Tue Sep 27 15:51:29 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Context:
I encountered an endless loop while trying to connect to Local WiFi.
I encountered a crash when using this library
Steps to reproduce:
1. ...
Expand Down
5 changes: 5 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
## Table of Contents

* [Changelog](#changelog)
* [Release v1.1.1](#Release-v111)
* [Release v1.1.0](#Release-v110)
* [Release v1.0.1](#Release-v101)
* [Initial Release v1.0.0](#Initial-Release-v100)
Expand All @@ -20,6 +21,10 @@

## Changelog

### Release v1.1.1

1. Not try to reconnect to the same host:port after connected. Check [setReuse feature #12](https://github.com/khoih-prog/AsyncHTTPSRequest_Generic/issues/12)

### Release v1.1.0

1. Fix long timeout if using `IPAddress`.
Expand Down
4 changes: 2 additions & 2 deletions examples/AsyncCustomHeader/AsyncCustomHeader.ino
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@

#include "defines.h"

#define ASYNC_HTTP_REQUEST_RP2040W_VERSION_MIN_TARGET "AsyncHTTPRequest_RP2040W v1.1.0"
#define ASYNC_HTTP_REQUEST_RP2040W_VERSION_MIN 1001000
#define ASYNC_HTTP_REQUEST_RP2040W_VERSION_MIN_TARGET "AsyncHTTPRequest_RP2040W v1.1.1"
#define ASYNC_HTTP_REQUEST_RP2040W_VERSION_MIN 1001001

// Level from 0-4
#define ASYNC_HTTP_DEBUG_PORT Serial
Expand Down
4 changes: 2 additions & 2 deletions examples/AsyncDweetGet/AsyncDweetGet.ino
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@

#include "defines.h"

#define ASYNC_HTTP_REQUEST_RP2040W_VERSION_MIN_TARGET "AsyncHTTPRequest_RP2040W v1.1.0"
#define ASYNC_HTTP_REQUEST_RP2040W_VERSION_MIN 1001000
#define ASYNC_HTTP_REQUEST_RP2040W_VERSION_MIN_TARGET "AsyncHTTPRequest_RP2040W v1.1.1"
#define ASYNC_HTTP_REQUEST_RP2040W_VERSION_MIN 1001001

// Level from 0-4
#define ASYNC_HTTP_DEBUG_PORT Serial
Expand Down
4 changes: 2 additions & 2 deletions examples/AsyncDweetPost/AsyncDweetPost.ino
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@

#include "defines.h"

#define ASYNC_HTTP_REQUEST_RP2040W_VERSION_MIN_TARGET "AsyncHTTPRequest_RP2040W v1.1.0"
#define ASYNC_HTTP_REQUEST_RP2040W_VERSION_MIN 1001000
#define ASYNC_HTTP_REQUEST_RP2040W_VERSION_MIN_TARGET "AsyncHTTPRequest_RP2040W v1.1.1"
#define ASYNC_HTTP_REQUEST_RP2040W_VERSION_MIN 1001001

// Level from 0-4
#define ASYNC_HTTP_DEBUG_PORT Serial
Expand Down
6 changes: 3 additions & 3 deletions examples/AsyncHTTPRequest/AsyncHTTPRequest.ino
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@

#include "defines.h"

#define ASYNC_HTTP_REQUEST_RP2040W_VERSION_MIN_TARGET "AsyncHTTPRequest_RP2040W v1.1.0"
#define ASYNC_HTTP_REQUEST_RP2040W_VERSION_MIN 1001000
#define ASYNC_HTTP_REQUEST_RP2040W_VERSION_MIN_TARGET "AsyncHTTPRequest_RP2040W v1.1.1"
#define ASYNC_HTTP_REQUEST_RP2040W_VERSION_MIN 1001001

// Level from 0-4
#define ASYNC_HTTP_DEBUG_PORT Serial
#define _ASYNC_HTTP_LOGLEVEL_ 2
#define _ASYNC_HTTP_LOGLEVEL_ 1

// To be included only in main(), .ino with setup() to avoid `Multiple Definitions` Linker Error
#include <AsyncHTTPRequest_RP2040W.h> // https://github.com/khoih-prog/AsyncHTTPRequest_RP2040W
Expand Down
4 changes: 2 additions & 2 deletions examples/AsyncSimpleGET/AsyncSimpleGET.ino
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@

#include "defines.h"

#define ASYNC_HTTP_REQUEST_RP2040W_VERSION_MIN_TARGET "AsyncHTTPRequest_RP2040W v1.1.0"
#define ASYNC_HTTP_REQUEST_RP2040W_VERSION_MIN 1001000
#define ASYNC_HTTP_REQUEST_RP2040W_VERSION_MIN_TARGET "AsyncHTTPRequest_RP2040W v1.1.1"
#define ASYNC_HTTP_REQUEST_RP2040W_VERSION_MIN 1001001

// Level from 0-4
#define ASYNC_HTTP_DEBUG_PORT Serial
Expand Down
4 changes: 2 additions & 2 deletions examples/AsyncWebClientRepeating/AsyncWebClientRepeating.ino
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@

#include "defines.h"

#define ASYNC_HTTP_REQUEST_RP2040W_VERSION_MIN_TARGET "AsyncHTTPRequest_RP2040W v1.1.0"
#define ASYNC_HTTP_REQUEST_RP2040W_VERSION_MIN 1001000
#define ASYNC_HTTP_REQUEST_RP2040W_VERSION_MIN_TARGET "AsyncHTTPRequest_RP2040W v1.1.1"
#define ASYNC_HTTP_REQUEST_RP2040W_VERSION_MIN 1001001

// Level from 0-4
#define ASYNC_HTTP_DEBUG_PORT Serial
Expand Down
4 changes: 2 additions & 2 deletions examples/multiFileProject/multiFileProject.ino
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
#error For RASPBERRY_PI_PICO_W only
#endif

#define ASYNC_HTTP_REQUEST_RP2040W_VERSION_MIN_TARGET "AsyncHTTPRequest_RP2040W v1.1.0"
#define ASYNC_HTTP_REQUEST_RP2040W_VERSION_MIN 1001000
#define ASYNC_HTTP_REQUEST_RP2040W_VERSION_MIN_TARGET "AsyncHTTPRequest_RP2040W v1.1.1"
#define ASYNC_HTTP_REQUEST_RP2040W_VERSION_MIN 1001001

// Level from 0-4
#define ASYNC_HTTP_DEBUG_PORT Serial
Expand Down
4 changes: 2 additions & 2 deletions library.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "AsyncHTTPRequest_RP2040W",
"version": "1.1.0",
"version": "1.1.1",
"keywords": "communication, http, async, websocket, webserver, async-webserver, async-tcp, async-udp, async-websocket, async-http, ssl, tls, mbed, mbed-portenta, portenta-h7, portentah7, portenta-h7-m7, portenta-h7-m4, portentah7-m7, portentah7-m4, stm32h7",
"description": "Simple Async HTTP Request library, supporting GET, POST, PUT, PATCH, DELETE and HEAD, on top of AsyncTCP_RP2040W library for RASPBERRY_PI_PICO_W with CYW43439 WiFi. This library, which relies on AsyncTCP_RP2040W, is part of a series of advanced Async libraries, such as AsyncTCP_RP2040W, AsyncUDP_RP2040W, AsyncWebSockets_RP2040W, AsyncWebServer_RP2040W, AsyncHTTPRequest_RP2040W, AsyncHTTPSRequest_RP2040W, etc.",
"authors":
Expand Down Expand Up @@ -34,7 +34,7 @@
{
"owner": "khoih-prog",
"name": "AsyncTCP_RP2040W",
"version": "^1.0.0"
"version": "^1.1.0"
}
],
"license": "LGPL-3.0",
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=AsyncHTTPRequest_RP2040W
version=1.1.0
version=1.1.1
author=Bob Lemaire,Khoi Hoang
maintainer=Khoi Hoang <khoih.prog@gmail.com>
sentence=Simple Async HTTP Request library, supporting GET, POST, PUT, PATCH, DELETE and HEAD, on top of AsyncTCP_RP2040W library for RASPBERRY_PI_PICO_W with CYW43439 WiFi.
Expand Down
4 changes: 2 additions & 2 deletions platformio/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ lib_ldf_mode = chain+

lib_deps =
; PlatformIO 4.x
; AsyncTCP_RP2040W@>=1.0.0
; AsyncTCP_RP2040W@>=1.1.0
;
; PlatformIO 5.x
khoih-prog/AsyncTCP_RP2040W@>=1.0.0
khoih-prog/AsyncTCP_RP2040W@>=1.1.0


build_flags =
Expand Down
5 changes: 3 additions & 2 deletions src/AsyncHTTPRequest_RP2040W.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,14 @@
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: 1.1.0
Version: 1.1.1
Version Modified By Date Comments
------- ----------- ---------- -----------
1.0.0 K Hoang 14/08/2022 Initial coding for RP2040W with CYW43439 WiFi
1.0.1 K Hoang 15/08/2022 Fix bug in examples
1.1.0 K Hoang 01/09/2022 Fix bug. Improve debug messages. Optimize code.
1.1.0 K Hoang 01/09/2022 Fix bug. Improve debug messages. Optimize code
1.1.1 K Hoang 19/10/2022 Not try to reconnect to the same host:port after connected
*****************************************************************************************************************************/

#pragma once
Expand Down
11 changes: 6 additions & 5 deletions src/AsyncHTTPRequest_RP2040W.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,14 @@
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: 1.1.0
Version: 1.1.1
Version Modified By Date Comments
------- ----------- ---------- -----------
1.0.0 K Hoang 14/08/2022 Initial coding for RP2040W with CYW43439 WiFi
1.0.1 K Hoang 15/08/2022 Fix bug in examples
1.1.0 K Hoang 01/09/2022 Fix bug. Improve debug messages. Optimize code.
1.1.0 K Hoang 01/09/2022 Fix bug. Improve debug messages. Optimize code
1.1.1 K Hoang 19/10/2022 Not try to reconnect to the same host:port after connected
*****************************************************************************************************************************/

#pragma once
Expand Down Expand Up @@ -62,13 +63,13 @@
#define SHIELD_TYPE "RP2040W CYW43439 WiFi"
#endif

#define ASYNC_HTTP_REQUEST_RP2040W_VERSION "AsyncHTTPRequest_RP2040W v1.1.0"
#define ASYNC_HTTP_REQUEST_RP2040W_VERSION "AsyncHTTPRequest_RP2040W v1.1.1"

#define ASYNC_HTTP_REQUEST_RP2040W_VERSION_MAJOR 1
#define ASYNC_HTTP_REQUEST_RP2040W_VERSION_MINOR 1
#define ASYNC_HTTP_REQUEST_RP2040W_VERSION_PATCH 0
#define ASYNC_HTTP_REQUEST_RP2040W_VERSION_PATCH 1

#define ASYNC_HTTP_REQUEST_RP2040W_VERSION_INT 1001000
#define ASYNC_HTTP_REQUEST_RP2040W_VERSION_INT 1001001

#include "AsyncTCP_RP2040W.h"

Expand Down
5 changes: 3 additions & 2 deletions src/AsyncHTTPRequest_RP2040W_Debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,14 @@
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: 1.1.0
Version: 1.1.1
Version Modified By Date Comments
------- ----------- ---------- -----------
1.0.0 K Hoang 14/08/2022 Initial coding for RP2040W with CYW43439 WiFi
1.0.1 K Hoang 15/08/2022 Fix bug in examples
1.1.0 K Hoang 01/09/2022 Fix bug. Improve debug messages. Optimize code.
1.1.0 K Hoang 01/09/2022 Fix bug. Improve debug messages. Optimize code
1.1.1 K Hoang 19/10/2022 Not try to reconnect to the same host:port after connected
*****************************************************************************************************************************/

#pragma once
Expand Down
Loading

0 comments on commit 19ea1ad

Please sign in to comment.