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

Commit

Permalink
v1.8.1 not to reconnect after connected
Browse files Browse the repository at this point in the history
### Releases v1.8.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 1e27e22 commit 964b3b4
Show file tree
Hide file tree
Showing 15 changed files with 94 additions and 57 deletions.
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ Arduino IDE version: 1.8.19
Teensyduino core v1.57
Teensy 4.1 using QNEthernet v0.15.0
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 @@ -13,6 +13,7 @@

* [Table of contents](#table-of-contents)
* [Changelog](#changelog)
* [Releases v1.8.1](#releases-v181)
* [Releases v1.8.0](#releases-v180)
* [Releases v1.7.1](#releases-v171)

Expand All @@ -21,6 +22,10 @@

## Changelog

### Releases v1.8.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)

### Releases v1.8.0

1. Fix long timeout if using bad `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 @@ -19,8 +19,8 @@
//char GET_ServerAddress[] = "192.168.2.110/";
char GET_ServerAddress[] = "http://worldtimeapi.org/api/timezone/America/Toronto.txt";

#define ASYNC_HTTP_REQUEST_TEENSY41_VERSION_MIN_TARGET "AsyncHTTPRequest_Teensy41 v1.8.0"
#define ASYNC_HTTP_REQUEST_TEENSY41_VERSION_MIN 1008000
#define ASYNC_HTTP_REQUEST_TEENSY41_VERSION_MIN_TARGET "AsyncHTTPRequest_Teensy41 v1.8.1"
#define ASYNC_HTTP_REQUEST_TEENSY41_VERSION_MIN 1008001

// 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 @@ -30,8 +30,8 @@ const char GET_ServerAddress[] = "dweet.io";
// use your own thing name here
String dweetName = "/dweet/for/currentSecond?second=";

#define ASYNC_HTTP_REQUEST_TEENSY41_VERSION_MIN_TARGET "AsyncHTTPRequest_Teensy41 v1.8.0"
#define ASYNC_HTTP_REQUEST_TEENSY41_VERSION_MIN 1008000
#define ASYNC_HTTP_REQUEST_TEENSY41_VERSION_MIN_TARGET "AsyncHTTPRequest_Teensy41 v1.8.1"
#define ASYNC_HTTP_REQUEST_TEENSY41_VERSION_MIN 1008001

// 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 @@ -24,8 +24,8 @@ const char POST_ServerAddress[] = "dweet.io";
// use your own thing name here
String dweetName = "/dweet/for/pinA0-Read?";

#define ASYNC_HTTP_REQUEST_TEENSY41_VERSION_MIN_TARGET "AsyncHTTPRequest_Teensy41 v1.8.0"
#define ASYNC_HTTP_REQUEST_TEENSY41_VERSION_MIN 1008000
#define ASYNC_HTTP_REQUEST_TEENSY41_VERSION_MIN_TARGET "AsyncHTTPRequest_Teensy41 v1.8.1"
#define ASYNC_HTTP_REQUEST_TEENSY41_VERSION_MIN 1008001

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

#include "defines.h"

#define ASYNC_HTTP_REQUEST_TEENSY41_VERSION_MIN_TARGET "AsyncHTTPRequest_Teensy41 v1.8.0"
#define ASYNC_HTTP_REQUEST_TEENSY41_VERSION_MIN 1008000
#define ASYNC_HTTP_REQUEST_TEENSY41_VERSION_MIN_TARGET "AsyncHTTPRequest_Teensy41 v1.8.1"
#define ASYNC_HTTP_REQUEST_TEENSY41_VERSION_MIN 1008001

// Level from 0-4
#define ASYNC_HTTP_DEBUG_PORT Serial
Expand Down
4 changes: 2 additions & 2 deletions examples/AsyncSimpleGET/AsyncSimpleGET.ino
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
//char GET_ServerAddress[] = "ipv4bot.whatismyipaddress.com/";
char GET_ServerAddress[] = "http://worldtimeapi.org/api/timezone/America/Toronto.txt";

#define ASYNC_HTTP_REQUEST_TEENSY41_VERSION_MIN_TARGET "AsyncHTTPRequest_Teensy41 v1.8.0"
#define ASYNC_HTTP_REQUEST_TEENSY41_VERSION_MIN 1008000
#define ASYNC_HTTP_REQUEST_TEENSY41_VERSION_MIN_TARGET "AsyncHTTPRequest_Teensy41 v1.8.1"
#define ASYNC_HTTP_REQUEST_TEENSY41_VERSION_MIN 1008001

// 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 @@ -21,8 +21,8 @@
#error Only Teensy 4.1 supported
#endif

#define ASYNC_HTTP_REQUEST_TEENSY41_VERSION_MIN_TARGET "AsyncHTTPRequest_Teensy41 v1.8.0"
#define ASYNC_HTTP_REQUEST_TEENSY41_VERSION_MIN 1008000
#define ASYNC_HTTP_REQUEST_TEENSY41_VERSION_MIN_TARGET "AsyncHTTPRequest_Teensy41 v1.8.1"
#define ASYNC_HTTP_REQUEST_TEENSY41_VERSION_MIN 1008001

// Level from 0-4
#define ASYNC_HTTP_DEBUG_PORT Serial
Expand Down
10 changes: 8 additions & 2 deletions library.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name":"AsyncHTTPRequest_Teensy41",
"version": "1.8.0",
"version": "1.8.1",
"description":"Simple Async HTTP Request library, supporting GET, POST, PUT, PATCH, DELETE and HEAD, on top of Teensy41_AsyncTCP for Teensy 4.1 using QNEthernet. This library is one of the current or future Async libraries to support Teensy 4.1 using QNEthernet, such as AsyncHTTPRequest_Generic, AsyncHTTPSRequest_Generic, AsyncMQTT_Generic, Teensy41_AsyncWebServer, Teensy41_AsyncUDP, Teensy41_AsyncDNSServer, AsyncHTTPRequest_Teensy41_SSL, etc.",
"keywords":"communication, async, tcp, http, async-tcp, async-http, teensy, teensy41, teensy-41, qnethernet, lwip",
"authors": [
Expand All @@ -25,8 +25,14 @@
{
"owner": "khoih-prog",
"name": "Teensy41_AsyncTCP",
"version": ">=1.0.0",
"version": ">=1.1.0",
"platforms": ["teensy", "avr"]
},
{
"owner": "ssilverman",
"name": "QNEthernet",
"version": ">=0.15.0",
"platforms": ["teensy"]
}
],
"homepage": "https://github.com/khoih-prog/AsyncHTTPRequest_Teensy41",
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_Teensy41
version=1.8.0
version=1.8.1
author=Bob Lemaire, Khoi Hoang <khoih.prog@gmail.com>
maintainer=Khoi Hoang <khoih.prog@gmail.com>
sentence=Simple Async HTTP Request library, supporting GET, POST, PUT, PATCH, DELETE and HEAD, on top of Teensy41_AsyncTCP for Teensy 4.1 using QNEthernet.
Expand Down
11 changes: 8 additions & 3 deletions platformio/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,22 @@ upload_speed = 921600

; Checks for the compatibility with frameworks and dev/platforms
lib_compat_mode = strict
lib_ldf_mode = chain+
;lib_ldf_mode = deep+

lib_deps =
; PlatformIO 4.x

; Teensy41_AsyncTCP@>=1.1.0
; QNEthernet@>=0.15.0
;
; PlatformIO 5.x

khoih-prog/Teensy41_AsyncTCP@>=1.1.0
ssilverman/QNEthernet@>=0.15.0

build_flags =
; set your build_flags

[env:STM32]
[env:teensy]
platform = teensy
framework = arduino

Expand Down
5 changes: 3 additions & 2 deletions src/AsyncHTTPRequest_Teensy41.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,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.8.0
Version: 1.8.1
Version Modified By Date Comments
------- ----------- ---------- -----------
1.7.1 K Hoang 18/03/2022 Initial coding for Teensy 4.1 using built-in QNEthernet.
Bump up version to v1.7.1 to sync with AsyncHTTPRequest_Generic v1.7.1
1.8.0 K Hoang 01/09/2022 Fix bug. Improve debug messages. Optimize code
1.8.0 K Hoang 01/09/2022 Fix bug. Improve debug messages. Optimize code
1.8.1 K Hoang 18/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_Teensy41.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,27 +20,28 @@
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.8.0
Version: 1.8.1
Version Modified By Date Comments
------- ----------- ---------- -----------
1.7.1 K Hoang 18/03/2022 Initial coding for Teensy 4.1 using built-in QNEthernet.
Bump up version to v1.7.1 to sync with AsyncHTTPRequest_Generic v1.7.1
1.8.0 K Hoang 01/09/2022 Fix bug. Improve debug messages. Optimize code
1.8.0 K Hoang 01/09/2022 Fix bug. Improve debug messages. Optimize code
1.8.1 K Hoang 18/10/2022 Not try to reconnect to the same host:port after connected
*****************************************************************************************************************************/

#pragma once

#ifndef ASYNC_HTTP_REQUEST_TEENSY41_HPP
#define ASYNC_HTTP_REQUEST_TEENSY41_HPP

#define ASYNC_HTTP_REQUEST_TEENSY41_VERSION "AsyncHTTPRequest_Teensy41 v1.8.0"
#define ASYNC_HTTP_REQUEST_TEENSY41_VERSION "AsyncHTTPRequest_Teensy41 v1.8.1"

#define ASYNC_HTTP_REQUEST_TEENSY41_VERSION_MAJOR 1
#define ASYNC_HTTP_REQUEST_TEENSY41_VERSION_MINOR 8
#define ASYNC_HTTP_REQUEST_TEENSY41_VERSION_PATCH 0
#define ASYNC_HTTP_REQUEST_TEENSY41_VERSION_PATCH 1

#define ASYNC_HTTP_REQUEST_TEENSY41_VERSION_INT 1008000
#define ASYNC_HTTP_REQUEST_TEENSY41_VERSION_INT 1008001

#include <Arduino.h>

Expand Down
5 changes: 3 additions & 2 deletions src/AsyncHTTPRequest_Teensy41_Debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,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.8.0
Version: 1.8.1
Version Modified By Date Comments
------- ----------- ---------- -----------
1.7.1 K Hoang 18/03/2022 Initial coding for Teensy 4.1 using built-in QNEthernet.
Bump up version to v1.7.1 to sync with AsyncHTTPRequest_Generic v1.7.1
1.8.0 K Hoang 01/09/2022 Fix bug. Improve debug messages. Optimize code
1.8.0 K Hoang 01/09/2022 Fix bug. Improve debug messages. Optimize code
1.8.1 K Hoang 18/10/2022 Not try to reconnect to the same host:port after connected
*****************************************************************************************************************************/

#pragma once
Expand Down
Loading

0 comments on commit 964b3b4

Please sign in to comment.