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

Commit 5bff077

Browse files
authored
v1.5.0 to fix multiple-definitions linker error
### Releases v1.5.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](khoih-prog/ESPAsync_WiFiManager#80) 2. Optimize library code by using `reference-passing` instead of `value-passing` 3. Update all examples
1 parent de52b1a commit 5bff077

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

examples/AsyncHTTPRequest_ESP_WiFiManager/AsyncHTTPRequest_ESP_WiFiManager.ino

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@
4646
#error This code is intended to run on the ESP8266 or ESP32 platform! Please check your Tools->Board setting.
4747
#endif
4848

49+
#define ESP_ASYNC_WIFIMANAGER_VERSION_MIN_TARGET "ESPAsync_WiFiManager v1.10.0"
50+
#define ESP_ASYNC_WIFIMANAGER_VERSION_MIN 1010000
51+
4952
#define ASYNC_HTTP_REQUEST_GENERIC_VERSION_MIN_TARGET "AsyncHTTPRequest_Generic v1.5.0"
5053
#define ASYNC_HTTP_REQUEST_GENERIC_VERSION_MIN 1005000
5154

@@ -559,11 +562,11 @@ void setup()
559562
Serial.println(ESP_ASYNC_WIFIMANAGER_VERSION);
560563
Serial.println(ASYNC_HTTP_REQUEST_GENERIC_VERSION);
561564

562-
#if defined(ESP_WIFIMANAGER_VERSION_MIN)
563-
if (ESP_WIFIMANAGER_VERSION_INT < ESP_WIFIMANAGER_VERSION_MIN)
565+
#if defined(ESP_ASYNC_WIFIMANAGER_VERSION_INT)
566+
if (ESP_ASYNC_WIFIMANAGER_VERSION_INT < ESP_ASYNC_WIFIMANAGER_VERSION_MIN)
564567
{
565-
Serial.print("Warning. Must use this example on Version equal or later than : ");
566-
Serial.println(ESP_WIFIMANAGER_VERSION_MIN_TARGET);
568+
Serial.print("Warning. Must use this example on Version later than : ");
569+
Serial.println(ESP_ASYNC_WIFIMANAGER_VERSION_MIN_TARGET);
567570
}
568571
#endif
569572

0 commit comments

Comments
 (0)