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

Commit 362436a

Browse files
authored
v1.10.0 to fix _parseURL() bug
### Releases v1.10.0 1. Fix `_parseURL()` bug. Check [Bug with _parseURL() #21](khoih-prog/AsyncHTTPSRequest_Generic#21) 2. Improve `README.md` so that links can be used in other sites, such as `PIO`
1 parent 7a4784a commit 362436a

File tree

1 file changed

+70
-66
lines changed

1 file changed

+70
-66
lines changed

README.md

Lines changed: 70 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<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>
1010
<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>
1111

12+
1213
---
1314
---
1415

@@ -29,12 +30,12 @@
2930
* [1. For Teensy boards](#1-for-teensy-boards)
3031
* [HOWTO Fix `Multiple Definitions` Linker Error](#howto-fix-multiple-definitions-linker-error)
3132
* [Examples](#examples)
32-
* [1. AsyncCustomHeader](examples/AsyncCustomHeader)
33-
* [2. AsyncDweetGet](examples/AsyncDweetGet)
34-
* [3. AsyncDweetPost](examples/AsyncDweetPost)
35-
* [4. AsyncHTTPRequest](examples/AsyncHTTPRequest)
36-
* [5. AsyncSimpleGET](examples/AsyncSimpleGET)
37-
* [6. multiFileProject](examples/multiFileProject)
33+
* [1. AsyncCustomHeader](https://github.com/khoih-prog/AsyncHTTPRequest_Teensy41/tree/main/examples/AsyncCustomHeader)
34+
* [2. AsyncDweetGet](https://github.com/khoih-prog/AsyncHTTPRequest_Teensy41/tree/main/examples/AsyncDweetGet)
35+
* [3. AsyncDweetPost](https://github.com/khoih-prog/AsyncHTTPRequest_Teensy41/tree/main/examples/AsyncDweetPost)
36+
* [4. AsyncHTTPRequest](https://github.com/khoih-prog/AsyncHTTPRequest_Teensy41/tree/main/examples/AsyncHTTPRequest)
37+
* [5. AsyncSimpleGET](https://github.com/khoih-prog/AsyncHTTPRequest_Teensy41/tree/main/examples/AsyncSimpleGET)
38+
* [6. multiFileProject](https://github.com/khoih-prog/AsyncHTTPRequest_Teensy41/tree/main/examples/multiFileProject)
3839
* [Example AsyncHTTPRequest](#example-asynchttprequest)
3940
* [1. File AsyncHTTPRequest.ino](#1-file-asynchttprequestino)
4041
* [2. File defines.h](#2-file-definesh)
@@ -106,8 +107,8 @@ This library is based on, modified from:
106107
## Prerequisites
107108

108109
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)
109-
2. [`Teensy core v1.57+`](https://www.pjrc.com/teensy/td_download.html) for Teensy 4.1
110-
3. [`QNEthernet Library version v0.16.0+`](https://github.com/ssilverman/QNEthernet) for Teensy 4.1 built-in Ethernet.
110+
2. [`Teensy core v1.57+`](https://github.com/PaulStoffregen/cores) for Teensy 4.1. [![GitHub release](https://img.shields.io/github/release/PaulStoffregen/cores.svg)](https://github.com/PaulStoffregen/cores/releases/latest)
111+
3. [`QNEthernet Library version v0.17.0+`](https://github.com/ssilverman/QNEthernet) for Teensy 4.1 built-in Ethernet.
111112
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)
112113

113114
---
@@ -177,7 +178,7 @@ in many files. But be sure to use the following `.h` file **in just 1 `.h`, `.cp
177178
#include "AsyncHTTPRequest_Teensy41.h" //https://github.com/khoih-prog/AsyncHTTPRequest_Teensy41
178179
```
179180

180-
Check the new [**multiFileProject** example](examples/multiFileProject) for a `HOWTO` demo.
181+
Check the new [**multiFileProject** example](https://github.com/khoih-prog/AsyncHTTPRequest_Teensy41/tree/main/examples/multiFileProject) for a `HOWTO` demo.
181182

182183
Have a look at the discussion in [Different behaviour using the src_cpp or src_h lib #80](https://github.com/khoih-prog/ESPAsync_WiFiManager/discussions/80)
183184

@@ -188,28 +189,28 @@ Have a look at the discussion in [Different behaviour using the src_cpp or src_h
188189

189190
### Examples
190191

191-
1. [AsyncCustomHeader](examples/AsyncCustomHeader)
192-
2. [AsyncDweetGet](examples/AsyncDweetGet)
193-
3. [AsyncDweetPost](examples/AsyncDweetPost)
194-
4. [AsyncHTTPRequest](examples/AsyncHTTPRequest)
195-
5. [AsyncSimpleGET](examples/AsyncSimpleGET)
196-
6. [multiFileProject](examples/multiFileProject)
192+
1. [AsyncCustomHeader](https://github.com/khoih-prog/AsyncHTTPRequest_Teensy41/tree/main/examples/AsyncCustomHeader)
193+
2. [AsyncDweetGet](https://github.com/khoih-prog/AsyncHTTPRequest_Teensy41/tree/main/examples/AsyncDweetGet)
194+
3. [AsyncDweetPost](https://github.com/khoih-prog/AsyncHTTPRequest_Teensy41/tree/main/examples/AsyncDweetPost)
195+
4. [AsyncHTTPRequest](https://github.com/khoih-prog/AsyncHTTPRequest_Teensy41/tree/main/examples/AsyncHTTPRequest)
196+
5. [AsyncSimpleGET](https://github.com/khoih-prog/AsyncHTTPRequest_Teensy41/tree/main/examples/AsyncSimpleGET)
197+
6. [multiFileProject](https://github.com/khoih-prog/AsyncHTTPRequest_Teensy41/tree/main/examples/multiFileProject)
197198

198199

199200
---
200201

201-
### Example [AsyncHTTPRequest](examples/AsyncHTTPRequest)
202+
### Example [AsyncHTTPRequest](https://github.com/khoih-prog/AsyncHTTPRequest_Teensy41/tree/main/examples/AsyncHTTPRequest)
202203

203-
#### 1. File [AsyncHTTPRequest.ino](examples/AsyncHTTPRequest/AsyncHTTPRequest.ino)
204+
#### 1. File [AsyncHTTPRequest.ino](https://github.com/khoih-prog/AsyncHTTPRequest_Teensy41/tree/main/examples/AsyncHTTPRequest/AsyncHTTPRequest.ino)
204205

205-
https://github.com/khoih-prog/AsyncHTTPRequest_Teensy41/blob/558ddadd9345b15f35a53fa6048dbaeb101f3d11/examples/AsyncHTTPRequest/AsyncHTTPRequest.ino#L38-L184
206+
https://github.com/khoih-prog/AsyncHTTPRequest_Teensy41/blob/7a4784ab17a50d3208e7d7b24b24d9e70ba6240e/examples/AsyncHTTPRequest/AsyncHTTPRequest.ino#L38-L184
206207

207208

208209
---
209210

210-
#### 2. File [defines.h](examples/AsyncHTTPRequest/defines.h)
211+
#### 2. File [defines.h](https://github.com/khoih-prog/AsyncHTTPRequest_Teensy41/tree/main/examples/AsyncHTTPRequest/defines.h)
211212

212-
https://github.com/khoih-prog/AsyncHTTPRequest_Teensy41/blob/558ddadd9345b15f35a53fa6048dbaeb101f3d11/examples/AsyncHTTPRequest/defines.h#L16-L50
213+
https://github.com/khoih-prog/AsyncHTTPRequest_Teensy41/blob/7a4784ab17a50d3208e7d7b24b24d9e70ba6240e/examples/AsyncHTTPRequest/defines.h#L16-L50
213214

214215

215216
---
@@ -220,110 +221,110 @@ https://github.com/khoih-prog/AsyncHTTPRequest_Teensy41/blob/558ddadd9345b15f35a
220221
### Debug Terminal Output Samples
221222

222223

223-
#### 1. [AsyncHTTPRequest](examples/AsyncHTTPRequest) on TEENSY 4.1
224+
#### 1. [AsyncHTTPRequest](https://github.com/khoih-prog/AsyncHTTPRequest_Teensy41/tree/main/examples/AsyncHTTPRequest) on TEENSY 4.1
224225

225226

226227
```cpp
227228
Start AsyncHTTPRequest on TEENSY 4.1
228-
AsyncHTTPRequest_Teensy41 v1.9.2
229+
AsyncHTTPRequest_Teensy41 v1.10.0
229230
Initialize Ethernet using DHCP => Connected! IP address:192.168.2.107
230231

231232
**************************************
232233
abbreviation: EST
233234
client_ip: aaa.bbb.ccc.ddd
234-
datetime: 2022-11-10T13:30:13.641964-05:00
235-
day_of_week: 4
236-
day_of_year: 314
235+
datetime: 2023-01-31T23:54:16.675525-05:00
236+
day_of_week: 2
237+
day_of_year: 31
237238
dst: false
238239
dst_from:
239240
dst_offset: 0
240241
dst_until:
241242
raw_offset: -18000
242243
timezone: America/Toronto
243-
unixtime: 1668105013
244-
utc_datetime: 2022-11-10T18:30:13.641964+00:00
244+
unixtime: 1675227256
245+
utc_datetime: 2023-02-01T04:54:16.675525+00:00
245246
utc_offset: -05:00
246-
week_number: 45
247+
week_number: 5
247248
**************************************
248249

249250
**************************************
250251
abbreviation: EST
251252
client_ip: aaa.bbb.ccc.ddd
252-
datetime: 2022-11-10T13:30:23.988273-05:00
253-
day_of_week: 4
254-
day_of_year: 314
253+
datetime: 2023-01-31T23:55:16.675337-05:00
254+
day_of_week: 2
255+
day_of_year: 31
255256
dst: false
256257
dst_from:
257258
dst_offset: 0
258259
dst_until:
259260
raw_offset: -18000
260261
timezone: America/Toronto
261-
unixtime: 1668105023
262-
utc_datetime: 2022-11-10T18:30:23.988273+00:00
262+
unixtime: 1675227316
263+
utc_datetime: 2023-02-01T04:55:16.675337+00:00
263264
utc_offset: -05:00
264-
week_number: 45
265+
week_number: 5
265266
**************************************
266267
```
267268

268269
---
269270

270-
#### 2. [AsyncCustomHeader](examples/AsyncCustomHeader) on TEENSY 4.1
271+
#### 2. [AsyncCustomHeader](https://github.com/khoih-prog/AsyncHTTPRequest_Teensy41/tree/main/examples/AsyncCustomHeader) on TEENSY 4.1
271272

272273

273274
```cpp
274275
Start AsyncCustomHeader on TEENSY 4.1
275-
AsyncHTTPRequest_Teensy41 v1.9.2
276+
AsyncHTTPRequest_Teensy41 v1.10.0
276277
Initialize Ethernet using DHCP => Connected! IP address:192.168.2.107
277278

278279
Sending GET Request to http://worldtimeapi.org/api/timezone/America/Toronto.txt
279280

280281
**************************************
281282
abbreviation: EST
282283
client_ip: aaa.bbb.ccc.ddd
283-
datetime: 2022-11-10T13:30:34.026965-05:00
284-
day_of_week: 4
285-
day_of_year: 314
284+
datetime: 2023-01-31T23:56:16.674942-05:00
285+
day_of_week: 2
286+
day_of_year: 31
286287
dst: false
287288
dst_from:
288289
dst_offset: 0
289290
dst_until:
290291
raw_offset: -18000
291292
timezone: America/Toronto
292-
unixtime: 1668105034
293-
utc_datetime: 2022-11-10T18:30:34.026965+00:00
293+
unixtime: 1675227376
294+
utc_datetime: 2023-02-01T04:56:16.674942+00:00
294295
utc_offset: -05:00
295-
week_number: 45
296+
week_number: 5
296297
**************************************
297298

298299
Sending GET Request to http://worldtimeapi.org/api/timezone/America/Toronto.txt
299300

300301
**************************************
301302
abbreviation: EST
302303
client_ip: aaa.bbb.ccc.ddd
303-
datetime: 2022-11-10T13:30:43.989930-05:00
304-
day_of_week: 4
305-
day_of_year: 314
304+
datetime: 2023-01-31T23:57:16.675848-05:00
305+
day_of_week: 2
306+
day_of_year: 31
306307
dst: false
307308
dst_from:
308309
dst_offset: 0
309310
dst_until:
310311
raw_offset: -18000
311312
timezone: America/Toronto
312-
unixtime: 1668105043
313-
utc_datetime: 2022-11-10T18:30:43.989930+00:00
313+
unixtime: 1675227436
314+
utc_datetime: 2023-02-01T04:57:16.675848+00:00
314315
utc_offset: -05:00
315-
week_number: 45
316+
week_number: 5
316317
**************************************
317318
```
318319

319320

320321
---
321322

322-
#### 3. [AsyncDweetGET](examples/AsyncDweetGET) on TEENSY 4.1
323+
#### 3. [AsyncDweetGET](https://github.com/khoih-prog/AsyncHTTPRequest_Teensy41/tree/main/examples/AsyncDweetGET) on TEENSY 4.1
323324

324325
```cpp
325326
Start AsyncDweetGET on TEENSY 4.1
326-
AsyncHTTPRequest_Teensy41 v1.9.2
327+
AsyncHTTPRequest_Teensy41 v1.10.0
327328
Initialize Ethernet using DHCP => Connected! IP address:192.168.2.107
328329

329330
**************************************
@@ -336,11 +337,11 @@ Actual value: 66
336337
337338
---
338339
339-
#### 4. [AsyncDweetPOST](examples/AsyncDweetPOST) on TEENSY 4.1
340+
#### 4. [AsyncDweetPOST](https://github.com/khoih-prog/AsyncHTTPRequest_Teensy41/tree/main/examples/AsyncDweetPOST) on TEENSY 4.1
340341
341342
```cpp
342343
Start AsyncDweetPOST on TEENSY 4.1
343-
AsyncHTTPRequest_Teensy41 v1.9.2
344+
AsyncHTTPRequest_Teensy41 v1.10.0
344345
Initialize Ethernet using DHCP => Connected! IP address:192.168.2.107
345346
346347
Making new POST request
@@ -355,48 +356,48 @@ Actual value: 1007
355356

356357
---
357358

358-
#### 5. [AsyncSimpleGET](examples/AsyncSimpleGET) on TEENSY 4.1
359+
#### 5. [AsyncSimpleGET](https://github.com/khoih-prog/AsyncHTTPRequest_Teensy41/tree/main/examples/AsyncSimpleGET) on TEENSY 4.1
359360

360361

361362
```cpp
362363
Start AsyncSimpleGET on TEENSY 4.1
363-
AsyncHTTPRequest_Teensy41 v1.9.2
364+
AsyncHTTPRequest_Teensy41 v1.10.0
364365
Initialize Ethernet using DHCP => Connected! IP address:192.168.2.107
365366

366367
**************************************
367368
abbreviation: EST
368369
client_ip: aaa.bbb.ccc.ddd
369-
datetime: 2022-11-10T13:31:03.990079-05:00
370-
day_of_week: 4
371-
day_of_year: 314
370+
datetime: 2023-01-31T23:58:16.676610-05:00
371+
day_of_week: 2
372+
day_of_year: 31
372373
dst: false
373374
dst_from:
374375
dst_offset: 0
375376
dst_until:
376377
raw_offset: -18000
377378
timezone: America/Toronto
378-
unixtime: 1668105063
379-
utc_datetime: 2022-11-10T18:31:03.990079+00:00
379+
unixtime: 1675227496
380+
utc_datetime: 2023-02-01T04:58:16.676610+00:00
380381
utc_offset: -05:00
381-
week_number: 45
382+
week_number: 5
382383
**************************************
383384

384385
**************************************
385386
abbreviation: EST
386387
client_ip: aaa.bbb.ccc.ddd
387-
datetime: 2022-11-10T13:31:14.045606-05:00
388-
day_of_week: 4
389-
day_of_year: 314
388+
datetime: 2023-01-31T23:59:16.675139-05:00
389+
day_of_week: 2
390+
day_of_year: 31
390391
dst: false
391392
dst_from:
392393
dst_offset: 0
393394
dst_until:
394395
raw_offset: -18000
395396
timezone: America/Toronto
396-
unixtime: 1668105074
397-
utc_datetime: 2022-11-10T18:31:14.045606+00:00
397+
unixtime: 1675227556
398+
utc_datetime: 2023-02-01T04:59:16.675139+00:00
398399
utc_offset: -05:00
399-
week_number: 45
400+
week_number: 5
400401
**************************************
401402
```
402403

@@ -452,6 +453,9 @@ Submit issues to: [AsyncHTTPRequest_Teensy41 issues](https://github.com/khoih-pr
452453
9. Fix bug of wrong `reqStates`
453454
10. Default to reconnect to the same `host:port` after connected for new HTTP sites.
454455
11. Use `allman astyle` and add `utils`
456+
11. Fix `_parseURL()` bug. Check [Bug with _parseURL() #21](https://github.com/khoih-prog/AsyncHTTPSRequest_Generic/issues/21)
457+
12. Improve `README.md` so that links can be used in other sites, such as `PIO`
458+
455459

456460
---
457461
---

0 commit comments

Comments
 (0)