diff --git a/README.md b/README.md index f80e281d..6d18fa25 100644 --- a/README.md +++ b/README.md @@ -84,6 +84,7 @@ * [10. AsyncHTTPRequest_ESP_WiFiManager running on ESP32S3_DEV](#10-asynchttprequest_esp_wifimanager-running-on-ESP32S3_DEV) **New** * [11. AsyncHTTPRequest_ESP_Multi running on ESP32_DEV](#11-AsyncHTTPRequest_ESP_Multi-running-on-ESP32_DEV) **New** * [12. AsyncHTTPRequest_ESP8266_Ethernet running on ESP8266_NODEMCU_ESP12E using ESP8266_W5500 Ethernet](#12-AsyncHTTPRequest_ESP8266_Ethernet-running-on-ESP8266_NODEMCU_ESP12E-using-ESP8266_W5500-Ethernet) **New** + * [13. AsyncHTTPRequest_ESP8266_Ethernet running on ESP8266_NODEMCU_ESP12E using ESP8266_ENC28J60 Ethernet](#13-AsyncHTTPRequest_ESP8266_Ethernet-running-on-ESP8266_NODEMCU_ESP12E-using-ESP8266_ENC28J60-Ethernet) **New** * [Debug](#debug) * [Troubleshooting](#troubleshooting) * [Issues](#issues) @@ -155,6 +156,7 @@ This library is based on, modified from: 1. Using WiFi 2. Using **W5x00** with [**lwIP_w5100**](https://github.com/esp8266/Arduino/tree/master/libraries/lwIP_w5100) or [**lwIP_w5500**](https://github.com/esp8266/Arduino/tree/master/libraries/lwIP_w5500) library +3. Using **ENC28J60** with [**lwIP_enc28j60**](https://github.com/esp8266/Arduino/tree/master/libraries/lwIP_enc28j60) library #### 3. STM32F/L/H/G/WB/MP1 with built-in LAN8742A Ethernet. @@ -428,10 +430,12 @@ Connect FDTI (USB to Serial) as follows: #### 1. ESP8266 Wiring -This is the wiring for EP8266 W5x00 Ethernet when using `SS = GPIO16` +This is the wiring for EP8266 `W5x00` or `ENC28J60` Ethernet when using `SS = GPIO16` +https://github.com/khoih-prog/AsyncHTTPRequest_Generic/blob/e3dd512e7aa9e60c85043893d4527d3b052077c0/examples/AsyncHTTPRequest_ESP8266_Ethernet/AsyncHTTPRequest_ESP8266_Ethernet.ino#L65 -|W5x00 Ethernet|<--->|ESP8266| + +|W5x00/ENC28J60 Ethernet|<--->|ESP8266| |:-:|:-:|:-:| |MOSI|<--->|MOSI = GPIO13| |MISO|<--->|MISO = GPIO12| @@ -509,7 +513,7 @@ https://github.com/khoih-prog/AsyncHTTPRequest_Generic/blob/98733a6c4a1906ff53f6 ``` Start AsyncHTTPRequest_STM32 on NUCLEO_F767ZI -AsyncHTTPRequest_Generic v1.8.0 +AsyncHTTPRequest_Generic v1.8.1 AsyncHTTPRequest @ IP : 192.168.2.178 ************************************** @@ -554,7 +558,7 @@ week_number: 15 ``` Starting AsyncHTTPRequest_ESP_WiFiManager using LittleFS on ESP8266_NODEMCU -AsyncHTTPRequest_Generic v1.8.0 +AsyncHTTPRequest_Generic v1.8.1 Stored: SSID = HueNet1, Pass = 12345678 Got stored Credentials. Timeout 120s ConnectMultiWiFi in setup @@ -586,7 +590,7 @@ HHHHHH ``` Starting AsyncHTTPRequest_ESP_WiFiManager using SPIFFS on ESP32_DEV -AsyncHTTPRequest_Generic v1.8.0 +AsyncHTTPRequest_Generic v1.8.1 Stored: SSID = HueNet1, Pass = 12345678 Got stored Credentials. Timeout 120s ConnectMultiWiFi in setup @@ -636,7 +640,7 @@ HHHHHHHHH HHHHHHHHHH HHHHHHHHHH ``` Starting AsyncHTTPRequest_ESP using ESP8266_NODEMCU -AsyncHTTPRequest_Generic v1.8.0 +AsyncHTTPRequest_Generic v1.8.1 Connecting to WiFi SSID: HueNet1 ........... HTTP WebServer is @ IP : 192.168.2.81 @@ -668,7 +672,7 @@ HHHHHHHHH HHHHHHHHHH HHHHHHHHHH H ``` Start AsyncWebClientRepeating_STM32 on NUCLEO_F767ZI -AsyncHTTPRequest_Generic v1.8.0 +AsyncHTTPRequest_Generic v1.8.1 AsyncHTTPRequest @ IP : 192.168.2.72 ************************************** @@ -721,7 +725,7 @@ AsyncHTTPRequest @ IP : 192.168.2.72 ``` Start AsyncWebClientRepeating_STM32_LAN8720 on BLACK_F407VE -AsyncHTTPRequest_Generic v1.8.0 +AsyncHTTPRequest_Generic v1.8.1 AsyncHTTPRequest @ IP : 192.168.2.150 @@ -777,7 +781,7 @@ AsyncHTTPRequest @ IP : 192.168.2.150 ``` Starting AsyncHTTPRequest_WT32_ETH01 on ESP32_DEV with ETH_PHY_LAN8720 WebServer_WT32_ETH01 v1.4.1 -AsyncHTTPRequest_Generic v1.8.0 +AsyncHTTPRequest_Generic v1.8.1 ETH MAC: A8:03:2A:A1:61:73, IPv4: 192.168.2.232, FULL_DUPLEX, 100Mbps AsyncHTTPRequest @ IP : 192.168.2.232 @@ -803,7 +807,7 @@ H ``` Starting AsyncHTTPRequest_WT32_ETH01 on ESP32_DEV with ETH_PHY_LAN8720 WebServer_WT32_ETH01 v1.4.1 -AsyncHTTPRequest_Generic v1.8.0 +AsyncHTTPRequest_Generic v1.8.1 ETH MAC: A8:03:2A:A1:61:73, IPv4: 192.168.2.232, FULL_DUPLEX, 100Mbps AsyncHTTPRequest @ IP : 192.168.2.232 @@ -833,7 +837,7 @@ week_number: 15 ``` Starting AsyncHTTPRequest_ESP_WiFiManager using LittleFS on ESP32C3_DEV ESPAsync_WiFiManager v1.12.1 -AsyncHTTPRequest_Generic v1.8.0 +AsyncHTTPRequest_Generic v1.8.1 Stored: SSID = HueNet1, Pass = password Got stored Credentials. Timeout 120s ConnectMultiWiFi in setup @@ -884,7 +888,7 @@ week_number: 15 ``` Starting AsyncHTTPRequest_ESP_WiFiManager using LittleFS on ESP32S3_DEV ESPAsync_WiFiManager v1.12.1 -AsyncHTTPRequest_Generic v1.8.0 +AsyncHTTPRequest_Generic v1.8.1 Stored: SSID = HueNet1, Pass = password Got stored Credentials. Timeout 120s ConnectMultiWiFi in setup @@ -936,7 +940,7 @@ The terminal output of [AsyncHTTPRequest_ESP_Multi example](examples/AsyncHTTPRe ``` Starting AsyncHTTPRequest_ESP_Multi using ESP32_DEV -AsyncHTTPRequest_Generic v1.8.0 +AsyncHTTPRequest_Generic v1.8.1 Connecting to WiFi SSID: HueNet1 ....... AsyncHTTPSRequest @ IP : 192.168.2.88 @@ -997,7 +1001,7 @@ The terminal output of [AsyncHTTPRequest_ESP8266_Ethernet example](examples/Asyn ``` Starting AsyncHTTPRequest_ESP8266_Ethernet on ESP8266_NODEMCU_ESP12E using ESP8266_W5500 Ethernet -AsyncHTTPRequest_Generic v1.8.0 +AsyncHTTPRequest_Generic v1.8.1 Connecting ethernet.. Ethernet IP address: 192.168.2.187 @@ -1039,6 +1043,56 @@ week_number: 15 HH ``` +--- + +#### 13. [AsyncHTTPRequest_ESP8266_Ethernet](examples/AsyncHTTPRequest_ESP8266_Ethernet) running on ESP8266_NODEMCU_ESP12E using ESP8266_ENC28J60 Ethernet + +The terminal output of [AsyncHTTPRequest_ESP8266_Ethernet example](examples/AsyncHTTPRequest_ESP8266_Ethernet) running on `ESP8266_NODEMCU_ESP12E` to demonstrate how to use ESP8266_ENC28J60 Ethernet Async feature. + +``` +Starting AsyncHTTPRequest_ESP8266_Ethernet on ESP8266_NODEMCU_ESP12E using ESP8266_ENC28J60 Ethernet +AsyncHTTPRequest_Generic v1.8.1 +Connecting to network : .......................................................... +Ethernet IP address: 192.168.2.187 + +************************************** +abbreviation: EDT +client_ip: aaa.bbb.ccc.ddd +datetime: 2022-04-13T23:54:42.973735-04:00 +day_of_week: 3 +day_of_year: 103 +dst: true +dst_from: 2022-03-13T07:00:00+00:00 +dst_offset: 3600 +dst_until: 2022-11-06T06:00:00+00:00 +raw_offset: -18000 +timezone: America/Toronto +unixtime: 1649908482 +utc_datetime: 2022-04-14T03:54:42.973735+00:00 +utc_offset: -04:00 +week_number: 15 +************************************** +HHHHHH +************************************** +abbreviation: EDT +client_ip: aaa.bbb.ccc.ddd +datetime: 2022-04-13T23:55:42.894333-04:00 +day_of_week: 3 +day_of_year: 103 +dst: true +dst_from: 2022-03-13T07:00:00+00:00 +dst_offset: 3600 +dst_until: 2022-11-06T06:00:00+00:00 +raw_offset: -18000 +timezone: America/Toronto +unixtime: 1649908542 +utc_datetime: 2022-04-14T03:55:42.894333+00:00 +utc_offset: -04:00 +week_number: 15 +``` + + + --- --- @@ -1097,6 +1151,8 @@ Submit issues to: [AsyncHTTPRequest_Generic issues](https://github.com/khoih-pro 14. Use `ESP32-core's LittleFS` library instead of `Lorol's LITTLEFS` library for ESP32 core v2.0.0+ 15. Add example [AsyncHTTPRequest_ESP_Multi](https://github.com/khoih-prog/AsyncHTTPRequest_Generic/tree/master/examples/AsyncHTTPRequest_ESP_Multi) to demonstrate how to send requests to multiple addresses and receive responses from them. 16. Add support to ESP8266 using **W5x00** with [**lwIP_w5100**](https://github.com/esp8266/Arduino/tree/master/libraries/lwIP_w5100) or [**lwIP_w5500**](https://github.com/esp8266/Arduino/tree/master/libraries/lwIP_w5500) library +17. Add support to ESP8266 using **ENC28J60** with [**lwIP_enc28j60**](https://github.com/esp8266/Arduino/tree/master/libraries/lwIP_enc28j60) library + --- --- diff --git a/changelog.md b/changelog.md index fda8aa00..56436b9f 100644 --- a/changelog.md +++ b/changelog.md @@ -12,6 +12,7 @@ ## Table of Contents * [Changelog](#changelog) + * [Releases v1.8.1](#releases-v181) * [Releases v1.8.0](#releases-v180) * [Releases v1.7.1](#releases-v171) * [Releases v1.7.0](#releases-v170) @@ -37,6 +38,10 @@ ## Changelog +### Releases v1.8.1 + +1. Add support to ESP8266 using ENC28J60 with [lwIP_enc28j60](https://github.com/esp8266/Arduino/tree/master/libraries/lwIP_enc28j60) library + ### Releases v1.8.0 1. Add support to ESP8266 using W5x00 with [lwIP_w5100](https://github.com/esp8266/Arduino/tree/master/libraries/lwIP_w5100) or [lwIP_w5500](https://github.com/esp8266/Arduino/tree/master/libraries/lwIP_w5500) library diff --git a/library.json b/library.json index 6c86fe20..68fe95ff 100644 --- a/library.json +++ b/library.json @@ -1,8 +1,8 @@ { "name":"AsyncHTTPRequest_Generic", - "version": "1.8.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), ESP8266 (WiFi or W5x00) 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, ESPAsyncTCP, AsyncTCP, stm32, ethernet, wifi, lan8742a, lan8720, f407ve, nucleo, nucleo-144, stm32f7, stm32f4", + "version": "1.8.1", + "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 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, lan8720, f407ve, nucleo-144, stm32f7, W5x00, ENC28J60", "authors": [ { "name": "Bob Lemaire", diff --git a/library.properties b/library.properties index 794882a5..5165a993 100644 --- a/library.properties +++ b/library.properties @@ -1,10 +1,10 @@ name=AsyncHTTPRequest_Generic -version=1.8.0 +version=1.8.1 author=Bob Lemaire,Khoi Hoang maintainer=Khoi Hoang icense=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 or W5x00) 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 and STM32 with LAN8720 or built-in LAN8742A Ethernet, such as Nucleo-144 F767ZI, F407VE, etc. +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 with LAN8720 or built-in LAN8742A Ethernet, such as Nucleo-144 F767ZI, F407VE, etc. category=Communication,AsyncTCP,AsyncHTTP url=https://github.com/khoih-prog/AsyncHTTPRequest_Generic architectures=* diff --git a/src/AsyncHTTPRequest_Debug_Generic.h b/src/AsyncHTTPRequest_Debug_Generic.h index 1d85667c..8250200f 100644 --- a/src/AsyncHTTPRequest_Debug_Generic.h +++ b/src/AsyncHTTPRequest_Debug_Generic.h @@ -17,7 +17,7 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . - Version: 1.8.0 + Version: 1.8.1 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -40,6 +40,7 @@ 1.7.0 K Hoang 10/02/2022 Add support to new ESP32-S3. Add LittleFS support to ESP32-C3. Use core LittleFS 1.7.1 K Hoang 25/02/2022 Add example AsyncHTTPRequest_ESP_Multi to demo connection to multiple addresses 1.8.0 K Hoang 13/04/2022 Add support to ESP8266 using W5x00 with lwip_W5100 or lwip_W5500 library + 1.8.1 K Hoang 13/04/2022 Add support to ESP8266 using ENC28J60 with lwip_enc28j60 library *****************************************************************************************************************************/ #pragma once diff --git a/src/AsyncHTTPRequest_Generic.h b/src/AsyncHTTPRequest_Generic.h index d17e5178..96c566e7 100644 --- a/src/AsyncHTTPRequest_Generic.h +++ b/src/AsyncHTTPRequest_Generic.h @@ -17,7 +17,7 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . - Version: 1.8.0 + Version: 1.8.1 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -40,6 +40,7 @@ 1.7.0 K Hoang 10/02/2022 Add support to new ESP32-S3. Add LittleFS support to ESP32-C3. Use core LittleFS 1.7.1 K Hoang 25/02/2022 Add example AsyncHTTPRequest_ESP_Multi to demo connection to multiple addresses 1.8.0 K Hoang 13/04/2022 Add support to ESP8266 using W5x00 with lwip_W5100 or lwip_W5500 library + 1.8.1 K Hoang 13/04/2022 Add support to ESP8266 using ENC28J60 with lwip_enc28j60 library *****************************************************************************************************************************/ #pragma once diff --git a/src/AsyncHTTPRequest_Generic.hpp b/src/AsyncHTTPRequest_Generic.hpp index 77311547..f53fdfbe 100644 --- a/src/AsyncHTTPRequest_Generic.hpp +++ b/src/AsyncHTTPRequest_Generic.hpp @@ -17,7 +17,7 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . - Version: 1.8.0 + Version: 1.8.1 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -40,6 +40,7 @@ 1.7.0 K Hoang 10/02/2022 Add support to new ESP32-S3. Add LittleFS support to ESP32-C3. Use core LittleFS 1.7.1 K Hoang 25/02/2022 Add example AsyncHTTPRequest_ESP_Multi to demo connection to multiple addresses 1.8.0 K Hoang 13/04/2022 Add support to ESP8266 using W5x00 with lwip_W5100 or lwip_W5500 library + 1.8.1 K Hoang 13/04/2022 Add support to ESP8266 using ENC28J60 with lwip_enc28j60 library *****************************************************************************************************************************/ #pragma once @@ -47,13 +48,13 @@ #ifndef ASYNC_HTTP_REQUEST_GENERIC_HPP #define ASYNC_HTTP_REQUEST_GENERIC_HPP -#define ASYNC_HTTP_REQUEST_GENERIC_VERSION "AsyncHTTPRequest_Generic v1.8.0" +#define ASYNC_HTTP_REQUEST_GENERIC_VERSION "AsyncHTTPRequest_Generic v1.8.1" #define ASYNC_HTTP_REQUEST_GENERIC_VERSION_MAJOR 1 #define ASYNC_HTTP_REQUEST_GENERIC_VERSION_MINOR 8 -#define ASYNC_HTTP_REQUEST_GENERIC_VERSION_PATCH 0 +#define ASYNC_HTTP_REQUEST_GENERIC_VERSION_PATCH 1 -#define ASYNC_HTTP_REQUEST_GENERIC_VERSION_INT 1008000 +#define ASYNC_HTTP_REQUEST_GENERIC_VERSION_INT 1008001 #include diff --git a/src/AsyncHTTPRequest_Impl_Generic.h b/src/AsyncHTTPRequest_Impl_Generic.h index 69d377ee..bc5d4731 100644 --- a/src/AsyncHTTPRequest_Impl_Generic.h +++ b/src/AsyncHTTPRequest_Impl_Generic.h @@ -17,7 +17,7 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . - Version: 1.8.0 + Version: 1.8.1 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -40,6 +40,7 @@ 1.7.0 K Hoang 10/02/2022 Add support to new ESP32-S3. Add LittleFS support to ESP32-C3. Use core LittleFS 1.7.1 K Hoang 25/02/2022 Add example AsyncHTTPRequest_ESP_Multi to demo connection to multiple addresses 1.8.0 K Hoang 13/04/2022 Add support to ESP8266 using W5x00 with lwip_W5100 or lwip_W5500 library + 1.8.1 K Hoang 13/04/2022 Add support to ESP8266 using ENC28J60 with lwip_enc28j60 library *****************************************************************************************************************************/ #pragma once