You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 4, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+31-8Lines changed: 31 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,6 +45,11 @@ Chunked responses are recognized and handled transparently.
45
45
---
46
46
---
47
47
48
+
### Releases v1.0.1
49
+
50
+
1. Restore cpp code besides Impl.h code to use in case of `multiple definition` linker error. Thanks to [Daniel Brunner](https://github.com/0xFEEDC0DE64) to report and make PR in [**Fixed linker errors when included in multiple .cpp files**](https://github.com/khoih-prog/AsyncHTTPRequest_Generic/pull/1). See [**HOWTO Fix `Multiple Definitions` Linker Error**](https://github.com/khoih-prog/AsyncHTTPRequest_Generic#HOWTO-Fix-Multiple-Definitions-Linker-Error)
51
+
52
+
48
53
### Releases v1.0.0
49
54
50
55
1. Initial coding to add support to **STM32F/L/H/G/WB/MP1** using built-in LAN8742A Ethernet (Nucleo-144, DISCOVERY, etc).
@@ -212,6 +217,19 @@ theses files must be copied into the corresponding directory:
212
217
---
213
218
---
214
219
220
+
### HOWTO Fix `Multiple Definitions` Linker Error
221
+
222
+
The current library implementation, using xyz-Impl.h instead of standard xyz.cpp, possibly creates certain `Multiple Definitions` Linker error in certain use cases. Although it's simple to just modify several lines of code, either in the library or in the application, the library is adding a separate source directory, named src_cpp, besides the standard src directory.
223
+
224
+
To use the old standard cpp way, just
225
+
226
+
1.**Rename the h-only src directory into src_h.**
227
+
2.**Then rename the cpp src_cpp directory into src.**
228
+
3. Close then reopen the application code in Arduino IDE, etc. to recompile from scratch.
229
+
230
+
---
231
+
---
232
+
215
233
### Examples
216
234
217
235
Also see examples:
@@ -442,7 +460,7 @@ AsyncHTTPRequest @ IP : 192.168.2.72
442
460
443
461
**************************************
444
462
abbreviation: EDT
445
-
client_ip: 216.154.52.212
463
+
client_ip: aaa.bbb.ccc.ddd
446
464
datetime: 2020-09-13T18:22:59.555816-04:00
447
465
day_of_week: 0
448
466
day_of_year: 257
@@ -459,7 +477,7 @@ week_number: 37
459
477
460
478
**************************************
461
479
abbreviation: EDT
462
-
client_ip: 216.154.52.212
480
+
client_ip: aaa.bbb.ccc.ddd
463
481
datetime: 2020-09-13T18:27:57.586325-04:00
464
482
day_of_week: 0
465
483
day_of_year: 257
@@ -489,7 +507,7 @@ After waiting 3.43 secs more in setup(), connection result is connected. Local I
489
507
H
490
508
**************************************
491
509
abbreviation: EDT
492
-
client_ip: 216.154.52.212
510
+
client_ip: aaa.bbb.ccc.ddd
493
511
datetime: 2020-09-13T19:35:37.951609-04:00
494
512
day_of_week: 0
495
513
day_of_year: 257
@@ -521,7 +539,7 @@ After waiting 2.35 secs more in setup(), connection result is connected. Local I
521
539
H
522
540
**************************************
523
541
abbreviation: EDT
524
-
client_ip: 216.154.52.212
542
+
client_ip: aaa.bbb.ccc.ddd
525
543
datetime: 2020-09-13T19:37:02.118166-04:00
526
544
day_of_week: 0
527
545
day_of_year: 257
@@ -539,7 +557,7 @@ week_number: 37
539
557
HHHHHHHHH HHHHHHHHHH HHHHHHHHHH H
540
558
**************************************
541
559
abbreviation: EDT
542
-
client_ip: 216.154.52.212
560
+
client_ip: aaa.bbb.ccc.ddd
543
561
datetime: 2020-09-13T19:42:01.507586-04:00
544
562
day_of_week: 0
545
563
day_of_year: 257
@@ -570,7 +588,7 @@ HTTP WebServer is @ IP : 192.168.2.81
570
588
571
589
**************************************
572
590
abbreviation: EDT
573
-
client_ip: 216.154.52.212
591
+
client_ip: aaa.bbb.ccc.ddd
574
592
datetime: 2020-09-13T19:56:28.295033-04:00
575
593
day_of_week: 0
576
594
day_of_year: 257
@@ -690,6 +708,10 @@ Submit issues to: [AsyncHTTPRequest_Generic issues](https://github.com/khoih-pro
690
708
---
691
709
---
692
710
711
+
### Releases v1.0.1
712
+
713
+
1. Restore cpp code besides Impl.h code to use in case of `multiple definition` linker error. Thanks to [Daniel Brunner](https://github.com/0xFEEDC0DE64) to report and make PR in [**Fixed linker errors when included in multiple .cpp files**](https://github.com/khoih-prog/AsyncHTTPRequest_Generic/pull/1). See [**HOWTO Fix `Multiple Definitions` Linker Error**](https://github.com/khoih-prog/AsyncHTTPRequest_Generic#HOWTO-Fix-Multiple-Definitions-Linker-Error)
714
+
693
715
### Releases v1.0.0
694
716
695
717
1. Initial coding to add support to **STM32F/L/H/G/WB/MP1** using built-in LAN8742A Ethernet (Nucleo-144, DISCOVERY, etc).
@@ -702,13 +724,14 @@ Submit issues to: [AsyncHTTPRequest_Generic issues](https://github.com/khoih-pro
702
724
703
725
This library is based on, modified, bug-fixed and improved from:
1.[Bob Lemaire's **asyncHTTPrequest Library**](https://github.com/boblemaire/asyncHTTPrequest) to use the better **asynchronous** features of these following Async TCP Libraries : ( [`ESPAsyncTCP`](https://github.com/me-no-dev/ESPAsyncTCP), [`AsyncTCP`](https://github.com/me-no-dev/AsyncTCP), and [`STM32AsyncTCP`](https://github.com/philbowles/STM32AsyncTCP) ).
706
728
707
-
to use the better **asynchronous** features of these following Async TCP Libraries : ( [`ESPAsyncTCP`](https://github.com/me-no-dev/ESPAsyncTCP), [`AsyncTCP`](https://github.com/me-no-dev/AsyncTCP), and [`STM32AsyncTCP`](https://github.com/philbowles/STM32AsyncTCP) ).
729
+
2. Thanks to [Daniel Brunner](https://github.com/0xFEEDC0DE64) to report and make PR in [Fixed linker errors when included in multiple .cpp files](https://github.com/khoih-prog/AsyncHTTPRequest_Generic/pull/1) leading to v1.0.1. See [**HOWTO Fix `Multiple Definitions` Linker Error**](https://github.com/khoih-prog/AsyncHTTPRequest_Generic#HOWTO-Fix-Multiple-Definitions-Linker-Error)
708
730
709
731
<table>
710
732
<tr>
711
733
<td align="center"><a href="https://github.com/boblemaire"><img src="https://github.com/boblemaire.png" width="100px;" alt="boblemaire"/><br /><sub><b>⭐️ Bob Lemaire</b></sub></a><br /></td>
0 commit comments