From 5bff0778885883d34d05f58461530bd3ccea9f8d Mon Sep 17 00:00:00 2001 From: Khoi Hoang <57012152+khoih-prog@users.noreply.github.com> Date: Thu, 30 Dec 2021 16:53:18 -0500 Subject: [PATCH] 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](https://github.com/khoih-prog/ESPAsync_WiFiManager/discussions/80) 2. Optimize library code by using `reference-passing` instead of `value-passing` 3. Update all examples --- .../AsyncHTTPRequest_ESP_WiFiManager.ino | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/examples/AsyncHTTPRequest_ESP_WiFiManager/AsyncHTTPRequest_ESP_WiFiManager.ino b/examples/AsyncHTTPRequest_ESP_WiFiManager/AsyncHTTPRequest_ESP_WiFiManager.ino index 99140a06..b3272b27 100644 --- a/examples/AsyncHTTPRequest_ESP_WiFiManager/AsyncHTTPRequest_ESP_WiFiManager.ino +++ b/examples/AsyncHTTPRequest_ESP_WiFiManager/AsyncHTTPRequest_ESP_WiFiManager.ino @@ -46,6 +46,9 @@ #error This code is intended to run on the ESP8266 or ESP32 platform! Please check your Tools->Board setting. #endif +#define ESP_ASYNC_WIFIMANAGER_VERSION_MIN_TARGET "ESPAsync_WiFiManager v1.10.0" +#define ESP_ASYNC_WIFIMANAGER_VERSION_MIN 1010000 + #define ASYNC_HTTP_REQUEST_GENERIC_VERSION_MIN_TARGET "AsyncHTTPRequest_Generic v1.5.0" #define ASYNC_HTTP_REQUEST_GENERIC_VERSION_MIN 1005000 @@ -559,11 +562,11 @@ void setup() Serial.println(ESP_ASYNC_WIFIMANAGER_VERSION); Serial.println(ASYNC_HTTP_REQUEST_GENERIC_VERSION); -#if defined(ESP_WIFIMANAGER_VERSION_MIN) - if (ESP_WIFIMANAGER_VERSION_INT < ESP_WIFIMANAGER_VERSION_MIN) +#if defined(ESP_ASYNC_WIFIMANAGER_VERSION_INT) + if (ESP_ASYNC_WIFIMANAGER_VERSION_INT < ESP_ASYNC_WIFIMANAGER_VERSION_MIN) { - Serial.print("Warning. Must use this example on Version equal or later than : "); - Serial.println(ESP_WIFIMANAGER_VERSION_MIN_TARGET); + Serial.print("Warning. Must use this example on Version later than : "); + Serial.println(ESP_ASYNC_WIFIMANAGER_VERSION_MIN_TARGET); } #endif