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

Commit bf9adab

Browse files
authored
v1.10.0 to fix multiple-definitions linker error
### Releases v1.10.0 1. Fix `multiple-definitions` linker error and weird bug related to `src_cpp`. Check [Different behaviour using the src_cpp or src_h lib #80](#80) 2. Optimize library code by using `reference-passing` instead of `value-passing`
1 parent 0b128a3 commit bf9adab

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

README.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@
115115
* [Async_AutoConnect_ESP8266_minimal](examples/Async_AutoConnect_ESP8266_minimal)
116116
* [Async_ConfigOnDRD_ESP32_minimal](examples/Async_ConfigOnDRD_ESP32_minimal)
117117
* [Async_ConfigOnDRD_ESP8266_minimal](examples/Async_ConfigOnDRD_ESP8266_minimal)
118+
* [Multiple-Definitions-Linker-Error demo](#Multiple-Definitions-Linker-Error-demo)
118119
* [Example Async_ConfigOnDRD_FS_MQTT_Ptr](#example-async_configondrd_fs_mqtt_ptr)
119120
* [Debug Terminal Output Samples](#debug-terminal-output-samples)
120121
* [1. Async_ConfigOnDRD_FS_MQTT_Ptr on ESP32_DEV](#1-async_configondrd_fs_mqtt_ptr_medium-on-esp32_dev)
@@ -2083,7 +2084,7 @@ ESPAsync_wifiManager.setRemoveDuplicateAPs(false);
20832084
16. [Async_ESP_FSWebServer](examples/Async_ESP_FSWebServer)
20842085
17. [Async_ESP_FSWebServer_DRD](examples/Async_ESP_FSWebServer_DRD)
20852086
18. [Async_ConfigOnDRD_FS_MQTT_Ptr](examples/Async_ConfigOnDRD_FS_MQTT_Ptr)
2086-
19. [Async_ConfigPortalParamsOnSwitch_TZ](examples/Async_ConfigPortalParamsOnSwitch_TZ) (now support ArduinoJson 6.0.0+ as well as 5.13.5-)
2087+
19. [Async_ConfigOnDoubleReset_TZ](examples/Async_ConfigOnDoubleReset_TZ) (now support ArduinoJson 6.0.0+ as well as 5.13.5-)
20872088

20882089
#### High Complexity
20892090

@@ -2097,6 +2098,10 @@ ESPAsync_wifiManager.setRemoveDuplicateAPs(false);
20972098
3. [Async_ConfigOnDRD_ESP32_minimal](examples/Async_ConfigOnDRD_ESP32_minimal)
20982099
4. [Async_ConfigOnDRD_ESP8266_minimal](examples/Async_ConfigOnDRD_ESP8266_minimal)
20992100

2101+
#### Multiple-Definitions-Linker-Error demo
2102+
2103+
1. [Async_ConfigOnDoubleReset_Multi](examples/Async_ConfigOnDoubleReset_Multi)
2104+
21002105

21012106
---
21022107
---
@@ -2108,7 +2113,8 @@ ESPAsync_wifiManager.setRemoveDuplicateAPs(false);
21082113
#error This code is intended to run on the ESP8266 or ESP32 platform! Please check your Tools->Board setting.
21092114
#endif
21102115

2111-
#define ESP_ASYNC_WIFIMANAGER_VERSION_MIN_TARGET "ESPAsync_WiFiManager v1.10.0"
2116+
#define ESP_ASYNC_WIFIMANAGER_VERSION_MIN_TARGET "ESPAsync_WiFiManager v1.10.0"
2117+
#define ESP_ASYNC_WIFIMANAGER_VERSION_MIN 1010000
21122118

21132119
// Use from 0 to 4. Higher number, more debugging messages and memory usage.
21142120
#define _ESPASYNC_WIFIMGR_LOGLEVEL_ 3
@@ -2440,7 +2446,8 @@ IPAddress APStaticIP = IPAddress(192, 168, 100, 1);
24402446
IPAddress APStaticGW = IPAddress(192, 168, 100, 1);
24412447
IPAddress APStaticSN = IPAddress(255, 255, 255, 0);
24422448

2443-
#include <ESPAsync_WiFiManager.h> //https://github.com/khoih-prog/ESPAsync_WiFiManager
2449+
#include <ESPAsync_WiFiManager.h> //https://github.com/khoih-prog/ESPAsync_WiFiManager
2450+
#include <ESPAsync_WiFiManager-Impl.h> //https://github.com/khoih-prog/ESPAsync_WiFiManager
24442451

24452452
#define HTTP_PORT 80
24462453

@@ -3316,11 +3323,13 @@ void setup()
33163323
Serial.println(ESP_ASYNC_WIFIMANAGER_VERSION);
33173324
Serial.println(ESP_DOUBLE_RESET_DETECTOR_VERSION);
33183325

3319-
if ( String(ESP_ASYNC_WIFIMANAGER_VERSION) < ESP_ASYNC_WIFIMANAGER_VERSION_MIN_TARGET )
3326+
#if defined(ESP_ASYNC_WIFIMANAGER_VERSION_INT)
3327+
if (ESP_ASYNC_WIFIMANAGER_VERSION_INT < ESP_ASYNC_WIFIMANAGER_VERSION_MIN)
33203328
{
33213329
Serial.print("Warning. Must use this example on Version later than : ");
33223330
Serial.println(ESP_ASYNC_WIFIMANAGER_VERSION_MIN_TARGET);
33233331
}
3332+
#endif
33243333

33253334
Serial.setDebugOutput(false);
33263335

0 commit comments

Comments
 (0)