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

Commit f95cc9e

Browse files
authored
v1.7.0 to add support to ESP32-S3
### Releases v1.7.0 1. Add support to new `ESP32-S3` 2. Add `LittleFS` support to `ESP32-C3` 3. Use ESP32-core's LittleFS library instead of Lorol's LITTLEFS library for v2.0.0+
1 parent 8a211da commit f95cc9e

File tree

28 files changed

+259
-123
lines changed

28 files changed

+259
-123
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Please ensure to specify the following:
2929
Arduino IDE version: 1.8.19
3030
ESP32 Core Version 2.0.2
3131
OS: Ubuntu 20.04 LTS
32-
Linux xy-Inspiron-3593 5.4.0-96-generic #109-Ubuntu SMP Wed Jan 12 16:49:16 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
32+
Linux xy-Inspiron-3593 5.4.0-99-generic #112-Ubuntu SMP Thu Feb 3 13:50:55 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
3333
3434
Context:
3535
I encountered an endless loop while trying to connect to Local WiFi.

README.md

Lines changed: 125 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](#Contributing)
77
[![GitHub issues](https://img.shields.io/github/issues/khoih-prog/AsyncHTTPRequest_Generic.svg)](http://github.com/khoih-prog/AsyncHTTPRequest_Generic/issues)
88

9-
<a href="https://www.buymeacoffee.com/khoihprog6" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 60px !important;width: 217px !important;" ></a>
9+
<a href="https://www.buymeacoffee.com/khoihprog6" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 50px !important;width: 181px !important;" ></a>
1010

1111
---
1212
---
@@ -75,6 +75,8 @@
7575
* [6. AsyncWebClientRepeating_STM32_LAN8720 running on STM32F4 BLACK_F407VE using LAN8720](#6-asyncwebclientrepeating_stm32_lan8720-running-on-stm32f4-black_f407ve-using-lan8720)
7676
* [7. AsyncHTTPMultiRequests_WT32_ETH01 on ESP32_DEV with ETH_PHY_LAN8720](#7-asynchttpmultirequests_wt32_eth01-on-esp32_dev-with-eth_phy_lan8720)
7777
* [8. AsyncHTTPRequest_WT32_ETH01 on ESP32_DEV with ETH_PHY_LAN8720](#8-asynchttprequest_wt32_eth01-on-esp32_dev-with-eth_phy_lan8720)
78+
* [9. AsyncHTTPRequest_ESP_WiFiManager running on ESP32C3_DEV](#9-asynchttprequest_esp_wifimanager-running-on-ESP32C3_DEV) **New**
79+
* [10. AsyncHTTPRequest_ESP_WiFiManager running on ESP32S3_DEV](#10-asynchttprequest_esp_wifimanager-running-on-ESP32S3_DEV) **New**
7880
* [Debug](#debug)
7981
* [Troubleshooting](#troubleshooting)
8082
* [Issues](#issues)
@@ -136,7 +138,11 @@ This library is based on, modified from:
136138

137139
### Currently Supported Boards
138140

139-
#### 1. ESP32 including ESP32-S2 (ESP32-S2 Saola, AI-Thinker ESP-12K, etc.)
141+
#### 1. ESP32 including ESP32_S2 (ESP32_S2 Saola, AI-Thinker ESP-12K, etc.), ESP32_S3 and ESP32_C3
142+
143+
1. **ESP32-S2 (ESP32-S2 Saola, AI-Thinker ESP-12K, etc.) using EEPROM, SPIFFS or LittleFS**.
144+
2. **ESP32-C3 (ARDUINO_ESP32C3_DEV) using EEPROM, SPIFFS or LittleFS**.
145+
3. **ESP32-S3 (ESP32S3_DEV, ESP32_S3_BOX, UM TINYS3, UM PROS3, UM FEATHERS3, etc.) using EEPROM, SPIFFS or LittleFS**.
140146

141147
#### 2. ESP8266
142148

@@ -169,7 +175,7 @@ This library is based on, modified from:
169175
8. [`STM32Ethernet library v1.2.0+`](https://github.com/stm32duino/STM32Ethernet) for STM32 using built-in Ethernet LAN8742A on (Nucleo-144, Discovery). [![GitHub release](https://img.shields.io/github/release/stm32duino/STM32Ethernet.svg)](https://github.com/stm32duino/STM32Ethernet/releases/latest)
170176
9. [`LwIP library v2.1.2+`](https://github.com/stm32duino/LwIP) for STM32 using built-in Ethernet LAN8742A on (Nucleo-144, Discovery). [![GitHub release](https://img.shields.io/github/release/stm32duino/LwIP.svg)](https://github.com/stm32duino/LwIP/releases/latest)
171177
10. [`STM32AsyncTCP library v1.0.1+`](https://github.com/khoih-prog/STM32AsyncTCP) for built-in Ethernet on (Nucleo-144, Discovery). To install manually for Arduino IDE.
172-
11. [`ESPAsync_WiFiManager library v1.11.0+`](https://github.com/khoih-prog/ESPAsync_WiFiManager) for ESP32/ESP8266 using some examples. [![GitHub release](https://img.shields.io/github/release/khoih-prog/ESPAsync_WiFiManager.svg)](https://github.com/khoih-prog/ESPAsync_WiFiManager/releases)
178+
11. [`ESPAsync_WiFiManager library v1.12.1+`](https://github.com/khoih-prog/ESPAsync_WiFiManager) for ESP32/ESP8266 using some examples. [![GitHub release](https://img.shields.io/github/release/khoih-prog/ESPAsync_WiFiManager.svg)](https://github.com/khoih-prog/ESPAsync_WiFiManager/releases)
173179
12. [`LittleFS_esp32 v1.0.6+`](https://github.com/lorol/LITTLEFS) for ESP32-based boards using LittleFS. To install, check [![arduino-library-badge](https://www.ardu-badge.com/badge/LittleFS_esp32.svg?)](https://www.ardu-badge.com/LittleFS_esp32).
174180
13. [`WebServer_WT32_ETH01 library v1.4.1+`](https://github.com/khoih-prog/WebServer_WT32_ETH01) if necessary to use WT32_ETH01 boards. To install, check [![arduino-library-badge](https://www.ardu-badge.com/badge/WebServer_WT32_ETH01.svg?)](https://www.ardu-badge.com/WebServer_WT32_ETH01)
175181

@@ -191,7 +197,7 @@ The best and easiest way is to use `Arduino Library Manager`. Search for `AsyncH
191197

192198
1. Install [VS Code](https://code.visualstudio.com/)
193199
2. Install [PlatformIO](https://platformio.org/platformio-ide)
194-
3. Install [**AsyncHTTPRequest_Generic** library](https://platformio.org/lib/show/11235/AsyncHTTPRequest_Generic) by using [Library Manager](https://platformio.org/lib/show/11235/AsyncHTTPRequest_Generic/installation). Search for AsyncHTTPRequest_Generic in [Platform.io Author's Libraries](https://platformio.org/lib/search?query=author:%22Khoi%20Hoang%22)
200+
3. Install [**AsyncHTTPRequest_Generic** library](https://registry.platformio.org/libraries/khoih-prog/AsyncHTTPRequest_Generic) by using [Library Manager](https://registry.platformio.org/libraries/khoih-prog/AsyncHTTPRequest_Generic/installation). Search for AsyncHTTPRequest_Generic in [Platform.io Author's Libraries](https://platformio.org/lib/search?query=author:%22Khoi%20Hoang%22)
195201
4. Use included [platformio.ini](platformio/platformio.ini) file from examples to ensure that all dependent libraries will installed automatically. Please visit documentation for the other options and examples at [Project Configuration File](https://docs.platformio.org/page/projectconf.html)
196202

197203
---
@@ -457,8 +463,8 @@ Please take a look at other examples, as well.
457463
```cpp
458464
#include "defines.h"
459465

460-
#define ASYNC_HTTP_REQUEST_GENERIC_VERSION_MIN_TARGET "AsyncHTTPRequest_Generic v1.6.0"
461-
#define ASYNC_HTTP_REQUEST_GENERIC_VERSION_MIN 1006000
466+
#define ASYNC_HTTP_REQUEST_GENERIC_VERSION_MIN_TARGET "AsyncHTTPRequest_Generic v1.7.0"
467+
#define ASYNC_HTTP_REQUEST_GENERIC_VERSION_MIN 1007000
462468

463469
// 600s = 10 minutes to not flooding, 60s in testing
464470
#define HTTP_REQUEST_INTERVAL_MS 60000 //600000
@@ -689,7 +695,7 @@ IPAddress ip(192, 168, 2, 232);
689695

690696
```
691697
Start AsyncHTTPRequest_STM32 on NUCLEO_F767ZI
692-
AsyncHTTPRequest_Generic v1.6.0
698+
AsyncHTTPRequest_Generic v1.7.0
693699
AsyncHTTPRequest @ IP : 192.168.2.178
694700
695701
**************************************
@@ -734,7 +740,7 @@ week_number: 3
734740

735741
```
736742
Starting AsyncHTTPRequest_ESP_WiFiManager using LittleFS on ESP8266_NODEMCU
737-
AsyncHTTPRequest_Generic v1.6.0
743+
AsyncHTTPRequest_Generic v1.7.0
738744
Stored: SSID = HueNet1, Pass = 12345678
739745
Got stored Credentials. Timeout 120s
740746
ConnectMultiWiFi in setup
@@ -758,7 +764,6 @@ utc_offset: -05:00
758764
week_number: 3
759765
**************************************
760766
HHHHHH
761-
762767
```
763768

764769
---
@@ -767,7 +772,7 @@ HHHHHH
767772

768773
```
769774
Starting AsyncHTTPRequest_ESP_WiFiManager using SPIFFS on ESP32_DEV
770-
AsyncHTTPRequest_Generic v1.6.0
775+
AsyncHTTPRequest_Generic v1.7.0
771776
Stored: SSID = HueNet1, Pass = 12345678
772777
Got stored Credentials. Timeout 120s
773778
ConnectMultiWiFi in setup
@@ -809,7 +814,6 @@ utc_offset: -05:00
809814
week_number: 3
810815
**************************************
811816
HHHHHHHHH HHHHHHHHHH HHHHHHHHHH
812-
813817
```
814818

815819
---
@@ -818,7 +822,7 @@ HHHHHHHHH HHHHHHHHHH HHHHHHHHHH
818822

819823
```
820824
Starting AsyncHTTPRequest_ESP using ESP8266_NODEMCU
821-
AsyncHTTPRequest_Generic v1.6.0
825+
AsyncHTTPRequest_Generic v1.7.0
822826
Connecting to WiFi SSID: HueNet1
823827
...........
824828
HTTP WebServer is @ IP : 192.168.2.81
@@ -851,7 +855,7 @@ HHHHHHHHH HHHHHHHHHH HHHHHHHHHH H
851855

852856
```
853857
Start AsyncWebClientRepeating_STM32 on NUCLEO_F767ZI
854-
AsyncHTTPRequest_Generic v1.6.0
858+
AsyncHTTPRequest_Generic v1.7.0
855859
AsyncHTTPRequest @ IP : 192.168.2.72
856860
857861
**************************************
@@ -895,8 +899,6 @@ AsyncHTTPRequest @ IP : 192.168.2.72
895899
,;;;;; ;;`;; ;; ;; .;; ;; ,;, ;; ;;;, ;; ;;
896900
;; ,;, ;; .;; ;;;;;: ;;;;;: ,;;;;;: ;; ;;, ;;;;;;
897901
;; ;; ;; ;;` ;;;;. `;;;: ,;;;;;, ;; ;;, ;;;;
898-
899-
900902
```
901903

902904
---
@@ -906,7 +908,7 @@ AsyncHTTPRequest @ IP : 192.168.2.72
906908

907909
```
908910
Start AsyncWebClientRepeating_STM32_LAN8720 on BLACK_F407VE
909-
AsyncHTTPRequest_Generic v1.6.0
911+
AsyncHTTPRequest_Generic v1.7.0
910912
AsyncHTTPRequest @ IP : 192.168.2.150
911913
912914
@@ -962,7 +964,7 @@ AsyncHTTPRequest @ IP : 192.168.2.150
962964
```
963965
Starting AsyncHTTPRequest_WT32_ETH01 on ESP32_DEV with ETH_PHY_LAN8720
964966
WebServer_WT32_ETH01 v1.4.1
965-
AsyncHTTPRequest_Generic v1.6.0
967+
AsyncHTTPRequest_Generic v1.7.0
966968
ETH MAC: A8:03:2A:A1:61:73, IPv4: 192.168.2.232, FULL_DUPLEX, 100Mbps
967969
AsyncHTTPRequest @ IP : 192.168.2.232
968970
@@ -988,7 +990,7 @@ H
988990
```
989991
Starting AsyncHTTPRequest_WT32_ETH01 on ESP32_DEV with ETH_PHY_LAN8720
990992
WebServer_WT32_ETH01 v1.4.1
991-
AsyncHTTPRequest_Generic v1.6.0
993+
AsyncHTTPRequest_Generic v1.7.0
992994
ETH MAC: A8:03:2A:A1:61:73, IPv4: 192.168.2.232, FULL_DUPLEX, 100Mbps
993995
AsyncHTTPRequest @ IP : 192.168.2.232
994996
@@ -1012,6 +1014,107 @@ week_number: 52
10121014
**************************************
10131015
```
10141016

1017+
---
1018+
1019+
#### 9. [AsyncHTTPRequest_ESP_WiFiManager](examples/AsyncHTTPRequest_ESP_WiFiManager) running on ESP32C3_DEV
1020+
1021+
```
1022+
Starting AsyncHTTPRequest_ESP_WiFiManager using LittleFS on ESP32C3_DEV
1023+
ESPAsync_WiFiManager v1.12.1
1024+
AsyncHTTPRequest_Generic v1.7.0
1025+
Stored: SSID = HueNet1, Pass = password
1026+
Got stored Credentials. Timeout 120s
1027+
ConnectMultiWiFi in setup
1028+
After waiting 9.23 secs more in setup(), connection result is connected. Local IP: 192.168.2.85
1029+
H
1030+
**************************************
1031+
abbreviation: EST
1032+
client_ip: 45.72.193.77
1033+
datetime: 2022-02-11T22:20:36.434352-05:00
1034+
day_of_week: 5
1035+
day_of_year: 42
1036+
dst: false
1037+
dst_from:
1038+
dst_offset: 0
1039+
dst_until:
1040+
raw_offset: -18000
1041+
timezone: America/Toronto
1042+
unixtime: 1644636036
1043+
utc_datetime: 2022-02-12T03:20:36.434352+00:00
1044+
utc_offset: -05:00
1045+
week_number: 6
1046+
**************************************
1047+
HHHHHH
1048+
**************************************
1049+
abbreviation: EST
1050+
client_ip: 45.72.193.77
1051+
datetime: 2022-02-11T22:21:36.398307-05:00
1052+
day_of_week: 5
1053+
day_of_year: 42
1054+
dst: false
1055+
dst_from:
1056+
dst_offset: 0
1057+
dst_until:
1058+
raw_offset: -18000
1059+
timezone: America/Toronto
1060+
unixtime: 1644636096
1061+
utc_datetime: 2022-02-12T03:21:36.398307+00:00
1062+
utc_offset: -05:00
1063+
week_number: 6
1064+
**************************************
1065+
```
1066+
1067+
---
1068+
1069+
#### 10. [AsyncHTTPRequest_ESP_WiFiManager](examples/AsyncHTTPRequest_ESP_WiFiManager) running on ESP32S3_DEV
1070+
1071+
1072+
```
1073+
Starting AsyncHTTPRequest_ESP_WiFiManager using LittleFS on ESP32S3_DEV
1074+
ESPAsync_WiFiManager v1.12.1
1075+
AsyncHTTPRequest_Generic v1.7.0
1076+
Stored: SSID = HueNet1, Pass = password
1077+
Got stored Credentials. Timeout 120s
1078+
ConnectMultiWiFi in setup
1079+
After waiting 7.77 secs more in setup(), connection result is connected. Local IP: 192.168.2.83
1080+
H
1081+
**************************************
1082+
abbreviation: EST
1083+
client_ip: 45.72.193.77
1084+
datetime: 2022-02-11T22:58:46.055783-05:00
1085+
day_of_week: 5
1086+
day_of_year: 42
1087+
dst: false
1088+
dst_from:
1089+
dst_offset: 0
1090+
dst_until:
1091+
raw_offset: -18000
1092+
timezone: America/Toronto
1093+
unixtime: 1644638326
1094+
utc_datetime: 2022-02-12T03:58:46.055783+00:00
1095+
utc_offset: -05:00
1096+
week_number: 6
1097+
**************************************
1098+
1099+
HHHHHH
1100+
**************************************
1101+
abbreviation: EST
1102+
client_ip: 45.72.193.77
1103+
datetime: 2022-02-11T22:59:45.988493-05:00
1104+
day_of_week: 5
1105+
day_of_year: 42
1106+
dst: false
1107+
dst_from:
1108+
dst_offset: 0
1109+
dst_until:
1110+
raw_offset: -18000
1111+
timezone: America/Toronto
1112+
unixtime: 1644638385
1113+
utc_datetime: 2022-02-12T03:59:45.988493+00:00
1114+
utc_offset: -05:00
1115+
week_number: 6
1116+
**************************************
1117+
```
10151118

10161119
---
10171120
---
@@ -1066,6 +1169,10 @@ Submit issues to: [AsyncHTTPRequest_Generic issues](https://github.com/khoih-pro
10661169
9. Fix `multiple-definitions` linker error and weird bug related to `src_cpp`.
10671170
10. Optimize library code by using `reference-passing` instead of `value-passing`
10681171
11. Enable compatibility with old code to include only `AsyncHTTPRequest_Generic.h`
1172+
12. Add support to **ESP32-S3 (ESP32S3_DEV, ESP32_S3_BOX, UM TINYS3, UM PROS3, UM FEATHERS3, etc.) using EEPROM, SPIFFS or LittleFS**
1173+
13. Add `LittleFS` support to **ESP32-C3**
1174+
14. Use `ESP32-core's LittleFS` library instead of `Lorol's LITTLEFS` library for ESP32 core v2.0.0+
1175+
10691176

10701177
---
10711178
---

changelog.md

Lines changed: 7 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.7.0](#releases-v170)
1516
* [Releases v1.6.0](#releases-v160)
1617
* [Releases v1.5.0](#releases-v150)
1718
* [Releases v1.4.1](#releases-v141)
@@ -34,6 +35,12 @@
3435

3536
## Changelog
3637

38+
### Releases v1.7.0
39+
40+
1. Add support to new `ESP32-S3`
41+
2. Add `LittleFS` support to `ESP32-C3`
42+
3. Use ESP32-core's LittleFS library instead of Lorol's LITTLEFS library for v2.0.0+
43+
3744
### Releases v1.6.0
3845

3946
1. Reduce the breaking effect of v1.5.0 by enabling compatibility with old code to include only `AsyncHTTPRequest_Generic.h`

examples/AsyncCustomHeader_STM32/AsyncCustomHeader_STM32.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
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.6.0"
28-
#define ASYNC_HTTP_REQUEST_GENERIC_VERSION_MIN 1006000
27+
#define ASYNC_HTTP_REQUEST_GENERIC_VERSION_MIN_TARGET "AsyncHTTPRequest_Generic v1.7.0"
28+
#define ASYNC_HTTP_REQUEST_GENERIC_VERSION_MIN 1007000
2929

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

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.6.0"
39-
#define ASYNC_HTTP_REQUEST_GENERIC_VERSION_MIN 1006000
38+
#define ASYNC_HTTP_REQUEST_GENERIC_VERSION_MIN_TARGET "AsyncHTTPRequest_Generic v1.7.0"
39+
#define ASYNC_HTTP_REQUEST_GENERIC_VERSION_MIN 1007000
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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ 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.6.0"
33-
#define ASYNC_HTTP_REQUEST_GENERIC_VERSION_MIN 1006000
32+
#define ASYNC_HTTP_REQUEST_GENERIC_VERSION_MIN_TARGET "AsyncHTTPRequest_Generic v1.7.0"
33+
#define ASYNC_HTTP_REQUEST_GENERIC_VERSION_MIN 1007000
3434

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

0 commit comments

Comments
 (0)