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

Commit 9555df1

Browse files
authored
v2.1.2 to fix bug and compiler error
### Releases v2.1.2 1. Fix bug 2. Fix compiler error in some cases
1 parent 73571bd commit 9555df1

File tree

16 files changed

+128
-59
lines changed

16 files changed

+128
-59
lines changed

CONTRIBUTING.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ If you don't find anything, please [open a new issue](https://github.com/khoih-p
1515
Please ensure to specify the following:
1616

1717
* Arduino IDE version (e.g. 1.8.19) or Platform.io version
18-
* `ESP8266` or`ESP32` Core Version (e.g. ESP8266 core v3.0.2, ESP32 v2.0.4)
18+
* `ESP8266` or`ESP32` Core Version (e.g. ESP8266 core v3.0.2, ESP32 v2.0.5)
1919
* Contextual information (e.g. what you were trying to achieve)
2020
* Simplest possible steps to reproduce
2121
* Anything that might be relevant in your opinion, such as:
@@ -27,7 +27,7 @@ Please ensure to specify the following:
2727

2828
```
2929
Arduino IDE version: 1.8.19
30-
ESP32 Core Version 2.0.4
30+
ESP32 Core Version 2.0.5
3131
OS: Ubuntu 20.04 LTS
3232
Linux xy-Inspiron-3593 5.15.0-46-generic #49~20.04.1-Ubuntu SMP Thu Aug 4 19:15:44 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
3333
@@ -50,3 +50,4 @@ There are usually some outstanding feature requests in the [existing issues list
5050
### Sending Pull Requests
5151

5252
Pull Requests with changes and fixes are also welcome!
53+

changelog.md

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

1313
* [Changelog](#changelog)
14+
* [Releases v2.1.2](#releases-v212)
1415
* [Releases v2.1.1](#releases-v211)
1516
* [Releases v2.1.0](#releases-v210)
1617
* [Releases v2.0.1](#releases-v201)
@@ -29,6 +30,11 @@
2930

3031
## Changelog
3132

33+
### Releases v2.1.2
34+
35+
1. Fix bug
36+
2. Fix compiler error in some cases
37+
3238
### Releases v2.1.1
3339

3440
1. Fix ESP32 chipID for example `AsyncHTTPSRequest_ESP_WiFiManager`

examples/AsyncHTTPSRequest_ESP/AsyncHTTPSRequest_ESP.ino

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@
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 ASYNC_HTTPS_REQUEST_GENERIC_VERSION_MIN_TARGET "AsyncHTTPSRequest_Generic v2.1.1"
48-
#define ASYNC_HTTPS_REQUEST_GENERIC_VERSION_MIN 2001001
47+
#define ASYNC_HTTPS_REQUEST_GENERIC_VERSION_MIN_TARGET "AsyncHTTPSRequest_Generic v2.1.2"
48+
#define ASYNC_HTTPS_REQUEST_GENERIC_VERSION_MIN 2001002
4949

5050
// Level from 0-4
5151
#define ASYNC_HTTPS_DEBUG_PORT Serial
@@ -61,15 +61,23 @@
6161

6262
int status; // the Wifi radio's status
6363

64-
const char* ssid = "your_ssid";
65-
const char* password = "your_pass";
64+
const char* ssid = "HueNet1";
65+
const char* password = "jenniqqs";
66+
//const char* ssid = "your_ssid";
67+
//const char* password = "your_pass";
6668

6769
#if (ESP8266)
6870
#include <ESP8266WiFi.h>
6971
#elif (ESP32)
7072
#include <WiFi.h>
7173
#endif
7274

75+
// Use larger queue size if necessary for large data transfer. Default is 512 bytes if not defined here
76+
//#define ASYNC_QUEUE_LENGTH 512
77+
78+
// Use larger priority if necessary. Default is 10 if not defined here. Must be > 4 or adjusted to 4
79+
//#define CONFIG_ASYNC_TCP_PRIORITY (12)
80+
7381
// To be included only in main(), .ino with setup() to avoid `Multiple Definitions` Linker Error
7482
#include <AsyncHTTPSRequest_Generic.h> // https://github.com/khoih-prog/AsyncHTTPSRequest_Generic
7583

examples/AsyncHTTPSRequest_ESP_Multi/AsyncHTTPSRequest_ESP_Multi.ino

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@
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 ASYNC_HTTPS_REQUEST_GENERIC_VERSION_MIN_TARGET "AsyncHTTPSRequest_Generic v2.1.1"
48-
#define ASYNC_HTTPS_REQUEST_GENERIC_VERSION_MIN 2001001
47+
#define ASYNC_HTTPS_REQUEST_GENERIC_VERSION_MIN_TARGET "AsyncHTTPSRequest_Generic v2.1.2"
48+
#define ASYNC_HTTPS_REQUEST_GENERIC_VERSION_MIN 2001002
4949

5050
// Level from 0-4
5151
#define ASYNC_HTTPS_DEBUG_PORT Serial
@@ -70,6 +70,12 @@ const char* password = "your_pass";
7070
#include <WiFi.h>
7171
#endif
7272

73+
// Use larger queue size if necessary for large data transfer. Default is 512 bytes if not defined here
74+
//#define ASYNC_QUEUE_LENGTH 512
75+
76+
// Use larger priority if necessary. Default is 10 if not defined here. Must be > 4 or adjusted to 4
77+
//#define CONFIG_ASYNC_TCP_PRIORITY (12)
78+
7379
// To be included only in main(), .ino with setup() to avoid `Multiple Definitions` Linker Error
7480
#include <AsyncHTTPSRequest_Generic.h> // https://github.com/khoih-prog/AsyncHTTPSRequest_Generic
7581

examples/AsyncHTTPSRequest_ESP_WiFiManager/AsyncHTTPSRequest_ESP_WiFiManager.ino

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,21 @@
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.14.0"
50-
#define ESP_ASYNC_WIFIMANAGER_VERSION_MIN 1014000
49+
#define ESP_ASYNC_WIFIMANAGER_VERSION_MIN_TARGET "ESPAsync_WiFiManager v1.14.1"
50+
#define ESP_ASYNC_WIFIMANAGER_VERSION_MIN 1014001
5151

52-
#define ASYNC_HTTPS_REQUEST_GENERIC_VERSION_MIN_TARGET "AsyncHTTPSRequest_Generic v2.1.1"
53-
#define ASYNC_HTTPS_REQUEST_GENERIC_VERSION_MIN 2001001
52+
#define ASYNC_HTTPS_REQUEST_GENERIC_VERSION_MIN_TARGET "AsyncHTTPSRequest_Generic v2.1.2"
53+
#define ASYNC_HTTPS_REQUEST_GENERIC_VERSION_MIN 2001002
54+
55+
/////////////////////////////////////////////////////////
56+
57+
// Use larger queue size if necessary for large data transfer. Default is 512 bytes if not defined here
58+
//#define ASYNC_QUEUE_LENGTH 512
59+
60+
// Use larger priority if necessary. Default is 10 if not defined here. Must be > 4 or adjusted to 4
61+
//#define CONFIG_ASYNC_TCP_PRIORITY (12)
62+
63+
/////////////////////////////////////////////////////////
5464

5565
// Level from 0-4
5666
#define ASYNC_HTTPS_DEBUG_PORT Serial
@@ -116,7 +126,10 @@
116126
#endif
117127
//////
118128

119-
#define LED_BUILTIN 2
129+
#if !defined(LED_BUILTIN)
130+
#define LED_BUILTIN 2
131+
#endif
132+
120133
#define LED_ON HIGH
121134
#define LED_OFF LOW
122135

@@ -482,7 +495,8 @@ void loadConfigData()
482495
memset(&WM_config, 0, sizeof(WM_config));
483496

484497
// New in v1.4.0
485-
memset(&WM_STA_IPconfig, 0, sizeof(WM_STA_IPconfig));
498+
//memset(&WM_STA_IPconfig, 0, sizeof(WM_STA_IPconfig));
499+
WM_STA_IPconfig = {};
486500
//////
487501

488502
if (file)

examples/AsyncHTTP_HTTPSRequest_ESP/AsyncHTTP_HTTPSRequest_ESP.ino

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@
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 ASYNC_HTTPS_REQUEST_GENERIC_VERSION_MIN_TARGET "AsyncHTTPSRequest_Generic v2.1.1"
48-
#define ASYNC_HTTPS_REQUEST_GENERIC_VERSION_MIN 2001001
47+
#define ASYNC_HTTPS_REQUEST_GENERIC_VERSION_MIN_TARGET "AsyncHTTPSRequest_Generic v2.1.2"
48+
#define ASYNC_HTTPS_REQUEST_GENERIC_VERSION_MIN 2001002
4949

5050
#define ASYNC_HTTP_REQUEST_GENERIC_VERSION_MIN_TARGET "AsyncHTTPRequest_Generic v1.9.1"
5151
#define ASYNC_HTTP_REQUEST_GENERIC_VERSION_MIN 1009001
@@ -73,6 +73,12 @@ const char* password = "your_pass";
7373
#include <WiFi.h>
7474
#endif
7575

76+
// Use larger queue size if necessary for large data transfer. Default is 512 bytes if not defined here
77+
//#define ASYNC_QUEUE_LENGTH 512
78+
79+
// Use larger priority if necessary. Default is 10 if not defined here. Must be > 4 or adjusted to 4
80+
//#define CONFIG_ASYNC_TCP_PRIORITY (12)
81+
7682
// To be included only in main(), .ino with setup() to avoid `Multiple Definitions` Linker Error
7783
// If use both AsyncHTTPRequest_Generic and AsyncHTTPSRequest_Generic, include AsyncHTTPRequest_Generic first or error
7884
// because many definitions of AsyncHTTPSRequest_Generic rely on those of AsyncHTTPRequest_Generic

examples/WT32_ETH01/AsyncHTTPSRequest_WT32_ETH01/AsyncHTTPSRequest_WT32_ETH01.ino

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

47-
#define ASYNC_HTTPS_REQUEST_GENERIC_VERSION_MIN_TARGET "AsyncHTTPSRequest_Generic v2.1.1"
48-
#define ASYNC_HTTPS_REQUEST_GENERIC_VERSION_MIN 2001001
47+
#define ASYNC_HTTPS_REQUEST_GENERIC_VERSION_MIN_TARGET "AsyncHTTPSRequest_Generic v2.1.2"
48+
#define ASYNC_HTTPS_REQUEST_GENERIC_VERSION_MIN 2001002
49+
/////////////////////////////////////////////////////////
50+
51+
// Use larger queue size if necessary for large data transfer. Default is 512 bytes if not defined here
52+
//#define ASYNC_QUEUE_LENGTH 512
53+
54+
// Use larger priority if necessary. Default is 10 if not defined here. Must be > 4 or adjusted to 4
55+
//#define CONFIG_ASYNC_TCP_PRIORITY (12)
56+
57+
/////////////////////////////////////////////////////////
4958

5059
// Level from 0-4
5160
#define ASYNC_HTTPS_DEBUG_PORT Serial

examples/multiFileProject/multiFileProject.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,15 @@
1414

1515
#pragma once
1616

17+
/////////////////////////////////////////////////////////
18+
19+
// Use larger queue size if necessary for large data transfer. Default is 512 bytes if not defined here
20+
//#define ASYNC_QUEUE_LENGTH 512
21+
22+
// Use larger priority if necessary. Default is 10 if not defined here. Must be > 4 or adjusted to 4
23+
//#define CONFIG_ASYNC_TCP_PRIORITY (12)
24+
25+
/////////////////////////////////////////////////////////
26+
1727
// Can be included as many times as necessary, without `Multiple Definitions` Linker Error
1828
#include "AsyncHTTPSRequest_Generic.hpp"

examples/multiFileProject/multiFileProject.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
#error This code is intended to run on the ESP32 platform! Please check your Tools->Board setting.
1717
#endif
1818

19-
#define ASYNC_HTTPS_REQUEST_GENERIC_VERSION_MIN_TARGET "AsyncHTTPSRequest_Generic v2.1.1"
20-
#define ASYNC_HTTPS_REQUEST_GENERIC_VERSION_MIN 2001001
19+
#define ASYNC_HTTPS_REQUEST_GENERIC_VERSION_MIN_TARGET "AsyncHTTPSRequest_Generic v2.1.2"
20+
#define ASYNC_HTTPS_REQUEST_GENERIC_VERSION_MIN 2001002
2121

2222
#include "multiFileProject.h"
2323

library.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name":"AsyncHTTPSRequest_Generic",
3-
"version": "2.1.1",
3+
"version": "2.1.2",
44
"description":"Simple Async HTTPS Request library, supporting GET, POST, PUT, PATCH, DELETE and HEAD, on top of AsyncTCP_SSL library for ESP32 (including ESP32_S2, ESP32_S3 and ESP32_C3), WT32_ETH01 (ESP32 + LAN8720). Supporting in the future for RP2040W, ESP8266, Portenta_H7, STM32 with built-in LAN8742A Ethernet, etc. Now you can send HTTP / HTTPS requests to multiple addresses and receive responses from them.",
55
"keywords":"communication, async, tcp, https, ssl, tls, ESP8266, ESP32, ESP32-S2, wt32-eth01, ESPAsyncTCP, AsyncTCP, stm32, ethernet, wifi, lan8742a, lan8720, f407ve, nucleo-144, stm32f7",
66
"authors": [
@@ -33,13 +33,13 @@
3333
{
3434
"owner": "khoih-prog",
3535
"name": "AsyncTCP_SSL",
36-
"version": ">=1.3.0",
36+
"version": ">=1.3.1",
3737
"platforms": ["espressif32"]
3838
},
3939
{
4040
"owner": "khoih-prog",
4141
"name": "WebServer_WT32_ETH01",
42-
"version": ">=1.5.0",
42+
"version": ">=1.5.1",
4343
"platforms": ["espressif32"]
4444
},
4545
{
@@ -51,7 +51,7 @@
5151
{
5252
"owner": "khoih-prog",
5353
"name": "ESPAsync_WiFiManager",
54-
"version": ">=1.14.0",
54+
"version": ">=1.14.1",
5555
"platforms": ["espressif8266", "espressif32"]
5656
}
5757
],

0 commit comments

Comments
 (0)