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

Commit 9267f40

Browse files
authored
v1.6.0 to reduce v1.5.0 breaking effect
### Releases v1.6.0 1. Reduce the breaking effect of v1.5.0 by enabling compatibility with old code to include only `AsyncHTTPRequest_Generic.h` 2. Update `Packages' Patches`
1 parent c1a3600 commit 9267f40

File tree

27 files changed

+650
-550
lines changed

27 files changed

+650
-550
lines changed

README.md

Lines changed: 75 additions & 85 deletions
Large diffs are not rendered by default.

changelog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
## Table of Contents
1313

1414
* [Changelog](#changelog)
15+
* [Releases v1.6.0](#releases-v160)
1516
* [Releases v1.5.0](#releases-v150)
1617
* [Releases v1.4.1](#releases-v141)
1718
* [Releases v1.4.0](#releases-v140)
@@ -33,6 +34,11 @@
3334

3435
## Changelog
3536

37+
### Releases v1.6.0
38+
39+
1. Reduce the breaking effect of v1.5.0 by enabling compatibility with old code to include only `AsyncHTTPRequest_Generic.h`
40+
2. Update `Packages' Patches`
41+
3642
### Releases v1.5.0
3743

3844
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)

examples/AsyncCustomHeader_STM32/AsyncCustomHeader_STM32.ino

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,14 @@
2424
//char GET_ServerAddress[] = "192.168.2.110/";
2525
char GET_ServerAddress[] = "http://worldtimeapi.org/api/timezone/America/Toronto.txt";
2626

27-
#define ASYNC_HTTP_REQUEST_GENERIC_VERSION_MIN_TARGET "AsyncHTTPRequest_Generic v1.5.0"
28-
#define ASYNC_HTTP_REQUEST_GENERIC_VERSION_MIN 1005000
27+
#define ASYNC_HTTP_REQUEST_GENERIC_VERSION_MIN_TARGET "AsyncHTTPRequest_Generic v1.6.0"
28+
#define ASYNC_HTTP_REQUEST_GENERIC_VERSION_MIN 1006000
2929

3030
// 600s = 10 minutes to not flooding, 60s in testing
3131
#define HTTP_REQUEST_INTERVAL_MS 60000 //600000
3232

33-
#include <AsyncHTTPRequest_Generic.h> // https://github.com/khoih-prog/AsyncHTTPRequest_Generic
34-
3533
// To be included only in main(), .ino with setup() to avoid `Multiple Definitions` Linker Error
36-
#include <AsyncHTTPRequest_Impl_Generic.h> // https://github.com/khoih-prog/AsyncHTTPRequest_Generic
34+
#include <AsyncHTTPRequest_Generic.h> // https://github.com/khoih-prog/AsyncHTTPRequest_Generic
3735

3836
#include <Ticker.h> // https://github.com/sstaub/Ticker
3937

examples/AsyncDweetGet_STM32/AsyncDweetGet_STM32.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ const char GET_ServerAddress[] = "dweet.io";
3535
// use your own thing name here
3636
String dweetName = "/dweet/for/currentSecond?second=";
3737

38-
#define ASYNC_HTTP_REQUEST_GENERIC_VERSION_MIN_TARGET "AsyncHTTPRequest_Generic v1.5.0"
39-
#define ASYNC_HTTP_REQUEST_GENERIC_VERSION_MIN 1005000
38+
#define ASYNC_HTTP_REQUEST_GENERIC_VERSION_MIN_TARGET "AsyncHTTPRequest_Generic v1.6.0"
39+
#define ASYNC_HTTP_REQUEST_GENERIC_VERSION_MIN 1006000
4040

4141
// 600s = 10 minutes to not flooding, 60s in testing
4242
#define HTTP_REQUEST_INTERVAL_MS 60000 //600000

examples/AsyncDweetPost_STM32/AsyncDweetPost_STM32.ino

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,14 @@ const char POST_ServerAddress[] = "dweet.io";
2929
// use your own thing name here
3030
String dweetName = "/dweet/for/pinA0-Read?";
3131

32-
#define ASYNC_HTTP_REQUEST_GENERIC_VERSION_MIN_TARGET "AsyncHTTPRequest_Generic v1.5.0"
33-
#define ASYNC_HTTP_REQUEST_GENERIC_VERSION_MIN 1005000
32+
#define ASYNC_HTTP_REQUEST_GENERIC_VERSION_MIN_TARGET "AsyncHTTPRequest_Generic v1.6.0"
33+
#define ASYNC_HTTP_REQUEST_GENERIC_VERSION_MIN 1006000
3434

3535
// 600s = 10 minutes to not flooding, 60s in testing
3636
#define HTTP_REQUEST_INTERVAL_MS 60000 //600000
3737

38-
#include <AsyncHTTPRequest_Generic.h> // https://github.com/khoih-prog/AsyncHTTPRequest_Generic
39-
4038
// To be included only in main(), .ino with setup() to avoid `Multiple Definitions` Linker Error
41-
#include <AsyncHTTPRequest_Impl_Generic.h> // https://github.com/khoih-prog/AsyncHTTPRequest_Generic
39+
#include <AsyncHTTPRequest_Generic.h> // https://github.com/khoih-prog/AsyncHTTPRequest_Generic
4240

4341
#include <Ticker.h> // https://github.com/sstaub/Ticker
4442

examples/AsyncHTTPMultiRequests_ESP/AsyncHTTPMultiRequests_ESP.ino

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,11 @@
4444
#error This code is intended to run on the ESP8266 or ESP32 platform! Please check your Tools->Board setting.
4545
#endif
4646

47-
#define ESP_WIFIMANAGER_VERSION_MIN_TARGET "ESP_WiFiManager v1.8.0"
48-
#define ESP_WIFIMANAGER_VERSION_MIN 1008000
49-
50-
#define ASYNC_HTTP_REQUEST_GENERIC_VERSION_MIN_TARGET "AsyncHTTPRequest_Generic v1.5.0"
51-
#define ASYNC_HTTP_REQUEST_GENERIC_VERSION_MIN 1005000
47+
#define ESP_WIFIMANAGER_VERSION_MIN_TARGET "ESP_WiFiManager v1.9.0"
48+
#define ESP_WIFIMANAGER_VERSION_MIN 1009000
5249

50+
#define ASYNC_HTTP_REQUEST_GENERIC_VERSION_MIN_TARGET "AsyncHTTPRequest_Generic v1.6.0"
51+
#define ASYNC_HTTP_REQUEST_GENERIC_VERSION_MIN 1006000
5352
// Level from 0-4
5453
#define ASYNC_HTTP_DEBUG_PORT Serial
5554
#define _ASYNC_HTTP_LOGLEVEL_ 1

examples/AsyncHTTPRequest_ESP/AsyncHTTPRequest_ESP.ino

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,11 @@ const char* password = "your_pass";
6565
#include <WiFi.h>
6666
#endif
6767

68-
#define ASYNC_HTTP_REQUEST_GENERIC_VERSION_MIN_TARGET "AsyncHTTPRequest_Generic v1.5.0"
69-
#define ASYNC_HTTP_REQUEST_GENERIC_VERSION_MIN 1005000
70-
71-
#include <AsyncHTTPRequest_Generic.h> // https://github.com/khoih-prog/AsyncHTTPRequest_Generic
68+
#define ASYNC_HTTP_REQUEST_GENERIC_VERSION_MIN_TARGET "AsyncHTTPRequest_Generic v1.6.0"
69+
#define ASYNC_HTTP_REQUEST_GENERIC_VERSION_MIN 1006000
7270

7371
// To be included only in main(), .ino with setup() to avoid `Multiple Definitions` Linker Error
74-
#include <AsyncHTTPRequest_Impl_Generic.h> // https://github.com/khoih-prog/AsyncHTTPRequest_Generic
72+
#include <AsyncHTTPRequest_Generic.h> // https://github.com/khoih-prog/AsyncHTTPRequest_Generic
7573

7674
#include <Ticker.h>
7775

@@ -159,7 +157,7 @@ void setup()
159157
Serial.print(".");
160158
}
161159

162-
Serial.print(F("AsyncHTTPRequest @ IP : "));
160+
Serial.print(F("\nAsyncHTTPRequest @ IP : "));
163161
Serial.println(WiFi.localIP());
164162

165163
request.setDebug(false);

examples/AsyncHTTPRequest_ESP_WiFiManager/AsyncHTTPRequest_ESP_WiFiManager.ino

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@
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
49+
#define ESP_ASYNC_WIFIMANAGER_VERSION_MIN_TARGET "ESPAsync_WiFiManager v1.11.0"
50+
#define ESP_ASYNC_WIFIMANAGER_VERSION_MIN 1011000
5151

52-
#define ASYNC_HTTP_REQUEST_GENERIC_VERSION_MIN_TARGET "AsyncHTTPRequest_Generic v1.5.0"
53-
#define ASYNC_HTTP_REQUEST_GENERIC_VERSION_MIN 1005000
52+
#define ASYNC_HTTP_REQUEST_GENERIC_VERSION_MIN_TARGET "AsyncHTTPRequest_Generic v1.6.0"
53+
#define ASYNC_HTTP_REQUEST_GENERIC_VERSION_MIN 1006000
5454

5555
// Level from 0-4
5656
#define ASYNC_HTTP_DEBUG_PORT Serial

examples/AsyncHTTPRequest_STM32/AsyncHTTPRequest_STM32.ino

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,14 @@
4242

4343
#include "defines.h"
4444

45-
#define ASYNC_HTTP_REQUEST_GENERIC_VERSION_MIN_TARGET "AsyncHTTPRequest_Generic v1.5.0"
46-
#define ASYNC_HTTP_REQUEST_GENERIC_VERSION_MIN 1005000
45+
#define ASYNC_HTTP_REQUEST_GENERIC_VERSION_MIN_TARGET "AsyncHTTPRequest_Generic v1.6.0"
46+
#define ASYNC_HTTP_REQUEST_GENERIC_VERSION_MIN 1006000
4747

4848
// 600s = 10 minutes to not flooding, 60s in testing
4949
#define HTTP_REQUEST_INTERVAL_MS 60000 //600000
5050

51-
#include <AsyncHTTPRequest_Generic.h> // https://github.com/khoih-prog/AsyncHTTPRequest_Generic
52-
5351
// To be included only in main(), .ino with setup() to avoid `Multiple Definitions` Linker Error
54-
#include <AsyncHTTPRequest_Impl_Generic.h> // https://github.com/khoih-prog/AsyncHTTPRequest_Generic
52+
#include <AsyncHTTPRequest_Generic.h> // https://github.com/khoih-prog/AsyncHTTPRequest_Generic
5553

5654
#include <Ticker.h> // https://github.com/sstaub/Ticker
5755

examples/AsyncSimpleGET_STM32/AsyncSimpleGET_STM32.ino

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,14 @@
2424
//char GET_ServerAddress[] = "ipv4bot.whatismyipaddress.com/";
2525
char GET_ServerAddress[] = "http://worldtimeapi.org/api/timezone/America/Toronto.txt";
2626

27-
#define ASYNC_HTTP_REQUEST_GENERIC_VERSION_MIN_TARGET "AsyncHTTPRequest_Generic v1.5.0"
28-
#define ASYNC_HTTP_REQUEST_GENERIC_VERSION_MIN 1005000
27+
#define ASYNC_HTTP_REQUEST_GENERIC_VERSION_MIN_TARGET "AsyncHTTPRequest_Generic v1.6.0"
28+
#define ASYNC_HTTP_REQUEST_GENERIC_VERSION_MIN 1006000
2929

3030
// 600s = 10 minutes to not flooding, 60s in testing
3131
#define HTTP_REQUEST_INTERVAL_MS 60000 //600000
3232

33-
#include <AsyncHTTPRequest_Generic.h> // https://github.com/khoih-prog/AsyncHTTPRequest_Generic
34-
3533
// To be included only in main(), .ino with setup() to avoid `Multiple Definitions` Linker Error
36-
#include <AsyncHTTPRequest_Impl_Generic.h> // https://github.com/khoih-prog/AsyncHTTPRequest_Generic
34+
#include <AsyncHTTPRequest_Generic.h> // https://github.com/khoih-prog/AsyncHTTPRequest_Generic
3735

3836
#include <Ticker.h> // https://github.com/sstaub/Ticker
3937

0 commit comments

Comments
 (0)