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

Commit 20d32d3

Browse files
authored
v1.8.1 not to reconnect after connected
### 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)
1 parent 964b3b4 commit 20d32d3

File tree

1 file changed

+50
-50
lines changed

1 file changed

+50
-50
lines changed

README.md

Lines changed: 50 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ This library is based on, modified from:
107107
1. [`Arduino IDE 1.8.19+` for Arduino](https://github.com/arduino/Arduino). [![GitHub release](https://img.shields.io/github/release/arduino/Arduino.svg)](https://github.com/arduino/Arduino/releases/latest)
108108
2. [`Teensy core v1.57+`](https://www.pjrc.com/teensy/td_download.html) for Teensy 4.1
109109
3. [`QNEthernet Library version v0.15.0+`](https://github.com/ssilverman/QNEthernet) for Teensy 4.1 built-in Ethernet.
110-
4. [`Teensy41_AsyncTCP library v1.0.0+`](https://github.com/khoih-prog/Teensy41_AsyncTCP) to use **Teensy 4.1 using QNEthernet Library**. To install, check [![arduino-library-badge](https://www.ardu-badge.com/badge/Teensy41_AsyncTCP.svg?)](https://www.ardu-badge.com/Teensy41_AsyncTCP)
110+
4. [`Teensy41_AsyncTCP library v1.1.0+`](https://github.com/khoih-prog/Teensy41_AsyncTCP) to use **Teensy 4.1 using QNEthernet Library**. To install, check [![arduino-library-badge](https://www.ardu-badge.com/badge/Teensy41_AsyncTCP.svg?)](https://www.ardu-badge.com/Teensy41_AsyncTCP)
111111

112112
---
113113
---
@@ -120,9 +120,9 @@ The best and easiest way is to use `Arduino Library Manager`. Search for `AsyncH
120120
### Manual Install
121121

122122
1. Navigate to [AsyncHTTPRequest_Teensy41](https://github.com/khoih-prog/AsyncHTTPRequest_Teensy41) page.
123-
2. Download the latest release `AsyncHTTPRequest_Teensy41-master.zip`.
124-
3. Extract the zip file to `AsyncHTTPRequest_Teensy41-master` directory
125-
4. Copy the whole `AsyncHTTPRequest_Teensy41-master` folder to Arduino libraries' directory such as `~/Arduino/libraries/`.
123+
2. Download the latest release `AsyncHTTPRequest_Teensy41-main.zip`.
124+
3. Extract the zip file to `AsyncHTTPRequest_Teensy41-main` directory
125+
4. Copy the whole `AsyncHTTPRequest_Teensy41-main` folder to Arduino libraries' directory such as `~/Arduino/libraries/`.
126126

127127
### VS Code & PlatformIO
128128

@@ -164,14 +164,14 @@ The current library implementation, using `xyz-Impl.h` instead of standard `xyz.
164164

165165
You can include this `.hpp` file
166166

167-
```
167+
```cpp
168168
// Can be included as many times as necessary, without `Multiple Definitions` Linker Error
169169
#include "AsyncHTTPRequest_Teensy41.hpp" //https://github.com/khoih-prog/AsyncHTTPRequest_Teensy41
170170
```
171171

172172
in many files. But be sure to use the following `.h` file **in just 1 `.h`, `.cpp` or `.ino` file**, which must **not be included in any other file**, to avoid `Multiple Definitions` Linker Error
173173

174-
```
174+
```cpp
175175
// To be included only in main(), .ino with setup() to avoid `Multiple Definitions` Linker Error
176176
#include "AsyncHTTPRequest_Teensy41.h" //https://github.com/khoih-prog/AsyncHTTPRequest_Teensy41
177177
```
@@ -201,14 +201,14 @@ Have a look at the discussion in [Different behaviour using the src_cpp or src_h
201201

202202
#### 1. File [AsyncHTTPRequest.ino](examples/AsyncHTTPRequest/AsyncHTTPRequest.ino)
203203

204-
https://github.com/khoih-prog/AsyncHTTPRequest_Teensy41/blob/d2cc3d7856e67370691e025e3a2acd8b90263d41/examples/AsyncHTTPRequest/AsyncHTTPRequest.ino#L38-L173
204+
https://github.com/khoih-prog/AsyncHTTPRequest_Teensy41/blob/964b3b4184664efab6b19c704760efc5f2e1558c/examples/AsyncHTTPRequest/AsyncHTTPRequest.ino#L38-L173
205205

206206

207207
---
208208

209209
#### 2. File [defines.h](examples/AsyncHTTPRequest/defines.h)
210210

211-
https://github.com/khoih-prog/AsyncHTTPRequest_Teensy41/blob/d2cc3d7856e67370691e025e3a2acd8b90263d41/examples/AsyncHTTPRequest/defines.h#L16-L50
211+
https://github.com/khoih-prog/AsyncHTTPRequest_Teensy41/blob/964b3b4184664efab6b19c704760efc5f2e1558c/examples/AsyncHTTPRequest/defines.h#L16-L50
212212

213213

214214
---
@@ -224,43 +224,43 @@ https://github.com/khoih-prog/AsyncHTTPRequest_Teensy41/blob/d2cc3d7856e67370691
224224

225225
```
226226
Start AsyncHTTPRequest on TEENSY 4.1
227-
AsyncHTTPRequest_Teensy41 v1.8.0
227+
AsyncHTTPRequest_Teensy41 v1.8.1
228228
Initialize Ethernet using DHCP => Connected! IP address:192.168.2.107
229229
230230
**************************************
231231
abbreviation: EDT
232232
client_ip: aaa.bbb.ccc.ddd
233-
datetime: 2022-09-01T22:21:28.831047-04:00
234-
day_of_week: 4
235-
day_of_year: 244
233+
datetime: 2022-10-18T15:07:55.344362-04:00
234+
day_of_week: 2
235+
day_of_year: 291
236236
dst: true
237237
dst_from: 2022-03-13T07:00:00+00:00
238238
dst_offset: 3600
239239
dst_until: 2022-11-06T06:00:00+00:00
240240
raw_offset: -18000
241241
timezone: America/Toronto
242-
unixtime: 1662085288
243-
utc_datetime: 2022-09-02T02:21:28.831047+00:00
242+
unixtime: 1666120075
243+
utc_datetime: 2022-10-18T19:07:55.344362+00:00
244244
utc_offset: -04:00
245-
week_number: 35
245+
week_number: 42
246246
**************************************
247247
248248
**************************************
249249
abbreviation: EDT
250250
client_ip: aaa.bbb.ccc.ddd
251-
datetime: 2022-09-01T22:22:28.779577-04:00
252-
day_of_week: 4
253-
day_of_year: 244
251+
datetime: 2022-10-18T15:08:54.489027-04:00
252+
day_of_week: 2
253+
day_of_year: 291
254254
dst: true
255255
dst_from: 2022-03-13T07:00:00+00:00
256256
dst_offset: 3600
257257
dst_until: 2022-11-06T06:00:00+00:00
258258
raw_offset: -18000
259259
timezone: America/Toronto
260-
unixtime: 1662085348
261-
utc_datetime: 2022-09-02T02:22:28.779577+00:00
260+
unixtime: 1666120134
261+
utc_datetime: 2022-10-18T19:08:54.489027+00:00
262262
utc_offset: -04:00
263-
week_number: 35
263+
week_number: 42
264264
**************************************
265265
```
266266

@@ -271,47 +271,47 @@ week_number: 35
271271

272272
```
273273
Start AsyncCustomHeader on TEENSY 4.1
274-
AsyncHTTPRequest_Teensy41 v1.8.0
274+
AsyncHTTPRequest_Teensy41 v1.8.1
275275
Initialize Ethernet using DHCP => Connected! IP address:192.168.2.107
276276
277277
Sending GET Request to http://worldtimeapi.org/api/timezone/America/Toronto.txt
278278
279279
**************************************
280280
abbreviation: EDT
281281
client_ip: aaa.bbb.ccc.ddd
282-
datetime: 2022-09-01T22:21:28.831047-04:00
283-
day_of_week: 4
284-
day_of_year: 244
282+
datetime: 2022-10-18T15:09:54.390100-04:00
283+
day_of_week: 2
284+
day_of_year: 291
285285
dst: true
286286
dst_from: 2022-03-13T07:00:00+00:00
287287
dst_offset: 3600
288288
dst_until: 2022-11-06T06:00:00+00:00
289289
raw_offset: -18000
290290
timezone: America/Toronto
291-
unixtime: 1662085288
292-
utc_datetime: 2022-09-02T02:21:28.831047+00:00
291+
unixtime: 1666120194
292+
utc_datetime: 2022-10-18T19:09:54.390100+00:00
293293
utc_offset: -04:00
294-
week_number: 35
294+
week_number: 42
295295
**************************************
296296
297297
Sending GET Request to http://worldtimeapi.org/api/timezone/America/Toronto.txt
298298
299299
**************************************
300300
abbreviation: EDT
301301
client_ip: aaa.bbb.ccc.ddd
302-
datetime: 2022-09-01T22:22:28.779577-04:00
303-
day_of_week: 4
304-
day_of_year: 244
302+
datetime: 2022-10-18T15:10:54.440157-04:00
303+
day_of_week: 2
304+
day_of_year: 291
305305
dst: true
306306
dst_from: 2022-03-13T07:00:00+00:00
307307
dst_offset: 3600
308308
dst_until: 2022-11-06T06:00:00+00:00
309309
raw_offset: -18000
310310
timezone: America/Toronto
311-
unixtime: 1662085348
312-
utc_datetime: 2022-09-02T02:22:28.779577+00:00
311+
unixtime: 1666120254
312+
utc_datetime: 2022-10-18T19:10:54.440157+00:00
313313
utc_offset: -04:00
314-
week_number: 35
314+
week_number: 42
315315
**************************************
316316
```
317317

@@ -322,7 +322,7 @@ week_number: 35
322322

323323
```
324324
Start AsyncDweetGET on TEENSY 4.1
325-
AsyncHTTPRequest_Teensy41 v1.8.0
325+
AsyncHTTPRequest_Teensy41 v1.8.1
326326
Initialize Ethernet using DHCP => Connected! IP address:192.168.2.107
327327
328328
**************************************
@@ -339,7 +339,7 @@ Actual value: 66
339339

340340
```
341341
Start AsyncDweetPOST on TEENSY 4.1
342-
AsyncHTTPRequest_Teensy41 v1.8.0
342+
AsyncHTTPRequest_Teensy41 v1.8.1
343343
Initialize Ethernet using DHCP => Connected! IP address:192.168.2.107
344344
345345
Making new POST request
@@ -359,43 +359,43 @@ Actual value: 1007
359359

360360
```
361361
Start AsyncSimpleGET on TEENSY 4.1
362-
AsyncHTTPRequest_Teensy41 v1.8.0
362+
AsyncHTTPRequest_Teensy41 v1.8.1
363363
Initialize Ethernet using DHCP => Connected! IP address:192.168.2.107
364364
365365
**************************************
366366
abbreviation: EDT
367367
client_ip: aaa.bbb.ccc.ddd
368-
datetime: 2022-09-01T22:21:28.831047-04:00
369-
day_of_week: 4
370-
day_of_year: 244
368+
datetime: 2022-10-18T15:09:54.390100-04:00
369+
day_of_week: 2
370+
day_of_year: 291
371371
dst: true
372372
dst_from: 2022-03-13T07:00:00+00:00
373373
dst_offset: 3600
374374
dst_until: 2022-11-06T06:00:00+00:00
375375
raw_offset: -18000
376376
timezone: America/Toronto
377-
unixtime: 1662085288
378-
utc_datetime: 2022-09-02T02:21:28.831047+00:00
377+
unixtime: 1666120194
378+
utc_datetime: 2022-10-18T19:09:54.390100+00:00
379379
utc_offset: -04:00
380-
week_number: 35
380+
week_number: 42
381381
**************************************
382382
383383
**************************************
384384
abbreviation: EDT
385385
client_ip: aaa.bbb.ccc.ddd
386-
datetime: 2022-09-01T22:22:28.779577-04:00
387-
day_of_week: 4
388-
day_of_year: 244
386+
datetime: 2022-10-18T15:10:54.440157-04:00
387+
day_of_week: 2
388+
day_of_year: 291
389389
dst: true
390390
dst_from: 2022-03-13T07:00:00+00:00
391391
dst_offset: 3600
392392
dst_until: 2022-11-06T06:00:00+00:00
393393
raw_offset: -18000
394394
timezone: America/Toronto
395-
unixtime: 1662085348
396-
utc_datetime: 2022-09-02T02:22:28.779577+00:00
395+
unixtime: 1666120254
396+
utc_datetime: 2022-10-18T19:10:54.440157+00:00
397397
utc_offset: -04:00
398-
week_number: 35
398+
week_number: 42
399399
**************************************
400400
```
401401

@@ -447,7 +447,7 @@ Submit issues to: [AsyncHTTPRequest_Teensy41 issues](https://github.com/khoih-pr
447447
5. Fix long timeout if using `IPAddress`
448448
6. Display only successful responseText in examples
449449
7. Improve debug messages by adding functions to display error messages instead of `cryptic error number`
450-
450+
8. Not try to reconnect to the same `host:port` after connected
451451

452452
---
453453
---

0 commit comments

Comments
 (0)