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

Commit 8029070

Browse files
authored
v1.3.1 to improve stability
### Releases v1.3.1 1. Increase `ASYNC_QUEUE_LENGTH` to default 512 from 32 and make it user-configurable 2. Increase `ASYNC_TCP_PRIORITY` to default 10 from 3, and make it user-configurable
1 parent 043ba06 commit 8029070

File tree

13 files changed

+140
-93
lines changed

13 files changed

+140
-93
lines changed

CONTRIBUTING.md

Lines changed: 2 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-
* `ESP32` Core Version (e.g. ESP32 core v2.0.4)
18+
* `ESP32` Core Version (e.g. ESP32 core v2.0.5)
1919
* `ESP32` Board type (e.g. ESP32_DEV, ESP32_S2, ESP32_S3, ESP32_C3, etc.)
2020
* Contextual information (e.g. what you were trying to achieve)
2121
* Simplest possible steps to reproduce
@@ -28,7 +28,7 @@ Please ensure to specify the following:
2828

2929
```
3030
Arduino IDE version: 1.8.19
31-
ESP32 core v2.0.4
31+
ESP32 core v2.0.5
3232
ESP32_DEV Module
3333
OS: Ubuntu 20.04 LTS
3434
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

README.md

Lines changed: 74 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@
5757

5858
### Important Note for ESP32_S3
5959

60-
**Don't use `ESP32_S3` with core v2.0.4**. Check [ESP32-S3 Powercycling right after uploading a sketch using Arduino IDE and Arduino Core 2.0.4 #7165](https://github.com/espressif/arduino-esp32/issues/7165)
60+
**Don't use `ESP32_S3` with core v2.0.4**. Check `already fixed` [ESP32-S3 Powercycling right after uploading a sketch using Arduino IDE and Arduino Core 2.0.4 #7165](https://github.com/espressif/arduino-esp32/issues/7165)
61+
62+
**ESP32_S3 is OK now with core v2.0.5**
6163

6264
---
6365

@@ -101,7 +103,7 @@ to apply the better and faster **asynchronous** feature of the **powerful** [Asy
101103
1. `ESP32` boards, such as ESP32_DEV, etc.
102104
2. `ESP32_S2`-based boards, such as ESP32S2_DEV, ESP32_S2 Saola, etc.
103105
3. `ESP32_C3`-based boards, such as ESP32C3_DEV, etc.
104-
4. `ESP32_S3`-based boards, such as ESP32S3_DEV, etc., using ESP32 core `v2.0.3`
106+
4. `ESP32_S3`-based boards, such as ESP32S3_DEV, etc., using ESP32 core `v2.0.3` or `v2.0.5+`
105107

106108

107109
---
@@ -110,8 +112,8 @@ to apply the better and faster **asynchronous** feature of the **powerful** [Asy
110112
## Prerequisites
111113

112114
1. [`Arduino IDE 1.8.19+` for Arduino](https://github.com/arduino/Arduino). [![GitHub release](https://img.shields.io/github/release/arduino/Arduino.svg)](https://github.com/arduino/Arduino/releases/latest)
113-
2. [`ESP32 Core 2.0.4+`](https://github.com/espressif/arduino-esp32) for ESP32-based boards. [![Latest release](https://img.shields.io/github/release/espressif/arduino-esp32.svg)](https://github.com/espressif/arduino-esp32/releases/latest/) for ESP32, ESP32_S2, ESP32_C3
114-
3. [`ESP32 Core 2.0.3`](https://github.com/espressif/arduino-esp32) for ESP32_S3-based boards. For ESP32_S3 until [ESP32-S3 Powercycling right after uploading a sketch using Arduino IDE and Arduino Core 2.0.4 #7165](https://github.com/espressif/arduino-esp32/issues/7165) is fixed.
115+
2. [`ESP32 Core 2.0.5+`](https://github.com/espressif/arduino-esp32) for ESP32-based boards. [![Latest release](https://img.shields.io/github/release/espressif/arduino-esp32.svg)](https://github.com/espressif/arduino-esp32/releases/latest/) for ESP32, ESP32_S2, ESP32_C3
116+
3. [`ESP32 Core 2.0.4`](https://github.com/espressif/arduino-esp32) can't be used for ESP32_S3-based boards. Check `already fixed` [ESP32-S3 Powercycling right after uploading a sketch using Arduino IDE and Arduino Core 2.0.4 #7165](https://github.com/espressif/arduino-esp32/issues/7165)
115117

116118
---
117119
---
@@ -280,46 +282,46 @@ Following is the debug terminal when running example [AsyncHTTPSRequest_ESP](htt
280282

281283
```
282284
Starting AsyncHTTPSRequest_ESP using ESP32_DEV
283-
AsyncTCP_SSL v1.3.0
284-
AsyncHTTPSRequest_Generic v2.1.0
285+
AsyncTCP_SSL v1.3.1
286+
AsyncHTTPSRequest_Generic v2.1.2
285287
Connecting to WiFi SSID: HueNet1
286288
.......
287289
AsyncHTTPSRequest @ IP : 192.168.2.133
288290
289291
**************************************
290292
abbreviation: EDT
291293
client_ip: aaa.bbb.ccc.ddd
292-
datetime: 2022-09-04T19:41:10.727385-04:00
294+
datetime: 2022-09-18T01:35:32.451975-04:00
293295
day_of_week: 0
294-
day_of_year: 247
296+
day_of_year: 261
295297
dst: true
296298
dst_from: 2022-03-13T07:00:00+00:00
297299
dst_offset: 3600
298300
dst_until: 2022-11-06T06:00:00+00:00
299301
raw_offset: -18000
300302
timezone: America/Toronto
301-
unixtime: 1662334870
302-
utc_datetime: 2022-09-04T23:41:10.727385+00:00
303+
unixtime: 1663479332
304+
utc_datetime: 2022-09-18T05:35:32.451975+00:00
303305
utc_offset: -04:00
304-
week_number: 35
306+
week_number: 37
305307
**************************************
306308
HHHHHH
307309
**************************************
308310
abbreviation: EDT
309311
client_ip: aaa.bbb.ccc.ddd
310-
datetime: 2022-09-04T19:42:10.039223-04:00
312+
datetime: 2022-09-18T01:36:31.992595-04:00
311313
day_of_week: 0
312-
day_of_year: 247
314+
day_of_year: 261
313315
dst: true
314316
dst_from: 2022-03-13T07:00:00+00:00
315317
dst_offset: 3600
316318
dst_until: 2022-11-06T06:00:00+00:00
317319
raw_offset: -18000
318320
timezone: America/Toronto
319-
unixtime: 1662334930
320-
utc_datetime: 2022-09-04T23:42:10.039223+00:00
321+
unixtime: 1663479391
322+
utc_datetime: 2022-09-18T05:36:31.992595+00:00
321323
utc_offset: -04:00
322-
week_number: 35
324+
week_number: 37
323325
```
324326
---
325327

@@ -329,8 +331,8 @@ Following is the debug terminal when running example [AsyncHTTPSRequest_ESP](htt
329331

330332
```
331333
Starting AsyncHTTPSRequest_ESP using ESP32S2_DEV
332-
AsyncTCP_SSL v1.3.0
333-
AsyncHTTPSRequest_Generic v2.1.0
334+
AsyncTCP_SSL v1.3.1
335+
AsyncHTTPSRequest_Generic v2.1.2
334336
Connecting to WiFi SSID: HueNet1
335337
.......
336338
AsyncHTTPSRequest @ IP : 192.168.2.79
@@ -361,19 +363,19 @@ AsyncHTTPSRequest @ IP : 192.168.2.79
361363
**************************************
362364
abbreviation: EDT
363365
client_ip: aaa.bbb.ccc.ddd
364-
datetime: 2022-09-04T19:27:33.745787-04:00
366+
datetime: 2022-09-18T01:46:31.858783-04:00
365367
day_of_week: 0
366-
day_of_year: 247
368+
day_of_year: 261
367369
dst: true
368370
dst_from: 2022-03-13T07:00:00+00:00
369371
dst_offset: 3600
370372
dst_until: 2022-11-06T06:00:00+00:00
371373
raw_offset: -18000
372374
timezone: America/Toronto
373-
unixtime: 1662334053
374-
utc_datetime: 2022-09-04T23:27:33.745787+00:00
375+
unixtime: 1663479991
376+
utc_datetime: 2022-09-18T05:46:31.858783+00:00
375377
utc_offset: -04:00
376-
week_number: 35
378+
week_number: 37
377379
**************************************
378380
```
379381

@@ -385,27 +387,27 @@ Following is the debug terminal when running example [AsyncHTTPSRequest_ESP](htt
385387

386388
```
387389
Starting AsyncHTTPSRequest_ESP using ESP32C3_DEV
388-
AsyncTCP_SSL v1.3.0
389-
AsyncHTTPSRequest_Generic v2.1.0
390+
AsyncTCP_SSL v1.3.1
391+
AsyncHTTPSRequest_Generic v2.1.2
390392
Connecting to WiFi SSID: HueNet1
391393
.........
392394
AsyncHTTPSRequest @ IP : 192.168.2.80
393395
**************************************
394396
abbreviation: EDT
395397
client_ip: aaa.bbb.ccc.ddd
396-
datetime: 2022-09-04T19:27:33.745787-04:00
398+
datetime: 2022-09-18T01:35:32.451975-04:00
397399
day_of_week: 0
398-
day_of_year: 247
400+
day_of_year: 261
399401
dst: true
400402
dst_from: 2022-03-13T07:00:00+00:00
401403
dst_offset: 3600
402404
dst_until: 2022-11-06T06:00:00+00:00
403405
raw_offset: -18000
404406
timezone: America/Toronto
405-
unixtime: 1662334053
406-
utc_datetime: 2022-09-04T23:27:33.745787+00:00
407+
unixtime: 1663479332
408+
utc_datetime: 2022-09-18T05:35:32.451975+00:00
407409
utc_offset: -04:00
408-
week_number: 35
410+
week_number: 37
409411
**************************************
410412
```
411413

@@ -417,9 +419,9 @@ Following is the debug terminal when running example [AsyncHTTPSRequest_ESP_WiFi
417419

418420
```
419421
Starting AsyncHTTPSRequest_ESP_WiFiManager using LittleFS on ESP32_DEV
420-
ESPAsync_WiFiManager v1.11.0
421-
AsyncTCP_SSL v1.3.0
422-
AsyncHTTPSRequest_Generic v2.1.0
422+
ESPAsync_WiFiManager v1.14.1
423+
AsyncTCP_SSL v1.3.1
424+
AsyncHTTPSRequest_Generic v2.1.2
423425
Stored: SSID = HueNet1, Pass = 12345678
424426
Got stored Credentials. Timeout 120s
425427
ConnectMultiWiFi in setup
@@ -428,19 +430,19 @@ H
428430
**************************************
429431
abbreviation: EDT
430432
client_ip: aaa.bbb.ccc.ddd
431-
datetime: 2022-09-04T19:41:10.727385-04:00
433+
datetime: 2022-09-18T01:36:31.992595-04:00
432434
day_of_week: 0
433-
day_of_year: 247
435+
day_of_year: 261
434436
dst: true
435437
dst_from: 2022-03-13T07:00:00+00:00
436438
dst_offset: 3600
437439
dst_until: 2022-11-06T06:00:00+00:00
438440
raw_offset: -18000
439441
timezone: America/Toronto
440-
unixtime: 1662334870
441-
utc_datetime: 2022-09-04T23:41:10.727385+00:00
442+
unixtime: 1663479391
443+
utc_datetime: 2022-09-18T05:36:31.992595+00:00
442444
utc_offset: -04:00
443-
week_number: 35
445+
week_number: 37
444446
**************************************
445447
H
446448
```
@@ -454,8 +456,8 @@ Following is the debug terminal when running example [AsyncHTTPSRequest_ESP_Mult
454456

455457
```
456458
Starting AsyncHTTPSRequest_ESP_Multi on ESP32S3_DEV
457-
AsyncTCP_SSL v1.3.0
458-
AsyncHTTPSRequest_Generic v2.1.0
459+
AsyncTCP_SSL v1.3.1
460+
AsyncHTTPSRequest_Generic v2.1.2
459461
Connecting to WiFi SSID: HueNet1
460462
...
461463
AsyncHTTPSRequest @ IP : 192.168.2.187
@@ -464,58 +466,59 @@ Sending request: https://worldtimeapi.org/api/timezone/Europe/Prague.txt
464466
465467
Sending request: https://www.myexternalip.com/raw
466468
[AHTTPS] _onError handler SSL error = OK
469+
[AHTTPS] _onError handler SSL error = OK
470+
471+
**************************************
472+
[AHTTPS] Response Code = HTTP OK
473+
474+
**************************************
475+
aaa.bbb.ccc.ddd
476+
**************************************
467477
468478
**************************************
469479
[AHTTPS] Response Code = HTTP OK
470480
471481
**************************************
472482
abbreviation: CEST
473483
client_ip: aaa.bbb.ccc.ddd
474-
datetime: 2022-09-05T01:27:33.313946+02:00
475-
day_of_week: 1
476-
day_of_year: 248
484+
datetime: 2022-09-18T07:50:04.395849+02:00
485+
day_of_week: 0
486+
day_of_year: 261
477487
dst: true
478488
dst_from: 2022-03-27T01:00:00+00:00
479489
dst_offset: 3600
480490
dst_until: 2022-10-30T01:00:00+00:00
481491
raw_offset: 3600
482492
timezone: Europe/Prague
483-
unixtime: 1662334053
484-
utc_datetime: 2022-09-04T23:27:33.313946+00:00
493+
unixtime: 1663480204
494+
utc_datetime: 2022-09-18T05:50:04.395849+00:00
485495
utc_offset: +02:00
486-
week_number: 36
496+
week_number: 37
487497
**************************************
488498
489-
Sending request: [AHTTPS] _onError handler SSL error = OK
490-
https://worldtimeapi.org/api/timezone/America/Toronto.txt
499+
Sending request: https://worldtimeapi.org/api/timezone/America/Toronto.txt
491500
492501
**************************************
493502
[AHTTPS] Response Code = HTTP OK
494503
495504
**************************************
496505
abbreviation: EDT
497506
client_ip: aaa.bbb.ccc.ddd
498-
datetime: 2022-09-04T19:27:33.745787-04:00
507+
datetime: 2022-09-18T01:50:05.382100-04:00
499508
day_of_week: 0
500-
day_of_year: 247
509+
day_of_year: 261
501510
dst: true
502511
dst_from: 2022-03-13T07:00:00+00:00
503512
dst_offset: 3600
504513
dst_until: 2022-11-06T06:00:00+00:00
505514
raw_offset: -18000
506515
timezone: America/Toronto
507-
unixtime: 1662334053
508-
utc_datetime: 2022-09-04T23:27:33.745787+00:00
516+
unixtime: 1663480205
517+
utc_datetime: 2022-09-18T05:50:05.382100+00:00
509518
utc_offset: -04:00
510-
week_number: 35
511-
**************************************
512-
513-
**************************************
514-
[AHTTPS] Response Code = HTTP OK
515-
516-
**************************************
517-
aaa.bbb.ccc.ddd
519+
week_number: 37
518520
**************************************
521+
H
519522
```
520523

521524
---
@@ -559,14 +562,17 @@ Submit issues to: [AsyncTCP_SSL issues](https://github.com/khoih-prog/AsyncTCP_S
559562

560563
## DONE
561564

562-
1. Add support to ESP32 using SSL
563-
2. Add Table of Contents
564-
3. Add debug feature
565-
4. Fix `multiple-definitions` linker error
566-
5. Add example
567-
6. Remove hard-code if possible
568-
7. Improve debug messages by adding functions to display `error/state messages` instead of `cryptic error/state number`
569-
8. Add support to `ESP32_S3`, using ESP32 core `v2.0.3`. **Don't use `ESP32_S3` with core v2.0.4**. Check [ESP32-S3 Powercycling right after uploading a sketch using Arduino IDE and Arduino Core 2.0.4 #7165](https://github.com/espressif/arduino-esp32/issues/7165)
565+
1. Add support to ESP32 using SSL
566+
2. Add Table of Contents
567+
3. Add debug feature
568+
4. Fix `multiple-definitions` linker error
569+
5. Add examples
570+
6. Remove hard-code if possible
571+
7. Improve debug messages by adding functions to display `error/state messages` instead of `cryptic error/state number`
572+
8. Add support to `ESP32_S3`, using ESP32 core `v2.0.3`. **Don't use `ESP32_S3` with core v2.0.4**. Check [ESP32-S3 Powercycling right after uploading a sketch using Arduino IDE and Arduino Core 2.0.4 #7165](https://github.com/espressif/arduino-esp32/issues/7165)
573+
9. Increase `ASYNC_QUEUE_LENGTH` to default **512 from 32** and make it user-configurable
574+
10. Increase `ASYNC_TCP_PRIORITY` to default **10 from 3**, and make it user-configurable
575+
570576

571577
---
572578
---

changelog.md

Lines changed: 7 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 v1.3.1](#Releases-v131)
1415
* [Releases v1.3.0](#Releases-v130)
1516
* [Releases v1.2.0](#Releases-v120)
1617
* [Releases v1.1.0](#Releases-v110)
@@ -21,6 +22,12 @@
2122

2223
## Changelog
2324

25+
### Releases v1.3.1
26+
27+
1. Increase `ASYNC_QUEUE_LENGTH` to default 512 from 32 and make it user-configurable
28+
2. Increase `ASYNC_TCP_PRIORITY` to default 10 from 3, and make it user-configurable
29+
30+
2431
### Releases v1.3.0
2532

2633
1. Remove hard-code if possible

examples/multiFileProject/multiFileProject.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,11 @@
1212

1313
#pragma once
1414

15+
// Use larger queue size if necessary for large data transfer. Default is 512 bytes if not defined here
16+
#define ASYNC_QUEUE_LENGTH 512
17+
18+
// Use larger priority if necessary. Default is 10 if not defined here. Must be > 4 or adjusted to 4
19+
#define CONFIG_ASYNC_TCP_PRIORITY (12)
20+
1521
// Can be included as many times as necessary, without `Multiple Definitions` Linker Error
1622
#include "AsyncTCP_SSL.hpp"

examples/multiFileProject/multiFileProject.ino

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

17-
#define ASYNC_TCP_SSL_VERSION_MIN_TARGET "AsyncTCP_SSL v1.3.0"
18-
#define ASYNC_TCP_SSL_VERSION_MIN 1003000
17+
#define ASYNC_TCP_SSL_VERSION_MIN_TARGET "AsyncTCP_SSL v1.3.1"
18+
#define ASYNC_TCP_SSL_VERSION_MIN 1003001
1919

2020
#include "multiFileProject.h"
2121

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name":"AsyncTCP_SSL",
3-
"version": "1.3.0",
3+
"version": "1.3.1",
44
"keywords":"communication, async, tcp, ssl, tls, mbed, free-rtos",
55
"description":"Asynchronous SSL TCP Library for ESP32. This library is the base for future and more advanced Async SSL libraries, such as AsyncSSLWebServer, AsyncHTTPSRequest, etc",
66
"authors":

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=AsyncTCP_SSL
2-
version=1.3.0
2+
version=1.3.1
33
author=Hristo Gochkov, Maarten Fremouw, Thorsten von Eicken, Khoi Hoang
44
maintainer=Khoi Hoang <[email protected]>
55
sentence=Asynchronous SSL TCP Library for ESP32.

0 commit comments

Comments
 (0)