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

Commit 291f1d6

Browse files
authored
v1.4.2 default to reconnect to the same host:port
### Releases v1.4.2 1. Default to reconnect to the same `host:port` after connected for new HTTP sites. Check [Host/Headers not always sent with 1.10.1 #44](khoih-prog/AsyncHTTPRequest_Generic#44) 2. Use `allman astyle` and add `utils`
1 parent 13c9304 commit 291f1d6

File tree

1 file changed

+69
-66
lines changed

1 file changed

+69
-66
lines changed

README.md

Lines changed: 69 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
<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>
99
<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>
10+
<a href="https://profile-counter.glitch.me/khoih-prog-Portenta-H7-AsyncHTTPRequest/count.svg" title="Visitor count"><img src="https://profile-counter.glitch.me/khoih-prog-Portenta-H7-AsyncHTTPRequest/count.svg" style="height: 30px;width: 200px;"></a>
1011

1112
---
1213
---
@@ -120,7 +121,7 @@ This library is based on, modified from:
120121
1. **Portenta_H7 boards** such as Portenta_H7 Rev2 ABX00042, etc., using [**ArduinoCore-mbed mbed_portenta** core](https://github.com/arduino/ArduinoCore-mbed) using `Vision-shield Ethernet` or `Murata WiFi`
121122

122123
<p align="center">
123-
<img src="https://github.com/khoih-prog/Portenta_H7_AsyncHTTPRequest/blob/main/pics/Portenta_Vision.jpg">
124+
<img src="https://github.com/khoih-prog/Portenta_H7_AsyncHTTPRequest/raw/main/pics/Portenta_Vision.jpg">
124125
</p>
125126

126127

@@ -262,15 +263,15 @@ Please take a look at other examples, as well.
262263

263264
#### 1. File [AsyncHTTPRequest.ino](examples/Ethernet/AsyncHTTPRequest/AsyncHTTPRequest.ino)
264265

265-
https://github.com/khoih-prog/Portenta_H7_AsyncHTTPRequest/blob/6ad432146ddce63a132f0436ff089a63e97e8432/examples/Ethernet/AsyncHTTPRequest/AsyncHTTPRequest.ino#L44-L174
266+
https://github.com/khoih-prog/Portenta_H7_AsyncHTTPRequest/blob/13c9304d5d4fbbfb54e8f7fef981dd8f68ce9994/examples/Ethernet/AsyncHTTPRequest/AsyncHTTPRequest.ino#L44-L184
266267

267268

268269
---
269270

270271
#### 2. File [defines.h](examples/Ethernet/AsyncHTTPRequest/defines.h)
271272

272273

273-
https://github.com/khoih-prog/Portenta_H7_AsyncHTTPRequest/blob/6ad432146ddce63a132f0436ff089a63e97e8432/examples/Ethernet/AsyncHTTPRequest/defines.h#L23-L68
274+
https://github.com/khoih-prog/Portenta_H7_AsyncHTTPRequest/blob/13c9304d5d4fbbfb54e8f7fef981dd8f68ce9994/examples/Ethernet/AsyncHTTPRequest/defines.h#L23-L68
274275

275276

276277
---
@@ -283,44 +284,44 @@ https://github.com/khoih-prog/Portenta_H7_AsyncHTTPRequest/blob/6ad432146ddce63a
283284
```
284285
Start AsyncHTTPRequest on PORTENTA_H7_M7
285286
Portenta_H7_AsyncTCP v1.4.0
286-
Portenta_H7_AsyncHTTPRequest v1.4.1
287+
Portenta_H7_AsyncHTTPRequest v1.4.2
287288
Using mac index = 15
288289
Connected! IP address: 192.168.2.101
289290
Request sent
290291
**************************************
291-
abbreviation: EDT
292+
abbreviation: EST
292293
client_ip: aaa.bbb.ccc.ddd
293-
datetime: 2022-10-20T23:04:21.101705-04:00
294+
datetime: 2022-11-10T14:03:19.073880-05:00
294295
day_of_week: 4
295-
day_of_year: 293
296-
dst: true
297-
dst_from: 2022-03-13T07:00:00+00:00
298-
dst_offset: 3600
299-
dst_until: 2022-11-06T06:00:00+00:00
296+
day_of_year: 314
297+
dst: false
298+
dst_from:
299+
dst_offset: 0
300+
dst_until:
300301
raw_offset: -18000
301302
timezone: America/Toronto
302-
unixtime: 1666321461
303-
utc_datetime: 2022-10-21T03:04:21.101705+00:00
304-
utc_offset: -04:00
305-
week_number: 42
303+
unixtime: 1668106999
304+
utc_datetime: 2022-11-10T19:03:19.073880+00:00
305+
utc_offset: -05:00
306+
week_number: 45
306307
**************************************
307308
308309
**************************************
309-
abbreviation: EDT
310+
abbreviation: EST
310311
client_ip: aaa.bbb.ccc.ddd
311-
datetime: 2022-10-20T23:05:21.101861-04:00
312+
datetime: 2022-11-10T14:03:29.094926-05:00
312313
day_of_week: 4
313-
day_of_year: 293
314-
dst: true
315-
dst_from: 2022-03-13T07:00:00+00:00
316-
dst_offset: 3600
317-
dst_until: 2022-11-06T06:00:00+00:00
314+
day_of_year: 314
315+
dst: false
316+
dst_from:
317+
dst_offset: 0
318+
dst_until:
318319
raw_offset: -18000
319320
timezone: America/Toronto
320-
unixtime: 1666321521
321-
utc_datetime: 2022-10-21T03:05:21.101861+00:00
322-
utc_offset: -04:00
323-
week_number: 42
321+
unixtime: 1668107009
322+
utc_datetime: 2022-11-10T19:03:29.094926+00:00
323+
utc_offset: -05:00
324+
week_number: 45
324325
**************************************
325326
```
326327

@@ -331,7 +332,7 @@ week_number: 42
331332
```
332333
Start AsyncDweetPOST on PORTENTA_H7_M7
333334
Portenta_H7_AsyncTCP v1.4.0
334-
Portenta_H7_AsyncHTTPRequest v1.4.1
335+
Portenta_H7_AsyncHTTPRequest v1.4.2
335336
Connecting to SSID: HueNet1
336337
SSID: HueNet1
337338
Local IP Address: 192.168.2.94
@@ -354,7 +355,7 @@ Actual value: 88
354355
```
355356
Start AsyncWebClientRepeating on PORTENTA_H7_M7
356357
Portenta_H7_AsyncTCP v1.4.0
357-
Portenta_H7_AsyncHTTPRequest v1.4.1
358+
Portenta_H7_AsyncHTTPRequest v1.4.2
358359
Connecting to SSID: HueNet1
359360
SSID: HueNet1
360361
Local IP Address: 192.168.2.94
@@ -412,28 +413,28 @@ signal strength (RSSI):-26 dBm
412413
```
413414
Start AsyncCustomHeader on PORTENTA_H7_M7
414415
Portenta_H7_AsyncTCP v1.4.0
415-
Portenta_H7_AsyncHTTPRequest v1.4.1
416+
Portenta_H7_AsyncHTTPRequest v1.4.2
416417
Using mac index = 15
417418
Connected! IP address: 192.168.2.87
418419
419420
Sending GET Request to http://worldtimeapi.org/api/timezone/America/Toronto.txt
420421
421422
**************************************
422-
abbreviation: EDT
423+
abbreviation: EST
423424
client_ip: aaa.bbb.ccc.ddd
424-
datetime: 2022-10-20T23:08:21.131690-04:00
425+
datetime: 2022-11-10T14:03:39.083413-05:00
425426
day_of_week: 4
426-
day_of_year: 293
427-
dst: true
428-
dst_from: 2022-03-13T07:00:00+00:00
429-
dst_offset: 3600
430-
dst_until: 2022-11-06T06:00:00+00:00
427+
day_of_year: 314
428+
dst: false
429+
dst_from:
430+
dst_offset: 0
431+
dst_until:
431432
raw_offset: -18000
432433
timezone: America/Toronto
433-
unixtime: 1666321701
434-
utc_datetime: 2022-10-21T03:08:21.131690+00:00
435-
utc_offset: -04:00
436-
week_number: 42
434+
unixtime: 1668107019
435+
utc_datetime: 2022-11-10T19:03:39.083413+00:00
436+
utc_offset: -05:00
437+
week_number: 45
437438
**************************************
438439
```
439440

@@ -445,7 +446,7 @@ week_number: 42
445446
```
446447
Start AsyncWebClientRepeating on PORTENTA_H7_M7
447448
Portenta_H7_AsyncTCP v1.4.0
448-
Portenta_H7_AsyncHTTPRequest v1.4.1
449+
Portenta_H7_AsyncHTTPRequest v1.4.2
449450
Using mac index = 16
450451
Connected! IP address: 192.168.2.87
451452
@@ -502,45 +503,45 @@ Connected! IP address: 192.168.2.87
502503
```
503504
Start AsyncSimpleGET on PORTENTA_H7_M7
504505
Portenta_H7_AsyncTCP v1.4.0
505-
Portenta_H7_AsyncHTTPRequest v1.4.1
506+
Portenta_H7_AsyncHTTPRequest v1.4.2
506507
Using mac index = 7
507508
Connected! IP address: 192.168.2.87
508509
509510
**************************************
510-
abbreviation: EDT
511+
abbreviation: EST
511512
client_ip: aaa.bbb.ccc.ddd
512-
datetime: 2022-10-20T23:09:21.132613-04:00
513+
datetime: 2022-11-10T14:03:39.083413-05:00
513514
day_of_week: 4
514-
day_of_year: 293
515-
dst: true
516-
dst_from: 2022-03-13T07:00:00+00:00
517-
dst_offset: 3600
518-
dst_until: 2022-11-06T06:00:00+00:00
515+
day_of_year: 314
516+
dst: false
517+
dst_from:
518+
dst_offset: 0
519+
dst_until:
519520
raw_offset: -18000
520521
timezone: America/Toronto
521-
unixtime: 1666321761
522-
utc_datetime: 2022-10-21T03:09:21.132613+00:00
523-
utc_offset: -04:00
524-
week_number: 42
522+
unixtime: 1668107019
523+
utc_datetime: 2022-11-10T19:03:39.083413+00:00
524+
utc_offset: -05:00
525+
week_number: 45
525526
**************************************
526527
527528
**************************************
528-
abbreviation: EDT
529+
abbreviation: EST
529530
client_ip: aaa.bbb.ccc.ddd
530-
datetime: 2022-10-20T23:10:21.133081-04:00
531+
datetime: 2022-11-10T14:03:49.122480-05:00
531532
day_of_week: 4
532-
day_of_year: 293
533-
dst: true
534-
dst_from: 2022-03-13T07:00:00+00:00
535-
dst_offset: 3600
536-
dst_until: 2022-11-06T06:00:00+00:00
533+
day_of_year: 314
534+
dst: false
535+
dst_from:
536+
dst_offset: 0
537+
dst_until:
537538
raw_offset: -18000
538539
timezone: America/Toronto
539-
unixtime: 1666321821
540-
utc_datetime: 2022-10-21T03:10:21.133081+00:00
541-
utc_offset: -04:00
542-
week_number: 42
543-
**************************************
540+
unixtime: 1668107029
541+
utc_datetime: 2022-11-10T19:03:49.122480+00:00
542+
utc_offset: -05:00
543+
week_number: 45
544+
************************************
544545
```
545546

546547

@@ -597,6 +598,8 @@ Submit issues to: [Portenta_H7_AsyncHTTPRequest issues](https://github.com/khoih
597598
9. Improve debug messages by adding functions to display error messages instead of `cryptic error number`
598599
10. Not try to reconnect to the same `host:port` after connected
599600
11. Fix bug of wrong `reqStates`
601+
12. Default to reconnect to the same `host:port` after connected for new HTTP sites.
602+
13. Use `allman astyle` and add `utils`
600603

601604

602605
---
@@ -629,7 +632,7 @@ If you want to contribute to this project:
629632

630633
### License and credits ###
631634

632-
- The library is licensed under [GPLv3](https://github.com/khoih-prog/Portenta_H7_AsyncHTTPRequest/blob/master/LICENSE)
635+
- The library is licensed under [GPLv3](https://github.com/khoih-prog/Portenta_H7_AsyncHTTPRequest/blob/main/LICENSE)
633636

634637
---
635638

0 commit comments

Comments
 (0)