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

Commit 06cc68e

Browse files
authored
v1.2.0
### Releases v1.2.0 1. Restore cpp code besides Impl.h code to use in case of `multiple definition` linker error. See [`Change Implementation to seperate *.h and *.cpp file instead of *.h and *-Impl.h`](#38) and [`Support building in PlatformIO PR`](#20). SSee [**HOWTO Fix `Multiple Definitions` Linker Error**](https://github.com/khoih-prog/ESP_WiFiManager#HOWTO-Fix-Multiple-Definitions-Linker-Error) 2. Fix bug [/close does not close the config portal](khoih-prog/ESPAsync_WiFiManager#16).
1 parent ff1368c commit 06cc68e

File tree

27 files changed

+5601
-214
lines changed

27 files changed

+5601
-214
lines changed

README.md

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ Thanks to [cancodr](https://github.com/cancodr) for requesting an enhancement in
3838
---
3939
---
4040

41+
### Releases v1.2.0
42+
43+
1. Restore cpp code besides Impl.h code to use in case of `multiple definition` linker error. See [`Change Implementation to seperate *.h and *.cpp file instead of *.h and *-Impl.h`](https://github.com/khoih-prog/ESP_WiFiManager/issues/38) and [`Support building in PlatformIO PR`](https://github.com/khoih-prog/ESP_WiFiManager/pull/20). SSee [**HOWTO Fix `Multiple Definitions` Linker Error**](https://github.com/khoih-prog/ESP_WiFiManager#HOWTO-Fix-Multiple-Definitions-Linker-Error)
44+
2. Fix bug [/close does not close the config portal](https://github.com/khoih-prog/ESPAsync_WiFiManager/issues/16).
45+
4146
### Releases v1.1.2
4247

4348
1. Fix bug in examples.
@@ -147,6 +152,25 @@ The best and easiest way is to use `Arduino Library Manager`. Search for `ESP_Wi
147152
---
148153
---
149154

155+
### HOWTO Fix `Multiple Definitions` Linker Error
156+
157+
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.
158+
159+
To use the old standard cpp way, locate this library' directory, then just
160+
161+
1. **Delete the all the files in src directory.**
162+
2. **Copy all the files in src_cpp directory into src.**
163+
3. Close then reopen the application code in Arduino IDE, etc. to recompile from scratch.
164+
165+
To re-use the new h-only way, just
166+
167+
1. **Delete the all the files in src directory.**
168+
2. **Copy the files in src_h directory into src.**
169+
3. Close then reopen the application code in Arduino IDE, etc. to recompile from scratch.
170+
171+
---
172+
---
173+
150174
## How It Works
151175

152176
- The [ConfigOnSwitch](examples/ConfigOnSwitch) example shows how it works and should be used as the basis for a sketch that uses this library.
@@ -2321,6 +2345,11 @@ Submit issues to: [ESP_WiFiManager issues](https://github.com/khoih-prog/ESP_WiF
23212345
---
23222346
---
23232347

2348+
### Releases v1.2.0
2349+
2350+
1. Restore cpp code besides Impl.h code to use in case of `multiple definition` linker error. See [`Change Implementation to seperate *.h and *.cpp file instead of *.h and *-Impl.h`](https://github.com/khoih-prog/ESP_WiFiManager/issues/38) and [`Support building in PlatformIO PR`](https://github.com/khoih-prog/ESP_WiFiManager/pull/20)
2351+
2. Fix bug [/close does not close the config portal](https://github.com/khoih-prog/ESPAsync_WiFiManager/issues/16).
2352+
23242353
### Releases v1.1.2
23252354

23262355
1. Fix bug in examples.
@@ -2432,7 +2461,7 @@ See [KenTaylor's version](https://github.com/kentaylor/WiFiManager) for previous
24322461
- [Issue #25: API call /r doesnt clear credentials](https://github.com/khoih-prog/ESP_WiFiManager/issues/25), [Issue #26: softAP with custom IP not working](https://github.com/khoih-prog/ESP_WiFiManager/issues/26) and [Issue #27: CORS protection fires up with AJAX](https://github.com/khoih-prog/ESP_WiFiManager/issues/27) leading to [ESP_WiFiManager v1.0.11](https://github.com/khoih-prog/ESP_WiFiManager/releases/tag/v1.0.11).
24332462
7. Thanks to [Marko](https://github.com/wackoo-arduino) for agreeing to contribute the sample code dealing with MQTT which the [ConfigOnSwitchFS_MQTT_Ptr](examples/ConfigOnSwitchFS_MQTT_Ptr) is based on. See [Custom MQTT parameters using Wifi Manager](https://forum.arduino.cc/index.php?topic=692108.75).
24342463
8. Thanks to [05prateek](https://github.com/05prateek) for reporting [Stationmode Static IP changes to dhcp when esp8266 is restarted](https://github.com/khoih-prog/ESP_WiFiManager/issues/28) bug which is fixed in v1.0.11 by enhance autoConnect() function.
2435-
2464+
9. Thanks to [Egor](https://github.com/eg321) and [HenrikW](https://github.com/Invento3D) to make [`Support building in PlatformIO PR`](https://github.com/khoih-prog/ESP_WiFiManager/pull/20) and post issue [`Change Implementation to seperate *.h and *.cpp file instead of *.h and *-Impl.h`](https://github.com/khoih-prog/ESP_WiFiManager/issues/38) to address the `multiple definition` linker error in certain cases, leading to v1.2.0
24362465

24372466

24382467
<table>
@@ -2448,6 +2477,8 @@ See [KenTaylor's version](https://github.com/kentaylor/WiFiManager) for previous
24482477
<td align="center"><a href="https://github.com/AlesSt"><img src="https://github.com/AlesSt.png" width="100px;" alt="AlesSt"/><br /><sub><b>⭐️ AlesSt</b></sub></a><br /></td>
24492478
<td align="center"><a href="https://github.com/wackoo-arduino"><img src="https://github.com/wackoo-arduino.png" width="100px;" alt="wackoo-arduino"/><br /><sub><b>Marko</b></sub></a><br /></td>
24502479
<td align="center"><a href="https://github.com/05prateek"><img src="https://github.com/05prateek.png" width="100px;" alt="05prateek"/><br /><sub><b>05prateek</b></sub></a><br /></td>
2480+
<td align="center"><a href="https://github.com/eg321"><img src="https://github.com/eg321.png" width="100px;" alt="eg321"/><br /><sub><b>Egor</b></sub></a><br /></td>
2481+
<td align="center"><a href="https://github.com/Invento3D"><img src="https://github.com/Invento3D.png" width="100px;" alt="Invento3D"/><br /><sub><b>HenrikW</b></sub></a><br /></td>
24512482
</tr>
24522483
</table>
24532484

examples/AutoConnect/AutoConnect.ino

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
1111
Built by Khoi Hoang https://github.com/khoih-prog/ESP_WiFiManager
1212
Licensed under MIT license
13+
Version: 1.2.0
14+
1315
Version Modified By Date Comments
1416
------- ----------- ---------- -----------
1517
1.0.0 K Hoang 07/10/2019 Initial coding
@@ -28,6 +30,7 @@
2830
1.1.0 K Hoang 28/08/2020 Add MultiWiFi feature to autoconnect to best WiFi at runtime
2931
1.1.1 K Hoang 30/08/2020 Add setCORSHeader function to allow flexible CORS. Fix typo and minor improvement.
3032
1.1.2 K Hoang 17/08/2020 Fix bug. Add example.
33+
1.2.0 K Hoang 09/10/2020 Restore cpp code besides Impl.h code to use if linker error. Fix bug.
3134
*****************************************************************************************************************************/
3235
#if !( defined(ESP8266) || defined(ESP32) )
3336
#error This code is intended to run on the ESP8266 or ESP32 platform! Please check your Tools->Board setting.

examples/AutoConnectWithFSParameters/AutoConnectWithFSParameters.ino

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
1111
Built by Khoi Hoang https://github.com/khoih-prog/ESP_WiFiManager
1212
Licensed under MIT license
13+
Version: 1.2.0
14+
1315
Version Modified By Date Comments
1416
------- ----------- ---------- -----------
1517
1.0.0 K Hoang 07/10/2019 Initial coding
@@ -28,6 +30,7 @@
2830
1.1.0 K Hoang 28/08/2020 Add MultiWiFi feature to autoconnect to best WiFi at runtime
2931
1.1.1 K Hoang 30/08/2020 Add setCORSHeader function to allow flexible CORS. Fix typo and minor improvement.
3032
1.1.2 K Hoang 17/08/2020 Fix bug. Add example.
33+
1.2.0 K Hoang 09/10/2020 Restore cpp code besides Impl.h code to use if linker error. Fix bug.
3134
*****************************************************************************************************************************/
3235
#if !( defined(ESP8266) || defined(ESP32) )
3336
#error This code is intended to run on the ESP8266 or ESP32 platform! Please check your Tools->Board setting.

examples/AutoConnectWithFeedback/AutoConnectWithFeedback.ino

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
1111
Built by Khoi Hoang https://github.com/khoih-prog/ESP_WiFiManager
1212
Licensed under MIT license
13+
Version: 1.2.0
14+
1315
Version Modified By Date Comments
1416
------- ----------- ---------- -----------
1517
1.0.0 K Hoang 07/10/2019 Initial coding
@@ -28,6 +30,7 @@
2830
1.1.0 K Hoang 28/08/2020 Add MultiWiFi feature to autoconnect to best WiFi at runtime
2931
1.1.1 K Hoang 30/08/2020 Add setCORSHeader function to allow flexible CORS. Fix typo and minor improvement.
3032
1.1.2 K Hoang 17/08/2020 Fix bug. Add example.
33+
1.2.0 K Hoang 09/10/2020 Restore cpp code besides Impl.h code to use if linker error. Fix bug.
3134
*****************************************************************************************************************************/
3235
#if !( defined(ESP8266) || defined(ESP32) )
3336
#error This code is intended to run on the ESP8266 or ESP32 platform! Please check your Tools->Board setting.

examples/AutoConnectWithFeedbackLED/AutoConnectWithFeedbackLED.ino

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
1111
Built by Khoi Hoang https://github.com/khoih-prog/ESP_WiFiManager
1212
Licensed under MIT license
13+
Version: 1.2.0
14+
1315
Version Modified By Date Comments
1416
------- ----------- ---------- -----------
1517
1.0.0 K Hoang 07/10/2019 Initial coding
@@ -28,6 +30,7 @@
2830
1.1.0 K Hoang 28/08/2020 Add MultiWiFi feature to autoconnect to best WiFi at runtime
2931
1.1.1 K Hoang 30/08/2020 Add setCORSHeader function to allow flexible CORS. Fix typo and minor improvement.
3032
1.1.2 K Hoang 17/08/2020 Fix bug. Add example.
33+
1.2.0 K Hoang 09/10/2020 Restore cpp code besides Impl.h code to use if linker error. Fix bug.
3134
*****************************************************************************************************************************/
3235
#if !( defined(ESP8266) || defined(ESP32) )
3336
#error This code is intended to run on the ESP8266 or ESP32 platform! Please check your Tools->Board setting.

examples/ConfigOnDRD_FS_MQTT_Ptr/ConfigOnDRD_FS_MQTT_Ptr.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
1414
Built by Khoi Hoang https://github.com/khoih-prog/ESP_WiFiManager
1515
Licensed under MIT license
16-
Version: 1.1.2
16+
Version: 1.2.0
1717
1818
Version Modified By Date Comments
1919
------- ----------- ---------- -----------
@@ -33,6 +33,7 @@
3333
1.1.0 K Hoang 28/08/2020 Add MultiWiFi feature to autoconnect to best WiFi at runtime
3434
1.1.1 K Hoang 30/08/2020 Add setCORSHeader function to allow flexible CORS. Fix typo and minor improvement.
3535
1.1.2 K Hoang 17/08/2020 Fix bug. Add example.
36+
1.2.0 K Hoang 09/10/2020 Restore cpp code besides Impl.h code to use if linker error. Fix bug.
3637
*****************************************************************************************************************************/
3738
/****************************************************************************************************************************
3839
This example will open a Config Portal when there is no stored WiFi Credentials or when a DRD is detected.

0 commit comments

Comments
 (0)