diff --git a/README.md b/README.md index 437a74f3..af94fbe3 100644 --- a/README.md +++ b/README.md @@ -62,6 +62,9 @@ * [For WT32_ETH01](#for-wt32_eth01) * [1. AsyncHTTPRequest_WT32_ETH01](examples/WT32_ETH01/AsyncHTTPRequest_WT32_ETH01) * [2. AsyncHTTPMultiRequests_WT32_ETH01](examples/WT32_ETH01/AsyncHTTPMultiRequests_WT32_ETH01) + * [For ESP32_ENC](#for-ESP32_ENC) **New** + * [1. AsyncHTTPRequest_ESP32_ENC](examples/ESP32_ENC/AsyncHTTPRequest_ESP32_ENC) + * [2. AsyncHTTPMultiRequests_ESP32_ENC](examples/ESP32_ENC/AsyncHTTPMultiRequests_ESP32_ENC) * [For ESP or STM32](#For-ESP-or-STM32) * [1. **multiFileProject**](examples/multiFileProject) **New** * [Example AsyncHTTPRequest_STM32](#example-asynchttprequest_stm32) @@ -74,11 +77,12 @@ * [4. AsyncHTTPRequest_ESP running on ESP8266_NODEMCU](#4-asynchttprequest_esp-running-on-esp8266_nodemcu) * [5. AsyncWebClientRepeating_STM32 running on STM32F7 Nucleo-144 NUCLEO_F767ZI using built-in LAN8742A](#5-asyncwebclientrepeating_stm32-running-on-stm32f7-nucleo-144-nucleo_f767zi-using-built-in-lan8742a) * [6. AsyncHTTPRequest_WT32_ETH01 on ESP32_DEV with ETH_PHY_LAN8720](#6-asynchttprequest_wt32_eth01-on-esp32_dev-with-eth_phy_lan8720) - * [7. AsyncHTTPRequest_ESP_WiFiManager running on ESP32C3_DEV](#7-asynchttprequest_esp_wifimanager-running-on-ESP32C3_DEV) **New** - * [8. AsyncHTTPRequest_ESP_WiFiManager running on ESP32S3_DEV](#8-asynchttprequest_esp_wifimanager-running-on-ESP32S3_DEV) **New** - * [9. AsyncHTTPRequest_ESP_Multi running on ESP32_DEV](#9-AsyncHTTPRequest_ESP_Multi-running-on-ESP32_DEV) **New** + * [7. AsyncHTTPRequest_ESP_WiFiManager running on ESP32C3_DEV](#7-asynchttprequest_esp_wifimanager-running-on-ESP32C3_DEV) + * [8. AsyncHTTPRequest_ESP_WiFiManager running on ESP32S3_DEV](#8-asynchttprequest_esp_wifimanager-running-on-ESP32S3_DEV) + * [9. AsyncHTTPRequest_ESP_Multi running on ESP32_DEV](#9-AsyncHTTPRequest_ESP_Multi-running-on-ESP32_DEV) * [10. AsyncHTTPRequest_ESP8266_Ethernet running on ESP8266_NODEMCU_ESP12E using ESP8266_W5500 Ethernet](#10-AsyncHTTPRequest_ESP8266_Ethernet-running-on-ESP8266_NODEMCU_ESP12E-using-ESP8266_W5500-Ethernet) **New** * [11. AsyncHTTPRequest_ESP8266_Ethernet running on ESP8266_NODEMCU_ESP12E using ESP8266_ENC28J60 Ethernet](#11-AsyncHTTPRequest_ESP8266_Ethernet-running-on-ESP8266_NODEMCU_ESP12E-using-ESP8266_ENC28J60-Ethernet) **New** + * [12. AsyncHTTPRequest_ESP32_ENC on ESP32_DEV with ESP32_ENC28J60](#12-AsyncHTTPRequest_ESP8266_Ethernet-on-ESP32_DEV-with-ESP32_ENC28J60) **New** * [Debug](#debug) * [Troubleshooting](#troubleshooting) * [Issues](#issues) @@ -103,7 +107,7 @@ Please have a look at [HOWTO Fix `Multiple Definitions` Linker Error](#howto-fix ### Features -1. Asynchronous HTTP Request library for ESP8266, including ESP32-S2 (ESP32-S2 Saola, AI-Thinker ESP-12K, etc.) using built-in WiFi, WT32_ETH01 (ESP32 + LAN8720) and STM32 boards using LAN8720 or built-in LAN8742A Ethernet. +1. Asynchronous HTTP Request library for ESP8266, including ESP32-S2 (ESP32-S2 Saola, AI-Thinker ESP-12K, etc.) using built-in WiFi, WT32_ETH01 (ESP32 + LAN8720), ESP32_ENC (ESP32 + LwIP ENC28J60) and STM32 boards using LAN8720 or built-in LAN8742A Ethernet. 2. Providing a subset of HTTP. 3. Relying on on **[`ESPAsyncTCP`](https://github.com/me-no-dev/ESPAsyncTCP) for ESP8266, [`AsyncTCP`](https://github.com/me-no-dev/AsyncTCP) for ESP32** using built-in WiFi 4. Relying on **[`STM32duino LwIP`](https://github.com/stm32duino/LwIP)/[`STM32duino STM32Ethernet`](https://github.com/stm32duino/STM32Ethernet)/[`STM32AsyncTCP`](https://github.com/philbowles/STM32AsyncTCP) for STM32 using LAN8720 or built-in LAN8742A Ethernet.** @@ -169,6 +173,8 @@ Support for LAN8720 has been **removed** from STM32 core v2.3.0 #### 5. **WT32_ETH01** using ESP32-based boards and LAN8720 Ethernet +#### 6. **ESP32 boards using LwIP ENC28J60 Ethernet** + --- --- @@ -186,6 +192,7 @@ Support for LAN8720 has been **removed** from STM32 core v2.3.0 11. [`ESPAsync_WiFiManager library v1.15.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) 12. [`LittleFS_esp32 v1.0.6+`](https://github.com/lorol/LITTLEFS) for ESP32-based boards using LittleFS with ESP32 core **v1.0.5-**. To install, check [![arduino-library-badge](https://www.ardu-badge.com/badge/LittleFS_esp32.svg?)](https://www.ardu-badge.com/LittleFS_esp32). **Notice**: This [`LittleFS_esp32 library`](https://github.com/lorol/LITTLEFS) has been integrated to Arduino [ESP32 core v1.0.6+](https://github.com/espressif/arduino-esp32/tree/master/libraries/LITTLEFS) and **you don't need to install it if using ESP32 core v1.0.6+** 13. [`WebServer_WT32_ETH01 library v1.5.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) +14. [`WebServer_ESP32_ENC library v1.5.1+`](https://github.com/khoih-prog/WebServer_ESP32_ENC) if necessary to use ESP32 boards using LwIP ENC28J60 Ethernet. To install, check [![arduino-library-badge](https://www.ardu-badge.com/badge/WebServer_ESP32_ENC.svg?)](https://www.ardu-badge.com/WebServer_ESP32_ENC) --- @@ -470,7 +477,12 @@ https://github.com/khoih-prog/AsyncHTTPRequest_Generic/blob/e3dd512e7aa9e60c8504 #### For WT32_ETH01 1. [AsyncHTTPRequest_WT32_ETH01](examples/WT32_ETH01/AsyncHTTPRequest_WT32_ETH01) - 2. [AsyncHTTPMultiRequests_WT32_ETH01](examples/WT32_ETH01/AsyncHTTPMultiRequests_ESP) + 2. [AsyncHTTPMultiRequests_WT32_ETH01](examples/WT32_ETH01/AsyncHTTPMultiRequests_WT32_ETH01) + +#### For ESP32_ENC + + 1. [AsyncHTTPRequest_ESP32_ENC](examples/WT32_ETH01/AsyncHTTPRequest_ESP32_ENC) **New** + 2. [AsyncHTTPMultiRequests_ESP32_ENC](examples/WT32_ETH01/AsyncHTTPMultiRequests_ESP32_ENC) **New** #### For ESP or STM32 @@ -504,43 +516,44 @@ https://github.com/khoih-prog/AsyncHTTPRequest_Generic/blob/639ce917e54c296f15fd ```cpp Start AsyncHTTPRequest_STM32 on NUCLEO_F767ZI -AsyncHTTPRequest_Generic v1.10.2 +AsyncHTTPRequest_Generic v1.11.0 AsyncHTTPRequest @ IP : 192.168.2.178 ************************************** -abbreviation: EDT +abbreviation: EST client_ip: aaa.bbb.ccc.ddd -datetime: 2022-10-20T16:16:16.759058-04:00 -day_of_week: 4 -day_of_year: 293 -dst: true -dst_from: 2022-03-13T07:00:00+00:00 -dst_offset: 3600 -dst_until: 2022-11-06T06:00:00+00:00 +datetime: 2022-11-28T22:51:17.751072-05:00 +day_of_week: 1 +day_of_year: 332 +dst: false +dst_from: +dst_offset: 0 +dst_until: raw_offset: -18000 timezone: America/Toronto -unixtime: 1666296976 -utc_datetime: 2022-10-20T20:16:16.759058+00:00 -utc_offset: -04:00 -week_number: 42 -********************* - +unixtime: 1669693877 +utc_datetime: 2022-11-29T03:51:17.751072+00:00 +utc_offset: -05:00 +week_number: 48 ************************************** -abbreviation: EDT +HHHHHH +************************************** +abbreviation: EST client_ip: aaa.bbb.ccc.ddd -datetime: 2022-10-20T16:17:16.713722-04:00 -day_of_week: 4 -day_of_year: 293 -dst: true -dst_from: 2022-03-13T07:00:00+00:00 -dst_offset: 3600 -dst_until: 2022-11-06T06:00:00+00:00 +datetime: 2022-11-28T22:52:17.762039-05:00 +day_of_week: 1 +day_of_year: 332 +dst: false +dst_from: +dst_offset: 0 +dst_until: raw_offset: -18000 timezone: America/Toronto -unixtime: 1666297036 -utc_datetime: 2022-10-20T20:17:16.713722+00:00 -utc_offset: -04:00 -week_number: 42 +unixtime: 1669693937 +utc_datetime: 2022-11-29T03:52:17.762039+00:00 +utc_offset: -05:00 +week_number: 48 +************************************** ``` --- @@ -549,7 +562,7 @@ week_number: 42 ```cpp Starting AsyncHTTPRequest_ESP_WiFiManager using LittleFS on ESP8266_NODEMCU -AsyncHTTPRequest_Generic v1.10.2 +AsyncHTTPRequest_Generic v1.11.0 Stored: SSID = HueNet1, Pass = 12345678 Got stored Credentials. Timeout 120s ConnectMultiWiFi in setup @@ -558,19 +571,19 @@ H ************************************** abbreviation: EST client_ip: aaa.bbb.ccc.ddd -datetime: 2022-11-09T22:02:36.392636-05:00 -day_of_week: 3 -day_of_year: 313 +datetime: 2022-11-28T22:49:17.758292-05:00 +day_of_week: 1 +day_of_year: 332 dst: false dst_from: dst_offset: 0 dst_until: raw_offset: -18000 timezone: America/Toronto -unixtime: 1668049356 -utc_datetime: 2022-11-10T03:02:36.392636+00:00 +unixtime: 1669693757 +utc_datetime: 2022-11-29T03:49:17.758292+00:00 utc_offset: -05:00 -week_number: 45 +week_number: 48 ************************************** HHHHHH ``` @@ -581,7 +594,7 @@ HHHHHH ```cpp Starting AsyncHTTPRequest_ESP_WiFiManager using SPIFFS on ESP32_DEV -AsyncHTTPRequest_Generic v1.10.2 +AsyncHTTPRequest_Generic v1.11.0 Stored: SSID = HueNet1, Pass = 12345678 Got stored Credentials. Timeout 120s ConnectMultiWiFi in setup @@ -590,37 +603,37 @@ H ************************************** abbreviation: EST client_ip: aaa.bbb.ccc.ddd -datetime: 2022-11-09T22:02:45.237136-05:00 -day_of_week: 3 -day_of_year: 313 +datetime: 2022-11-28T22:47:17.764158-05:00 +day_of_week: 1 +day_of_year: 332 dst: false dst_from: dst_offset: 0 dst_until: raw_offset: -18000 timezone: America/Toronto -unixtime: 1668049365 -utc_datetime: 2022-11-10T03:02:45.237136+00:00 +unixtime: 1669693637 +utc_datetime: 2022-11-29T03:47:17.764158+00:00 utc_offset: -05:00 -week_number: 45 +week_number: 48 ************************************** -HHHHHHHHH HHHHHHHHHH HHHHHHHHHH H +HHHHHH ************************************** abbreviation: EST client_ip: aaa.bbb.ccc.ddd -datetime: 2022-11-09T22:02:45.237136-05:00 -day_of_week: 3 -day_of_year: 313 +datetime: 2022-11-28T22:48:17.761808-05:00 +day_of_week: 1 +day_of_year: 332 dst: false dst_from: dst_offset: 0 dst_until: raw_offset: -18000 timezone: America/Toronto -unixtime: 1668049365 -utc_datetime: 2022-11-10T03:02:45.237136+00:00 +unixtime: 1669693697 +utc_datetime: 2022-11-29T03:48:17.761808+00:00 utc_offset: -05:00 -week_number: 45 +week_number: 48 ************************************** HHHHHHHHH HHHHHHHHHH HHHHHHHHHH ``` @@ -631,7 +644,7 @@ HHHHHHHHH HHHHHHHHHH HHHHHHHHHH ```cpp Starting AsyncHTTPRequest_ESP using ESP8266_NODEMCU -AsyncHTTPRequest_Generic v1.10.2 +AsyncHTTPRequest_Generic v1.11.0 Connecting to WiFi SSID: HueNet1 ........... HTTP WebServer is @ IP : 192.168.2.81 @@ -639,19 +652,19 @@ HTTP WebServer is @ IP : 192.168.2.81 ************************************** abbreviation: EST client_ip: aaa.bbb.ccc.ddd -datetime: 2022-11-09T22:02:55.235181-05:00 -day_of_week: 3 -day_of_year: 313 +datetime: 2022-11-28T22:46:17.770039-05:00 +day_of_week: 1 +day_of_year: 332 dst: false dst_from: dst_offset: 0 dst_until: raw_offset: -18000 timezone: America/Toronto -unixtime: 1668049375 -utc_datetime: 2022-11-10T03:02:55.235181+00:00 +unixtime: 1669693577 +utc_datetime: 2022-11-29T03:46:17.770039+00:00 utc_offset: -05:00 -week_number: 45 +week_number: 48 ************************************** HHHHHHHHH HHHHHHHHHH HHHHHHHHHH H ``` @@ -663,7 +676,7 @@ HHHHHHHHH HHHHHHHHHH HHHHHHHHHH H ```cpp Start AsyncWebClientRepeating_STM32 on NUCLEO_F767ZI -AsyncHTTPRequest_Generic v1.10.2 +AsyncHTTPRequest_Generic v1.11.0 AsyncHTTPRequest @ IP : 192.168.2.72 ************************************** @@ -717,26 +730,26 @@ AsyncHTTPRequest @ IP : 192.168.2.72 ```cpp Starting AsyncHTTPRequest_WT32_ETH01 on ESP32_DEV with ETH_PHY_LAN8720 WebServer_WT32_ETH01 v1.5.1 -AsyncHTTPRequest_Generic v1.10.2 +AsyncHTTPRequest_Generic v1.11.0 ETH MAC: A8:03:2A:A1:61:73, IPv4: 192.168.2.232, FULL_DUPLEX, 100Mbps AsyncHTTPRequest @ IP : 192.168.2.232 ************************************** abbreviation: EST client_ip: aaa.bbb.ccc.ddd -datetime: 2022-11-09T22:03:05.235913-05:00 -day_of_week: 3 -day_of_year: 313 +datetime: 2022-11-28T22:45:17.777749-05:00 +day_of_week: 1 +day_of_year: 332 dst: false dst_from: dst_offset: 0 dst_until: raw_offset: -18000 timezone: America/Toronto -unixtime: 1668049385 -utc_datetime: 2022-11-10T03:03:05.235913+00:00 +unixtime: 1669693517 +utc_datetime: 2022-11-29T03:45:17.777749+00:00 utc_offset: -05:00 -week_number: 45 +week_number: 48 ************************************** ``` @@ -747,7 +760,7 @@ week_number: 45 ```cpp Starting AsyncHTTPRequest_ESP_WiFiManager using LittleFS on ESP32C3_DEV ESPAsync_WiFiManager v1.15.0 -AsyncHTTPRequest_Generic v1.10.2 +AsyncHTTPRequest_Generic v1.11.0 Stored: SSID = HueNet1, Pass = password Got stored Credentials. Timeout 120s ConnectMultiWiFi in setup @@ -756,37 +769,37 @@ H ************************************** abbreviation: EST client_ip: aaa.bbb.ccc.ddd -datetime: 2022-11-09T22:03:15.240199-05:00 -day_of_week: 3 -day_of_year: 313 +datetime: 2022-11-28T22:42:17.777886-05:00 +day_of_week: 1 +day_of_year: 332 dst: false dst_from: dst_offset: 0 dst_until: raw_offset: -18000 timezone: America/Toronto -unixtime: 1668049395 -utc_datetime: 2022-11-10T03:03:15.240199+00:00 +unixtime: 1669693337 +utc_datetime: 2022-11-29T03:42:17.777886+00:00 utc_offset: -05:00 -week_number: 45 +week_number: 48 ************************************** HHHHHH ************************************** abbreviation: EST client_ip: aaa.bbb.ccc.ddd -datetime: 2022-11-09T22:03:25.244353-05:00 -day_of_week: 3 -day_of_year: 313 +datetime: 2022-11-28T22:43:17.774836-05:00 +day_of_week: 1 +day_of_year: 332 dst: false dst_from: dst_offset: 0 dst_until: raw_offset: -18000 timezone: America/Toronto -unixtime: 1668049405 -utc_datetime: 2022-11-10T03:03:25.244353+00:00 +unixtime: 1669693397 +utc_datetime: 2022-11-29T03:43:17.774836+00:00 utc_offset: -05:00 -week_number: 45 +week_number: 48 ************************************** ``` @@ -798,7 +811,7 @@ week_number: 45 ```cpp Starting AsyncHTTPRequest_ESP_WiFiManager using LittleFS on ESP32S3_DEV ESPAsync_WiFiManager v1.15.0 -AsyncHTTPRequest_Generic v1.10.2 +AsyncHTTPRequest_Generic v1.11.0 Stored: SSID = HueNet1, Pass = password Got stored Credentials. Timeout 120s ConnectMultiWiFi in setup @@ -807,38 +820,37 @@ H ************************************** abbreviation: EST client_ip: aaa.bbb.ccc.ddd -datetime: 2022-11-09T22:03:35.242713-05:00 -day_of_week: 3 -day_of_year: 313 +datetime: 2022-11-28T22:39:17.786244-05:00 +day_of_week: 1 +day_of_year: 332 dst: false dst_from: dst_offset: 0 dst_until: raw_offset: -18000 timezone: America/Toronto -unixtime: 1668049415 -utc_datetime: 2022-11-10T03:03:35.242713+00:00 +unixtime: 1669693157 +utc_datetime: 2022-11-29T03:39:17.786244+00:00 utc_offset: -05:00 -week_number: 45 +week_number: 48 ************************************** - HHHHHH ************************************** abbreviation: EST client_ip: aaa.bbb.ccc.ddd -datetime: 2022-11-09T22:03:45.237077-05:00 -day_of_week: 3 -day_of_year: 313 +datetime: 2022-11-28T22:40:17.786885-05:00 +day_of_week: 1 +day_of_year: 332 dst: false dst_from: dst_offset: 0 dst_until: raw_offset: -18000 timezone: America/Toronto -unixtime: 1668049425 -utc_datetime: 2022-11-10T03:03:45.237077+00:00 +unixtime: 1669693217 +utc_datetime: 2022-11-29T03:40:17.786885+00:00 utc_offset: -05:00 -week_number: 45 +week_number: 48 ************************************** ``` @@ -850,7 +862,7 @@ The terminal output of [AsyncHTTPRequest_ESP_Multi example](examples/AsyncHTTPRe ```cpp Starting AsyncHTTPRequest_ESP_Multi using ESP32_DEV -AsyncHTTPRequest_Generic v1.10.2 +AsyncHTTPRequest_Generic v1.11.0 Connecting to WiFi SSID: HueNet1 ....... AsyncHTTPSRequest @ IP : 192.168.2.88 @@ -911,44 +923,44 @@ The terminal output of [AsyncHTTPRequest_ESP8266_Ethernet example](examples/Asyn ```cpp Starting AsyncHTTPRequest_ESP8266_Ethernet on ESP8266_NODEMCU_ESP12E using ESP8266_W5500 Ethernet -AsyncHTTPRequest_Generic v1.10.2 +AsyncHTTPRequest_Generic v1.11.0 Connecting ethernet.. Ethernet IP address: 192.168.2.187 ************************************** abbreviation: EST client_ip: aaa.bbb.ccc.ddd -datetime: 2022-11-09T22:03:55.235871-05:00 -day_of_week: 3 -day_of_year: 313 +datetime: 2022-11-28T22:36:17.839711-05:00 +day_of_week: 1 +day_of_year: 332 dst: false dst_from: dst_offset: 0 dst_until: raw_offset: -18000 timezone: America/Toronto -unixtime: 1668049435 -utc_datetime: 2022-11-10T03:03:55.235871+00:00 +unixtime: 1669692977 +utc_datetime: 2022-11-29T03:36:17.839711+00:00 utc_offset: -05:00 -week_number: 45 +week_number: 48 ************************************** -HHHHHH +HHHHHH ************************************** abbreviation: EST client_ip: aaa.bbb.ccc.ddd -datetime: 2022-11-09T22:04:05.238020-05:00 -day_of_week: 3 -day_of_year: 313 +datetime: 2022-11-28T22:37:17.836815-05:00 +day_of_week: 1 +day_of_year: 332 dst: false dst_from: dst_offset: 0 dst_until: raw_offset: -18000 timezone: America/Toronto -unixtime: 1668049445 -utc_datetime: 2022-11-10T03:04:05.238020+00:00 +unixtime: 1669693037 +utc_datetime: 2022-11-29T03:37:17.836815+00:00 utc_offset: -05:00 -week_number: 45 +week_number: 48 ************************************** HH ``` @@ -961,44 +973,101 @@ The terminal output of [AsyncHTTPRequest_ESP8266_Ethernet example](examples/Asyn ```cpp Starting AsyncHTTPRequest_ESP8266_Ethernet on ESP8266_NODEMCU_ESP12E using ESP8266_ENC28J60 Ethernet -AsyncHTTPRequest_Generic v1.10.2 +AsyncHTTPRequest_Generic v1.11.0 Connecting to network : .......................................................... Ethernet IP address: 192.168.2.187 ************************************** abbreviation: EST client_ip: aaa.bbb.ccc.ddd -datetime: 2022-11-09T22:04:15.234850-05:00 -day_of_week: 3 -day_of_year: 313 +datetime: 2022-11-28T22:34:17.845633-05:00 +day_of_week: 1 +day_of_year: 332 dst: false dst_from: dst_offset: 0 dst_until: raw_offset: -18000 timezone: America/Toronto -unixtime: 1668049455 -utc_datetime: 2022-11-10T03:04:15.234850+00:00 +unixtime: 1669692857 +utc_datetime: 2022-11-29T03:34:17.845633+00:00 utc_offset: -05:00 -week_number: 45 +week_number: 48 ************************************** HHHHHH ************************************** abbreviation: EST client_ip: aaa.bbb.ccc.ddd -datetime: 2022-11-09T22:04:25.237068-05:00 -day_of_week: 3 -day_of_year: 313 +datetime: 2022-11-28T22:35:17.840985-05:00 +day_of_week: 1 +day_of_year: 332 +dst: false +dst_from: +dst_offset: 0 +dst_until: +raw_offset: -18000 +timezone: America/Toronto +unixtime: 1669692917 +utc_datetime: 2022-11-29T03:35:17.840985+00:00 +utc_offset: -05:00 +week_number: 48 +************************************** +``` + +--- + + +#### 12. [AsyncHTTPRequest_ESP32_ENC](examples/AsyncHTTPRequest_ESP32_ENC) on ESP32_DEV with ESP32_ENC28J60 + +The terminal output of [AsyncHTTPRequest_ESP32_ENC example](examples/AsyncHTTPRequest_ESP32_ENC) running on `ESP32_DEV with ESP32_ENC28J60` to demonstrate how to use ESP32 LwIP ENC28J60 Ethernet Async feature. + +```cpp +Start AsyncHTTPRequest_ESP32_ENC on ESP32_DEV with ESP32_ENC28J60 +WebServer_ESP32_ENC v1.5.1 for core v2.0.0+ +AsyncHTTPRequest_Generic v1.11.0 + +ETH Started +ETH Connected +ETH MAC: DE:AD:BE:EF:BE:0A, IPv4: 192.168.2.98 +FULL_DUPLEX, 10Mbps + +HTTP WebClient is @ IP : 192.168.2.98 + +************************************** +abbreviation: EST +client_ip: aaa.bbb.ccc.ddd +datetime: 2022-11-28T22:32:17.850186-05:00 +day_of_week: 1 +day_of_year: 332 dst: false dst_from: dst_offset: 0 dst_until: raw_offset: -18000 timezone: America/Toronto -unixtime: 1668049465 -utc_datetime: 2022-11-10T03:04:25.237068+00:00 +unixtime: 1669692737 +utc_datetime: 2022-11-29T03:32:17.850186+00:00 utc_offset: -05:00 -week_number: 45 +week_number: 48 +************************************** +HHHHHH +************************************** +abbreviation: EST +client_ip: aaa.bbb.ccc.ddd +datetime: 2022-11-28T22:33:17.848250-05:00 +day_of_week: 1 +day_of_year: 332 +dst: false +dst_from: +dst_offset: 0 +dst_until: +raw_offset: -18000 +timezone: America/Toronto +unixtime: 1669692797 +utc_datetime: 2022-11-29T03:33:17.848250+00:00 +utc_offset: -05:00 +week_number: 48 +************************************** ``` @@ -1068,6 +1137,9 @@ Submit issues to: [AsyncHTTPRequest_Generic issues](https://github.com/khoih-pro 22. Not try to reconnect to the same `host:port` after connected 23. Fix bug of wrong `reqStates` introduced from `v1.9.0` 24. Default to reconnect to the same `host:port` after connected for new HTTP sites. +25. Add support to ESP32 boards using LwIP ENC28J60 Ethernet +26. Use `allman astyle` and add `utils`. Restyle the library + --- --- diff --git a/changelog.md b/changelog.md index 64cbc3d4..d0d3c4cf 100644 --- a/changelog.md +++ b/changelog.md @@ -18,6 +18,7 @@ ## Table of Contents * [Changelog](#changelog) + * [Releases v1.11.0](#releases-v1110) * [Releases v1.10.2](#releases-v1102) * [Releases v1.10.1](#releases-v1101) * [Releases v1.10.0](#releases-v1100) @@ -51,6 +52,11 @@ ## Changelog +### Releases v1.11.0 + +1. Add support to ESP32 boards using LwIP ENC28J60 Ethernet +2. Use `allman astyle` and add `utils`. Restyle the library + ### Releases v1.10.2 1. Default to reconnect to the same `host:port` after connected for new HTTP sites. Check [Host/Headers not always sent with 1.10.1 #44](https://github.com/khoih-prog/AsyncHTTPRequest_Generic/issues44) diff --git a/library.json b/library.json index fed96e4f..3eb82090 100644 --- a/library.json +++ b/library.json @@ -1,7 +1,7 @@ { "name":"AsyncHTTPRequest_Generic", - "version": "1.10.2", - "description":"Simple Async HTTP Request library, supporting GET, POST, PUT, PATCH, DELETE and HEAD, on top of AsyncTCP libraries, such as AsyncTCP, ESPAsyncTCP, AsyncTCP_STM32, etc.. for ESP32 (including ESP32_S2, ESP32_S3 and ESP32_C3), WT32_ETH01 (ESP32 + LAN8720), ESP8266 (WiFi, W5x00 or ENC28J60) and currently STM32 with built-in LAN8742A Ethernet.", + "version": "1.11.0", + "description":"Simple Async HTTP Request library, supporting GET, POST, PUT, PATCH, DELETE and HEAD, on top of AsyncTCP libraries, such as AsyncTCP, ESPAsyncTCP, AsyncTCP_STM32, etc.. for ESP32 (including ESP32_S2, ESP32_S3 and ESP32_C3), WT32_ETH01 (ESP32 + LAN8720), ESP32 with LwIP ENC28J60, ESP8266 (WiFi, W5x00 or ENC28J60) and currently STM32 with LAN8720 or built-in LAN8742A Ethernet.", "keywords":"communication, async, tcp, http, ESP8266, ESP32, ESP32-S2, ESP32-S3, ESP32-C3, wt32-eth01, stm32, ethernet, wifi, lan8742a, nucleo-144, stm32f7, W5x00, ENC28J60", "authors": [ { @@ -66,6 +66,12 @@ "version": ">=1.5.1", "platforms": ["espressif32"] }, + { + "owner": "khoih-prog", + "name": "WebServer_ESP32_ENC", + "version": ">=1.5.1", + "platforms": ["espressif32"] + }, { "name": "STM32AsyncTCP", "version": "https://github.com/khoih-prog/STM32AsyncTCP", diff --git a/library.properties b/library.properties index 285aa126..e58f2959 100644 --- a/library.properties +++ b/library.properties @@ -1,12 +1,12 @@ name=AsyncHTTPRequest_Generic -version=1.10.2 +version=1.11.0 author=Bob Lemaire,Khoi Hoang maintainer=Khoi Hoang license=GPLv3 -sentence=Simple Async HTTP Request library, supporting GET, POST, PUT, PATCH, DELETE and HEAD, on top of AsyncTCP libraries, such as AsyncTCP, ESPAsyncTCP, AsyncTCP_STM32, etc.. for ESP32 (including ESP32_S2, ESP32_S3 and ESP32_C3), WT32_ETH01 (ESP32 + LAN8720), ESP8266 (WiFi, W5x00 or ENC28J60) and currently STM32 with LAN8720 or built-in LAN8742A Ethernet. -paragraph=This AsyncHTTPRequest_Generic Library, supporting GET, POST, PUT, PATCH, DELETE and HEAD, for ESP32 (including ESP32-S2), ESP8266 (WiFi, W5x00 or ENC28J60) and STM32 built-in LAN8742A Ethernet, such as Nucleo-144 F767ZI, etc. -category=Communication,AsyncTCP,AsyncHTTP +sentence=Simple Async HTTP Request library, supporting GET, POST, PUT, PATCH, DELETE and HEAD, on top of AsyncTCP libraries, such as AsyncTCP, ESPAsyncTCP, AsyncTCP_STM32, etc.. for ESP32 (including ESP32_S2, ESP32_S3 and ESP32_C3), WT32_ETH01 (ESP32 + LAN8720), ESP32 with LwIP ENC28J60, ESP8266 (WiFi, W5x00 or ENC28J60) and currently STM32 with LAN8720 or built-in LAN8742A Ethernet. +paragraph=This AsyncHTTPRequest_Generic Library, supporting GET, POST, PUT, PATCH, DELETE and HEAD, for ESP32 (including WT32_ETH01, LwIP ENC28J60), ESP8266 (WiFi, W5x00 or ENC28J60) and STM32 built-in LAN8742A Ethernet, such as Nucleo-144 F767ZI, etc. +category=Communication url=https://github.com/khoih-prog/AsyncHTTPRequest_Generic architectures=* -depends=ESPAsync_WiFiManager, STM32duino LwIP, STM32duino STM32Ethernet, WebServer_WT32_ETH01 -includes=AsyncHTTPRequest_Generic.h,AsyncHTTPRequest_Generic.hpp +depends=ESPAsync_WiFiManager, STM32duino LwIP, STM32duino STM32Ethernet, WebServer_WT32_ETH01, WebServer_ESP32_ENC +includes=AsyncHTTPRequest_Generic.h, AsyncHTTPRequest_Generic.hpp diff --git a/platformio/platformio.ini b/platformio/platformio.ini index 67831759..ed487250 100644 --- a/platformio/platformio.ini +++ b/platformio/platformio.ini @@ -48,6 +48,7 @@ lib_deps = ; ESPAsync_WiFiManager@>=1.15.1 ; LittleFS_esp32@>=1.0.6 ; WebServer_WT32_ETH01@>=1.5.1 +; WebServer_ESP32_ENC@>=1.5.1 ; ; PlatformIO 5.x ; me-no-dev/AsyncTCP@>=1.1.1 @@ -59,6 +60,7 @@ lib_deps = ; khoih-prog/ESPAsync_WiFiManager@>=1.15.1 ; lorol/LittleFS_esp32@>=1.0.6 ; khoih-prog/WebServer_WT32_ETH01@>=1.5.1 +; khoih-prog/WebServer_ESP32_ENC@>=1.5.1 build_flags = ; set your debug output (default=Serial) @@ -131,12 +133,14 @@ lib_deps = ; ESPAsync_WiFiManager@>=1.15.1 ; LittleFS_esp32@>=1.0.6 ; WebServer_WT32_ETH01@>=1.5.1 +; WebServer_ESP32_ENC@>=1.5.1 ; ; PlatformIO 5.x me-no-dev/AsyncTCP@>=1.1.1 khoih-prog/ESPAsync_WiFiManager@>=1.15.1 ; lorol/LittleFS_esp32@>=1.0.6 khoih-prog/WebServer_WT32_ETH01@>=1.5.1 + khoih-prog/WebServer_ESP32_ENC@>=1.5.1 ; ============================================================ ; Board configuration diff --git a/src/AsyncHTTPRequest_Debug_Generic.h b/src/AsyncHTTPRequest_Debug_Generic.h index 0820b25e..383ef471 100644 --- a/src/AsyncHTTPRequest_Debug_Generic.h +++ b/src/AsyncHTTPRequest_Debug_Generic.h @@ -18,7 +18,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . - Version: 1.10.2 + Version: 1.11.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -35,6 +35,7 @@ 1.10.0 K Hoang 20/10/2022 Fix bug. Clean up 1.10.1 K Hoang 21/10/2022 Fix bug of wrong reqStates 1.10.2 K Hoang 09/11/2022 Default to reconnect to the same host:port after connected for new HTTP sites + 1.11.0 K Hoang 28/11/2022 Add support to ESP32 boards using LwIP ENC28J60 Ethernet *****************************************************************************************************************************/ #pragma once diff --git a/src/AsyncHTTPRequest_Generic.h b/src/AsyncHTTPRequest_Generic.h index 578a8af8..02197813 100644 --- a/src/AsyncHTTPRequest_Generic.h +++ b/src/AsyncHTTPRequest_Generic.h @@ -18,7 +18,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . - Version: 1.10.2 + Version: 1.11.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -35,6 +35,7 @@ 1.10.0 K Hoang 20/10/2022 Fix bug. Clean up 1.10.1 K Hoang 21/10/2022 Fix bug of wrong reqStates 1.10.2 K Hoang 09/11/2022 Default to reconnect to the same host:port after connected for new HTTP sites + 1.11.0 K Hoang 28/11/2022 Add support to ESP32 boards using LwIP ENC28J60 Ethernet *****************************************************************************************************************************/ #pragma once diff --git a/src/AsyncHTTPRequest_Generic.hpp b/src/AsyncHTTPRequest_Generic.hpp index 1bdc9007..a88c3f32 100644 --- a/src/AsyncHTTPRequest_Generic.hpp +++ b/src/AsyncHTTPRequest_Generic.hpp @@ -18,8 +18,8 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . - Version: 1.10.2 - + Version: 1.11.0 + Version Modified By Date Comments ------- ----------- ---------- ----------- 1.0.0 K Hoang 14/09/2020 Initial coding to add support to STM32 using built-in Ethernet (Nucleo-144, DISCOVERY, etc). @@ -35,6 +35,7 @@ 1.10.0 K Hoang 20/10/2022 Fix bug. Clean up 1.10.1 K Hoang 21/10/2022 Fix bug of wrong reqStates 1.10.2 K Hoang 09/11/2022 Default to reconnect to the same host:port after connected for new HTTP sites + 1.11.0 K Hoang 28/11/2022 Add support to ESP32 boards using LwIP ENC28J60 Ethernet *****************************************************************************************************************************/ #pragma once @@ -44,13 +45,13 @@ //////////////////////////////////////// -#define ASYNC_HTTP_REQUEST_GENERIC_VERSION "AsyncHTTPRequest_Generic v1.10.2" +#define ASYNC_HTTP_REQUEST_GENERIC_VERSION "AsyncHTTPRequest_Generic v1.11.0" #define ASYNC_HTTP_REQUEST_GENERIC_VERSION_MAJOR 1 -#define ASYNC_HTTP_REQUEST_GENERIC_VERSION_MINOR 10 -#define ASYNC_HTTP_REQUEST_GENERIC_VERSION_PATCH 2 +#define ASYNC_HTTP_REQUEST_GENERIC_VERSION_MINOR 11 +#define ASYNC_HTTP_REQUEST_GENERIC_VERSION_PATCH 0 -#define ASYNC_HTTP_REQUEST_GENERIC_VERSION_INT 1010002 +#define ASYNC_HTTP_REQUEST_GENERIC_VERSION_INT 1011000 //////////////////////////////////////// diff --git a/src/AsyncHTTPRequest_Impl_Generic.h b/src/AsyncHTTPRequest_Impl_Generic.h index 66a9f258..af1d43dd 100644 --- a/src/AsyncHTTPRequest_Impl_Generic.h +++ b/src/AsyncHTTPRequest_Impl_Generic.h @@ -18,7 +18,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . - Version: 1.10.2 + Version: 1.11.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -35,6 +35,7 @@ 1.10.0 K Hoang 20/10/2022 Fix bug. Clean up 1.10.1 K Hoang 21/10/2022 Fix bug of wrong reqStates 1.10.2 K Hoang 09/11/2022 Default to reconnect to the same host:port after connected for new HTTP sites + 1.11.0 K Hoang 28/11/2022 Add support to ESP32 boards using LwIP ENC28J60 Ethernet *****************************************************************************************************************************/ #pragma once