9
9
<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 >
10
10
<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 >
11
11
12
+
12
13
---
13
14
---
14
15
29
30
* [ 1. For Teensy boards] ( #1-for-teensy-boards )
30
31
* [ HOWTO Fix ` Multiple Definitions ` Linker Error] ( #howto-fix-multiple-definitions-linker-error )
31
32
* [ 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)
38
39
* [ Example AsyncHTTPRequest] ( #example-asynchttprequest )
39
40
* [ 1. File AsyncHTTPRequest.ino] ( #1-file-asynchttprequestino )
40
41
* [ 2. File defines.h] ( #2-file-definesh )
@@ -106,8 +107,8 @@ This library is based on, modified from:
106
107
## Prerequisites
107
108
108
109
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.
111
112
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 )
112
113
113
114
---
@@ -177,7 +178,7 @@ in many files. But be sure to use the following `.h` file **in just 1 `.h`, `.cp
177
178
#include " AsyncHTTPRequest_Teensy41.h" // https://github.com/khoih-prog/AsyncHTTPRequest_Teensy41
178
179
```
179
180
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.
181
182
182
183
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 )
183
184
@@ -188,28 +189,28 @@ Have a look at the discussion in [Different behaviour using the src_cpp or src_h
188
189
189
190
### Examples
190
191
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)
197
198
198
199
199
200
---
200
201
201
- ### Example [ AsyncHTTPRequest] ( examples/AsyncHTTPRequest )
202
+ ### Example [ AsyncHTTPRequest] ( https://github.com/khoih-prog/AsyncHTTPRequest_Teensy41/tree/main/ examples/AsyncHTTPRequest)
202
203
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)
204
205
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
206
207
207
208
208
209
---
209
210
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)
211
212
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
213
214
214
215
215
216
---
@@ -220,110 +221,110 @@ https://github.com/khoih-prog/AsyncHTTPRequest_Teensy41/blob/558ddadd9345b15f35a
220
221
### Debug Terminal Output Samples
221
222
222
223
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
224
225
225
226
226
227
``` cpp
227
228
Start AsyncHTTPRequest on TEENSY 4.1
228
- AsyncHTTPRequest_Teensy41 v1.9.2
229
+ AsyncHTTPRequest_Teensy41 v1.10.0
229
230
Initialize Ethernet using DHCP => Connected! IP address:192.168.2.107
230
231
231
232
**************************************
232
233
abbreviation: EST
233
234
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
237
238
dst: false
238
239
dst_from:
239
240
dst_offset: 0
240
241
dst_until:
241
242
raw_offset: -18000
242
243
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
245
246
utc_offset: -05 :00
246
- week_number: 45
247
+ week_number: 5
247
248
**************************************
248
249
249
250
**************************************
250
251
abbreviation: EST
251
252
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
255
256
dst: false
256
257
dst_from:
257
258
dst_offset: 0
258
259
dst_until:
259
260
raw_offset: -18000
260
261
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
263
264
utc_offset: -05 :00
264
- week_number: 45
265
+ week_number: 5
265
266
**************************************
266
267
```
267
268
268
269
---
269
270
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
271
272
272
273
273
274
``` cpp
274
275
Start AsyncCustomHeader on TEENSY 4.1
275
- AsyncHTTPRequest_Teensy41 v1.9.2
276
+ AsyncHTTPRequest_Teensy41 v1.10.0
276
277
Initialize Ethernet using DHCP => Connected! IP address:192.168.2.107
277
278
278
279
Sending GET Request to http:// worldtimeapi.org/api/timezone/America/Toronto.txt
279
280
280
281
**************************************
281
282
abbreviation: EST
282
283
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
286
287
dst: false
287
288
dst_from:
288
289
dst_offset: 0
289
290
dst_until:
290
291
raw_offset: -18000
291
292
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
294
295
utc_offset: -05 :00
295
- week_number: 45
296
+ week_number: 5
296
297
**************************************
297
298
298
299
Sending GET Request to http:// worldtimeapi.org/api/timezone/America/Toronto.txt
299
300
300
301
**************************************
301
302
abbreviation: EST
302
303
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
306
307
dst: false
307
308
dst_from:
308
309
dst_offset: 0
309
310
dst_until:
310
311
raw_offset: -18000
311
312
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
314
315
utc_offset: -05 :00
315
- week_number: 45
316
+ week_number: 5
316
317
**************************************
317
318
```
318
319
319
320
320
321
---
321
322
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
323
324
324
325
``` cpp
325
326
Start AsyncDweetGET on TEENSY 4.1
326
- AsyncHTTPRequest_Teensy41 v1.9.2
327
+ AsyncHTTPRequest_Teensy41 v1.10.0
327
328
Initialize Ethernet using DHCP => Connected! IP address:192.168.2.107
328
329
329
330
**************************************
@@ -336,11 +337,11 @@ Actual value: 66
336
337
337
338
---
338
339
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
340
341
341
342
```cpp
342
343
Start AsyncDweetPOST on TEENSY 4.1
343
- AsyncHTTPRequest_Teensy41 v1.9.2
344
+ AsyncHTTPRequest_Teensy41 v1.10.0
344
345
Initialize Ethernet using DHCP => Connected! IP address:192.168.2.107
345
346
346
347
Making new POST request
@@ -355,48 +356,48 @@ Actual value: 1007
355
356
356
357
---
357
358
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
359
360
360
361
361
362
``` cpp
362
363
Start AsyncSimpleGET on TEENSY 4.1
363
- AsyncHTTPRequest_Teensy41 v1.9.2
364
+ AsyncHTTPRequest_Teensy41 v1.10.0
364
365
Initialize Ethernet using DHCP => Connected! IP address:192.168.2.107
365
366
366
367
**************************************
367
368
abbreviation: EST
368
369
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
372
373
dst: false
373
374
dst_from:
374
375
dst_offset: 0
375
376
dst_until:
376
377
raw_offset: -18000
377
378
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
380
381
utc_offset: -05 :00
381
- week_number: 45
382
+ week_number: 5
382
383
**************************************
383
384
384
385
**************************************
385
386
abbreviation: EST
386
387
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
390
391
dst: false
391
392
dst_from:
392
393
dst_offset: 0
393
394
dst_until:
394
395
raw_offset: -18000
395
396
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
398
399
utc_offset: -05 :00
399
- week_number: 45
400
+ week_number: 5
400
401
**************************************
401
402
```
402
403
@@ -452,6 +453,9 @@ Submit issues to: [AsyncHTTPRequest_Teensy41 issues](https://github.com/khoih-pr
452
453
9 . Fix bug of wrong ` reqStates `
453
454
10 . Default to reconnect to the same ` host:port ` after connected for new HTTP sites.
454
455
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
+
455
459
456
460
---
457
461
---
0 commit comments