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

Commit a050565

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`](khoih-prog/ESP_WiFiManager#38) and [`Support building in PlatformIO PR`](khoih-prog/ESP_WiFiManager#20). Also have a look at [**HOWTO Fix Multiple Definitions Linker Error**](https://github.com/khoih-prog/ESPAsync_WiFiManager#HOWTO-Fix-Multiple-Definitions-Linker-Error) 2. Fix bug [/close does not close the config portal](#16).
1 parent ec749bf commit a050565

File tree

31 files changed

+6036
-172
lines changed

31 files changed

+6036
-172
lines changed

README.md

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@
2828
To appreciate the power of the [ESPAsyncWebServer](https://github.com/me-no-dev/ESPAsyncWebServer) and underlying Async libraries, please compare the more efficient [Async_ESP32_FSWebServer example](examples/Async_ESP32_FSWebServer) example with the complicated twin [ESP32_FSWebServer](https://github.com/khoih-prog/ESP_WiFiManager/tree/master/examples/ESP32_FSWebServer).
2929

3030
---
31+
---
32+
33+
### Releases v1.2.0
34+
35+
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). Also have a look at [**HOWTO Fix Multiple Definitions Linker Error**](https://github.com/khoih-prog/ESPAsync_WiFiManager#HOWTO-Fix-Multiple-Definitions-Linker-Error)
36+
2. Fix bug [/close does not close the config portal](https://github.com/khoih-prog/ESPAsync_WiFiManager/issues/16).
3137

3238
### Releases v1.1.2
3339

@@ -96,6 +102,31 @@ The best and easiest way is to use `Arduino Library Manager`. Search for `ESPAsy
96102
3. Install **ESPAsync_WiFiManager** library by using [Library Manager](https://docs.platformio.org/en/latest/librarymanager/). Search for **ESPAsync_WiFiManager** in [Platform.io Author's Libraries](https://platformio.org/lib/search?query=author:%22Khoi%20Hoang%22)
97103
4. Use included [platformio.ini](platformio/platformio.ini) file from examples to ensure that all dependent libraries will installed automatically. Please visit documentation for the other options and examples at [Project Configuration File](https://docs.platformio.org/page/projectconf.html)
98104

105+
---
106+
---
107+
108+
### HOWTO Fix `Multiple Definitions` Linker Error
109+
110+
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 2 more source directories
111+
112+
1. **scr_h** for new h-only files
113+
2. **src_cpp** for standard h/cpp files
114+
115+
besides the standard **src** directory.
116+
117+
To use the old standard cpp way, locate this library' directory, then just
118+
119+
1. **Delete the all the files in src directory.**
120+
2. **Copy all the files in src_cpp directory into src.**
121+
3. Close then reopen the application code in Arduino IDE, etc. to recompile from scratch.
122+
123+
To re-use the new h-only way, just
124+
125+
1. **Delete the all the files in src directory.**
126+
2. **Copy the files in src_h directory into src.**
127+
3. Close then reopen the application code in Arduino IDE, etc. to recompile from scratch.
128+
129+
---
99130
---
100131

101132
## How It Works
@@ -2441,6 +2472,11 @@ Submit issues to: [ESPAsync_WiFiManager issues](https://github.com/khoih-prog/ES
24412472
---
24422473
---
24432474

2475+
### Releases v1.2.0
2476+
2477+
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). Also have a look at [**HOWTO Fix Multiple Definitions Linker Error**](https://github.com/khoih-prog/ESPAsync_WiFiManager#HOWTO-Fix-Multiple-Definitions-Linker-Error)
2478+
2. Fix bug [/close does not close the config portal](https://github.com/khoih-prog/ESPAsync_WiFiManager/issues/16).
2479+
24442480
### Releases v1.1.2
24452481

24462482
1. Fix bug in examples.
@@ -2478,7 +2514,7 @@ to use the better **asynchronous** [ESPAsyncWebServer](https://github.com/me-no-
24782514
2. Thanks to [Hristo Gochkov](https://github.com/me-no-dev) for great [ESPAsyncWebServer Library](https://github.com/me-no-dev/ESPAsyncWebServer)
24792515
3. Thanks to good work of [Miguel Alexandre Wisintainer](https://github.com/tcpipchip) for working with, developing, debugging and testing.
24802516
4. Thanks to [cancodr](https://github.com/cancodr) for requesting an enhancement in [Issue #29: Is it possible to use AsyncWebServer.h instead of WebServer.h?](https://github.com/khoih-prog/ESP_WiFiManager/issues/29), leading to this [ESPAsync_WiFiManager Library](https://github.com/khoih-prog/ESPAsync_WiFiManager).
2481-
2517+
5. Thanks to [Marcel Stör](https://github.com/marcelstoer) for reporting [/close does not close the config portal](https://github.com/khoih-prog/ESPAsync_WiFiManager/issues/16) bug which is fixed in v1.2.0.
24822518

24832519
<table>
24842520
<tr>
@@ -2488,6 +2524,9 @@ to use the better **asynchronous** [ESPAsyncWebServer](https://github.com/me-no-
24882524
<td align="center"><a href="https://github.com/alanswx"><img src="https://github.com/alanswx.png" width="100px;" alt="alanswx"/><br /><sub><b>⭐️ Alan Steremberg</b></sub></a><br /></td>
24892525
<td align="center"><a href="https://github.com/tcpipchip"><img src="https://github.com/tcpipchip.png" width="100px;" alt="tcpipchip"/><br /><sub><b>Miguel Wisintainer</b></sub></a><br /></td>
24902526
<td align="center"><a href="https://github.com/cancodr"><img src="https://github.com/cancodr.png" width="100px;" alt="cancodr"/><br /><sub><b>cancodr</b></sub></a><br /></td>
2527+
</tr>
2528+
<tr>
2529+
<td align="center"><a href="https://github.com/marcelstoer"><img src="https://github.com/marcelstoer.png" width="100px;" alt="marcelstoer"/><br /><sub><b>Marcel Stör</b></sub></a><br /></td>
24912530
</tr>
24922531
</table>
24932532

examples/Async_AutoConnect/Async_AutoConnect.ino

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,16 @@
1313
1414
Built by Khoi Hoang https://github.com/khoih-prog/ESPAsync_WiFiManager
1515
Licensed under MIT license
16-
Version: Version: 1.1.2
16+
Version: 1.2.0
1717
18-
Version Modified By Date Comments
18+
Version Modified By Date Comments
1919
------- ----------- ---------- -----------
20-
1.0.11 K Hoang 21/08/2020 Initial coding to use (ESP)AsyncWebServer instead of (ESP8266)WebServer. Bump up to v1.0.11
21-
to sync with ESP_WiFiManager v1.0.11
22-
1.1.1 K Hoang 29/08/2020 Add MultiWiFi feature to autoconnect to best WiFi at runtime to sync with
23-
ESP_WiFiManager v1.1.1. Add setCORSHeader function to allow flexible CORS
24-
1.1.2 K Hoang 17/09/2020 Fix bug in examples.
20+
1.0.11 K Hoang 21/08/2020 Initial coding to use (ESP)AsyncWebServer instead of (ESP8266)WebServer. Bump up to v1.0.11
21+
to sync with ESP_WiFiManager v1.0.11
22+
1.1.1 K Hoang 29/08/2020 Add MultiWiFi feature to autoconnect to best WiFi at runtime to sync with
23+
ESP_WiFiManager v1.1.1. Add setCORSHeader function to allow flexible CORS
24+
1.1.2 K Hoang 17/09/2020 Fix bug in examples.
25+
1.2.0 K Hoang 15/10/2020 Restore cpp code besides Impl.h code to use if linker error. Fix bug.
2526
*****************************************************************************************************************************/
2627
#if !( defined(ESP8266) || defined(ESP32) )
2728
#error This code is intended to run on the ESP8266 or ESP32 platform! Please check your Tools->Board setting.

examples/Async_AutoConnectWithFSParameters/Async_AutoConnectWithFSParameters.ino

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,16 @@
1313
1414
Built by Khoi Hoang https://github.com/khoih-prog/ESPAsync_WiFiManager
1515
Licensed under MIT license
16-
Version: Version: 1.1.2
16+
Version: 1.2.0
1717
18-
Version Modified By Date Comments
18+
Version Modified By Date Comments
1919
------- ----------- ---------- -----------
20-
1.0.11 K Hoang 21/08/2020 Initial coding to use (ESP)AsyncWebServer instead of (ESP8266)WebServer. Bump up to v1.0.11
21-
to sync with ESP_WiFiManager v1.0.11
22-
1.1.1 K Hoang 29/08/2020 Add MultiWiFi feature to autoconnect to best WiFi at runtime to sync with
23-
ESP_WiFiManager v1.1.1. Add setCORSHeader function to allow flexible CORS
24-
1.1.2 K Hoang 17/09/2020 Fix bug in examples.
20+
1.0.11 K Hoang 21/08/2020 Initial coding to use (ESP)AsyncWebServer instead of (ESP8266)WebServer. Bump up to v1.0.11
21+
to sync with ESP_WiFiManager v1.0.11
22+
1.1.1 K Hoang 29/08/2020 Add MultiWiFi feature to autoconnect to best WiFi at runtime to sync with
23+
ESP_WiFiManager v1.1.1. Add setCORSHeader function to allow flexible CORS
24+
1.1.2 K Hoang 17/09/2020 Fix bug in examples.
25+
1.2.0 K Hoang 15/10/2020 Restore cpp code besides Impl.h code to use if linker error. Fix bug.
2526
*****************************************************************************************************************************/
2627
#if !( defined(ESP8266) || defined(ESP32) )
2728
#error This code is intended to run on the ESP8266 or ESP32 platform! Please check your Tools->Board setting.

examples/Async_AutoConnectWithFSParametersAndCustomIP/Async_AutoConnectWithFSParametersAndCustomIP.ino

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,16 @@
1313
1414
Built by Khoi Hoang https://github.com/khoih-prog/ESPAsync_WiFiManager
1515
Licensed under MIT license
16-
Version: Version: 1.1.2
16+
Version: 1.2.0
1717
18-
Version Modified By Date Comments
18+
Version Modified By Date Comments
1919
------- ----------- ---------- -----------
20-
1.0.11 K Hoang 21/08/2020 Initial coding to use (ESP)AsyncWebServer instead of (ESP8266)WebServer. Bump up to v1.0.11
21-
to sync with ESP_WiFiManager v1.0.11
22-
1.1.1 K Hoang 29/08/2020 Add MultiWiFi feature to autoconnect to best WiFi at runtime to sync with
23-
ESP_WiFiManager v1.1.1. Add setCORSHeader function to allow flexible CORS
24-
1.1.2 K Hoang 17/09/2020 Fix bug in examples.
20+
1.0.11 K Hoang 21/08/2020 Initial coding to use (ESP)AsyncWebServer instead of (ESP8266)WebServer. Bump up to v1.0.11
21+
to sync with ESP_WiFiManager v1.0.11
22+
1.1.1 K Hoang 29/08/2020 Add MultiWiFi feature to autoconnect to best WiFi at runtime to sync with
23+
ESP_WiFiManager v1.1.1. Add setCORSHeader function to allow flexible CORS
24+
1.1.2 K Hoang 17/09/2020 Fix bug in examples.
25+
1.2.0 K Hoang 15/10/2020 Restore cpp code besides Impl.h code to use if linker error. Fix bug.
2526
*****************************************************************************************************************************/
2627

2728
#if !( defined(ESP8266) || defined(ESP32) )

examples/Async_AutoConnectWithFeedback/Async_AutoConnectWithFeedback.ino

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,16 @@
1313
1414
Built by Khoi Hoang https://github.com/khoih-prog/ESPAsync_WiFiManager
1515
Licensed under MIT license
16-
Version: Version: 1.1.2
16+
Version: 1.2.0
1717
18-
Version Modified By Date Comments
18+
Version Modified By Date Comments
1919
------- ----------- ---------- -----------
20-
1.0.11 K Hoang 21/08/2020 Initial coding to use (ESP)AsyncWebServer instead of (ESP8266)WebServer. Bump up to v1.0.11
21-
to sync with ESP_WiFiManager v1.0.11
22-
1.1.1 K Hoang 29/08/2020 Add MultiWiFi feature to autoconnect to best WiFi at runtime to sync with
23-
ESP_WiFiManager v1.1.1. Add setCORSHeader function to allow flexible CORS
24-
1.1.2 K Hoang 17/09/2020 Fix bug in examples.
20+
1.0.11 K Hoang 21/08/2020 Initial coding to use (ESP)AsyncWebServer instead of (ESP8266)WebServer. Bump up to v1.0.11
21+
to sync with ESP_WiFiManager v1.0.11
22+
1.1.1 K Hoang 29/08/2020 Add MultiWiFi feature to autoconnect to best WiFi at runtime to sync with
23+
ESP_WiFiManager v1.1.1. Add setCORSHeader function to allow flexible CORS
24+
1.1.2 K Hoang 17/09/2020 Fix bug in examples.
25+
1.2.0 K Hoang 15/10/2020 Restore cpp code besides Impl.h code to use if linker error. Fix bug.
2526
*****************************************************************************************************************************/
2627
#if !( defined(ESP8266) || defined(ESP32) )
2728
#error This code is intended to run on the ESP8266 or ESP32 platform! Please check your Tools->Board setting.

examples/Async_AutoConnectWithFeedbackLED/Async_AutoConnectWithFeedbackLED.ino

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,16 @@
1313
1414
Built by Khoi Hoang https://github.com/khoih-prog/ESPAsync_WiFiManager
1515
Licensed under MIT license
16-
Version: Version: 1.1.2
16+
Version: 1.2.0
1717
18-
Version Modified By Date Comments
18+
Version Modified By Date Comments
1919
------- ----------- ---------- -----------
20-
1.0.11 K Hoang 21/08/2020 Initial coding to use (ESP)AsyncWebServer instead of (ESP8266)WebServer. Bump up to v1.0.11
21-
to sync with ESP_WiFiManager v1.0.11
22-
1.1.1 K Hoang 29/08/2020 Add MultiWiFi feature to autoconnect to best WiFi at runtime to sync with
23-
ESP_WiFiManager v1.1.1. Add setCORSHeader function to allow flexible CORS
24-
1.1.2 K Hoang 17/09/2020 Fix bug in examples.
20+
1.0.11 K Hoang 21/08/2020 Initial coding to use (ESP)AsyncWebServer instead of (ESP8266)WebServer. Bump up to v1.0.11
21+
to sync with ESP_WiFiManager v1.0.11
22+
1.1.1 K Hoang 29/08/2020 Add MultiWiFi feature to autoconnect to best WiFi at runtime to sync with
23+
ESP_WiFiManager v1.1.1. Add setCORSHeader function to allow flexible CORS
24+
1.1.2 K Hoang 17/09/2020 Fix bug in examples.
25+
1.2.0 K Hoang 15/10/2020 Restore cpp code besides Impl.h code to use if linker error. Fix bug.
2526
*****************************************************************************************************************************/
2627
#if !( defined(ESP8266) || defined(ESP32) )
2728
#error This code is intended to run on the ESP8266 or ESP32 platform! Please check your Tools->Board setting.

examples/Async_ConfigOnDRD_FS_MQTT_Ptr/Async_ConfigOnDRD_FS_MQTT_Ptr.ino

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,16 @@
1313
1414
Built by Khoi Hoang https://github.com/khoih-prog/ESPAsync_WiFiManager
1515
Licensed under MIT license
16-
Version: Version: 1.1.2
16+
Version: 1.2.0
1717
18-
Version Modified By Date Comments
18+
Version Modified By Date Comments
1919
------- ----------- ---------- -----------
20-
1.0.11 K Hoang 21/08/2020 Initial coding to use (ESP)AsyncWebServer instead of (ESP8266)WebServer. Bump up to v1.0.11
21-
to sync with ESP_WiFiManager v1.0.11
22-
1.1.1 K Hoang 29/08/2020 Add MultiWiFi feature to autoconnect to best WiFi at runtime to sync with
23-
ESP_WiFiManager v1.1.1. Add setCORSHeader function to allow flexible CORS
24-
1.1.2 K Hoang 17/09/2020 Fix bug in examples.
20+
1.0.11 K Hoang 21/08/2020 Initial coding to use (ESP)AsyncWebServer instead of (ESP8266)WebServer. Bump up to v1.0.11
21+
to sync with ESP_WiFiManager v1.0.11
22+
1.1.1 K Hoang 29/08/2020 Add MultiWiFi feature to autoconnect to best WiFi at runtime to sync with
23+
ESP_WiFiManager v1.1.1. Add setCORSHeader function to allow flexible CORS
24+
1.1.2 K Hoang 17/09/2020 Fix bug in examples.
25+
1.2.0 K Hoang 15/10/2020 Restore cpp code besides Impl.h code to use if linker error. Fix bug.
2526
*****************************************************************************************************************************/
2627
/****************************************************************************************************************************
2728
This example will open a Config Portal when there is no stored WiFi Credentials or when a DRD is detected.

examples/Async_ConfigOnDoubleReset/Async_ConfigOnDoubleReset.ino

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,16 @@
1313
1414
Built by Khoi Hoang https://github.com/khoih-prog/ESPAsync_WiFiManager
1515
Licensed under MIT license
16-
Version: Version: 1.1.2
16+
Version: 1.2.0
1717
18-
Version Modified By Date Comments
18+
Version Modified By Date Comments
1919
------- ----------- ---------- -----------
20-
1.0.11 K Hoang 21/08/2020 Initial coding to use (ESP)AsyncWebServer instead of (ESP8266)WebServer. Bump up to v1.0.11
21-
to sync with ESP_WiFiManager v1.0.11
22-
1.1.1 K Hoang 29/08/2020 Add MultiWiFi feature to autoconnect to best WiFi at runtime to sync with
23-
ESP_WiFiManager v1.1.1. Add setCORSHeader function to allow flexible CORS
24-
1.1.2 K Hoang 17/09/2020 Fix bug in examples.
20+
1.0.11 K Hoang 21/08/2020 Initial coding to use (ESP)AsyncWebServer instead of (ESP8266)WebServer. Bump up to v1.0.11
21+
to sync with ESP_WiFiManager v1.0.11
22+
1.1.1 K Hoang 29/08/2020 Add MultiWiFi feature to autoconnect to best WiFi at runtime to sync with
23+
ESP_WiFiManager v1.1.1. Add setCORSHeader function to allow flexible CORS
24+
1.1.2 K Hoang 17/09/2020 Fix bug in examples.
25+
1.2.0 K Hoang 15/10/2020 Restore cpp code besides Impl.h code to use if linker error. Fix bug.
2526
*****************************************************************************************************************************/
2627
/****************************************************************************************************************************
2728
This example will open a configuration portal when the reset button is pressed twice.
@@ -263,7 +264,7 @@ bool initialConfig = false;
263264
// Use DHCP
264265
#warning Using DHCP IP
265266
IPAddress stationIP = IPAddress(0, 0, 0, 0);
266-
IPAddress gatewayIP = IPAddress(192, 168, 2, 1);
267+
IPAddress gatewayIP = IPAddress(192, 168, 1, 1);
267268
IPAddress netMask = IPAddress(255, 255, 255, 0);
268269
#else
269270
// Use static IP

examples/Async_ConfigOnStartup/Async_ConfigOnStartup.ino

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,16 @@
1313
1414
Built by Khoi Hoang https://github.com/khoih-prog/ESPAsync_WiFiManager
1515
Licensed under MIT license
16-
Version: Version: 1.1.2
16+
Version: 1.2.0
1717
18-
Version Modified By Date Comments
18+
Version Modified By Date Comments
1919
------- ----------- ---------- -----------
20-
1.0.11 K Hoang 21/08/2020 Initial coding to use (ESP)AsyncWebServer instead of (ESP8266)WebServer. Bump up to v1.0.11
21-
to sync with ESP_WiFiManager v1.0.11
22-
1.1.1 K Hoang 29/08/2020 Add MultiWiFi feature to autoconnect to best WiFi at runtime to sync with
23-
ESP_WiFiManager v1.1.1. Add setCORSHeader function to allow flexible CORS
24-
1.1.2 K Hoang 17/09/2020 Fix bug in examples.
20+
1.0.11 K Hoang 21/08/2020 Initial coding to use (ESP)AsyncWebServer instead of (ESP8266)WebServer. Bump up to v1.0.11
21+
to sync with ESP_WiFiManager v1.0.11
22+
1.1.1 K Hoang 29/08/2020 Add MultiWiFi feature to autoconnect to best WiFi at runtime to sync with
23+
ESP_WiFiManager v1.1.1. Add setCORSHeader function to allow flexible CORS
24+
1.1.2 K Hoang 17/09/2020 Fix bug in examples.
25+
1.2.0 K Hoang 15/10/2020 Restore cpp code besides Impl.h code to use if linker error. Fix bug.
2526
*****************************************************************************************************************************/
2627
/****************************************************************************************************************************
2728
This example will open a configuration portal for 60 seconds when first powered up if the boards has stored WiFi Credentials.

0 commit comments

Comments
 (0)