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

Commit e981dea

Browse files
authored
v1.8.1 to add support to ESP8266 using ENC28J660
### 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
1 parent e3dd512 commit e981dea

8 files changed

+92
-27
lines changed

README.md

Lines changed: 70 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@
8484
* [10. AsyncHTTPRequest_ESP_WiFiManager running on ESP32S3_DEV](#10-asynchttprequest_esp_wifimanager-running-on-ESP32S3_DEV) **New**
8585
* [11. AsyncHTTPRequest_ESP_Multi running on ESP32_DEV](#11-AsyncHTTPRequest_ESP_Multi-running-on-ESP32_DEV) **New**
8686
* [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**
87+
* [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**
8788
* [Debug](#debug)
8889
* [Troubleshooting](#troubleshooting)
8990
* [Issues](#issues)
@@ -155,6 +156,7 @@ This library is based on, modified from:
155156

156157
1. Using WiFi
157158
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
159+
3. Using **ENC28J60** with [**lwIP_enc28j60**](https://github.com/esp8266/Arduino/tree/master/libraries/lwIP_enc28j60) library
158160

159161
#### 3. STM32F/L/H/G/WB/MP1 with built-in LAN8742A Ethernet.
160162

@@ -428,10 +430,12 @@ Connect FDTI (USB to Serial) as follows:
428430

429431
#### 1. ESP8266 Wiring
430432

431-
This is the wiring for EP8266 W5x00 Ethernet when using `SS = GPIO16`
433+
This is the wiring for EP8266 `W5x00` or `ENC28J60` Ethernet when using `SS = GPIO16`
432434

435+
https://github.com/khoih-prog/AsyncHTTPRequest_Generic/blob/e3dd512e7aa9e60c85043893d4527d3b052077c0/examples/AsyncHTTPRequest_ESP8266_Ethernet/AsyncHTTPRequest_ESP8266_Ethernet.ino#L65
433436

434-
|W5x00 Ethernet|<--->|ESP8266|
437+
438+
|W5x00/ENC28J60 Ethernet|<--->|ESP8266|
435439
|:-:|:-:|:-:|
436440
|MOSI|<--->|MOSI = GPIO13|
437441
|MISO|<--->|MISO = GPIO12|
@@ -509,7 +513,7 @@ https://github.com/khoih-prog/AsyncHTTPRequest_Generic/blob/98733a6c4a1906ff53f6
509513

510514
```
511515
Start AsyncHTTPRequest_STM32 on NUCLEO_F767ZI
512-
AsyncHTTPRequest_Generic v1.8.0
516+
AsyncHTTPRequest_Generic v1.8.1
513517
AsyncHTTPRequest @ IP : 192.168.2.178
514518
515519
**************************************
@@ -554,7 +558,7 @@ week_number: 15
554558

555559
```
556560
Starting AsyncHTTPRequest_ESP_WiFiManager using LittleFS on ESP8266_NODEMCU
557-
AsyncHTTPRequest_Generic v1.8.0
561+
AsyncHTTPRequest_Generic v1.8.1
558562
Stored: SSID = HueNet1, Pass = 12345678
559563
Got stored Credentials. Timeout 120s
560564
ConnectMultiWiFi in setup
@@ -586,7 +590,7 @@ HHHHHH
586590

587591
```
588592
Starting AsyncHTTPRequest_ESP_WiFiManager using SPIFFS on ESP32_DEV
589-
AsyncHTTPRequest_Generic v1.8.0
593+
AsyncHTTPRequest_Generic v1.8.1
590594
Stored: SSID = HueNet1, Pass = 12345678
591595
Got stored Credentials. Timeout 120s
592596
ConnectMultiWiFi in setup
@@ -636,7 +640,7 @@ HHHHHHHHH HHHHHHHHHH HHHHHHHHHH
636640

637641
```
638642
Starting AsyncHTTPRequest_ESP using ESP8266_NODEMCU
639-
AsyncHTTPRequest_Generic v1.8.0
643+
AsyncHTTPRequest_Generic v1.8.1
640644
Connecting to WiFi SSID: HueNet1
641645
...........
642646
HTTP WebServer is @ IP : 192.168.2.81
@@ -668,7 +672,7 @@ HHHHHHHHH HHHHHHHHHH HHHHHHHHHH H
668672

669673
```
670674
Start AsyncWebClientRepeating_STM32 on NUCLEO_F767ZI
671-
AsyncHTTPRequest_Generic v1.8.0
675+
AsyncHTTPRequest_Generic v1.8.1
672676
AsyncHTTPRequest @ IP : 192.168.2.72
673677
674678
**************************************
@@ -721,7 +725,7 @@ AsyncHTTPRequest @ IP : 192.168.2.72
721725

722726
```
723727
Start AsyncWebClientRepeating_STM32_LAN8720 on BLACK_F407VE
724-
AsyncHTTPRequest_Generic v1.8.0
728+
AsyncHTTPRequest_Generic v1.8.1
725729
AsyncHTTPRequest @ IP : 192.168.2.150
726730
727731
@@ -777,7 +781,7 @@ AsyncHTTPRequest @ IP : 192.168.2.150
777781
```
778782
Starting AsyncHTTPRequest_WT32_ETH01 on ESP32_DEV with ETH_PHY_LAN8720
779783
WebServer_WT32_ETH01 v1.4.1
780-
AsyncHTTPRequest_Generic v1.8.0
784+
AsyncHTTPRequest_Generic v1.8.1
781785
ETH MAC: A8:03:2A:A1:61:73, IPv4: 192.168.2.232, FULL_DUPLEX, 100Mbps
782786
AsyncHTTPRequest @ IP : 192.168.2.232
783787
@@ -803,7 +807,7 @@ H
803807
```
804808
Starting AsyncHTTPRequest_WT32_ETH01 on ESP32_DEV with ETH_PHY_LAN8720
805809
WebServer_WT32_ETH01 v1.4.1
806-
AsyncHTTPRequest_Generic v1.8.0
810+
AsyncHTTPRequest_Generic v1.8.1
807811
ETH MAC: A8:03:2A:A1:61:73, IPv4: 192.168.2.232, FULL_DUPLEX, 100Mbps
808812
AsyncHTTPRequest @ IP : 192.168.2.232
809813
@@ -833,7 +837,7 @@ week_number: 15
833837
```
834838
Starting AsyncHTTPRequest_ESP_WiFiManager using LittleFS on ESP32C3_DEV
835839
ESPAsync_WiFiManager v1.12.1
836-
AsyncHTTPRequest_Generic v1.8.0
840+
AsyncHTTPRequest_Generic v1.8.1
837841
Stored: SSID = HueNet1, Pass = password
838842
Got stored Credentials. Timeout 120s
839843
ConnectMultiWiFi in setup
@@ -884,7 +888,7 @@ week_number: 15
884888
```
885889
Starting AsyncHTTPRequest_ESP_WiFiManager using LittleFS on ESP32S3_DEV
886890
ESPAsync_WiFiManager v1.12.1
887-
AsyncHTTPRequest_Generic v1.8.0
891+
AsyncHTTPRequest_Generic v1.8.1
888892
Stored: SSID = HueNet1, Pass = password
889893
Got stored Credentials. Timeout 120s
890894
ConnectMultiWiFi in setup
@@ -936,7 +940,7 @@ The terminal output of [AsyncHTTPRequest_ESP_Multi example](examples/AsyncHTTPRe
936940

937941
```
938942
Starting AsyncHTTPRequest_ESP_Multi using ESP32_DEV
939-
AsyncHTTPRequest_Generic v1.8.0
943+
AsyncHTTPRequest_Generic v1.8.1
940944
Connecting to WiFi SSID: HueNet1
941945
.......
942946
AsyncHTTPSRequest @ IP : 192.168.2.88
@@ -997,7 +1001,7 @@ The terminal output of [AsyncHTTPRequest_ESP8266_Ethernet example](examples/Asyn
9971001

9981002
```
9991003
Starting AsyncHTTPRequest_ESP8266_Ethernet on ESP8266_NODEMCU_ESP12E using ESP8266_W5500 Ethernet
1000-
AsyncHTTPRequest_Generic v1.8.0
1004+
AsyncHTTPRequest_Generic v1.8.1
10011005
Connecting ethernet..
10021006
Ethernet IP address: 192.168.2.187
10031007
@@ -1039,6 +1043,56 @@ week_number: 15
10391043
HH
10401044
```
10411045

1046+
---
1047+
1048+
#### 13. [AsyncHTTPRequest_ESP8266_Ethernet](examples/AsyncHTTPRequest_ESP8266_Ethernet) running on ESP8266_NODEMCU_ESP12E using ESP8266_ENC28J60 Ethernet
1049+
1050+
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.
1051+
1052+
```
1053+
Starting AsyncHTTPRequest_ESP8266_Ethernet on ESP8266_NODEMCU_ESP12E using ESP8266_ENC28J60 Ethernet
1054+
AsyncHTTPRequest_Generic v1.8.1
1055+
Connecting to network : ..........................................................
1056+
Ethernet IP address: 192.168.2.187
1057+
1058+
**************************************
1059+
abbreviation: EDT
1060+
client_ip: aaa.bbb.ccc.ddd
1061+
datetime: 2022-04-13T23:54:42.973735-04:00
1062+
day_of_week: 3
1063+
day_of_year: 103
1064+
dst: true
1065+
dst_from: 2022-03-13T07:00:00+00:00
1066+
dst_offset: 3600
1067+
dst_until: 2022-11-06T06:00:00+00:00
1068+
raw_offset: -18000
1069+
timezone: America/Toronto
1070+
unixtime: 1649908482
1071+
utc_datetime: 2022-04-14T03:54:42.973735+00:00
1072+
utc_offset: -04:00
1073+
week_number: 15
1074+
**************************************
1075+
HHHHHH
1076+
**************************************
1077+
abbreviation: EDT
1078+
client_ip: aaa.bbb.ccc.ddd
1079+
datetime: 2022-04-13T23:55:42.894333-04:00
1080+
day_of_week: 3
1081+
day_of_year: 103
1082+
dst: true
1083+
dst_from: 2022-03-13T07:00:00+00:00
1084+
dst_offset: 3600
1085+
dst_until: 2022-11-06T06:00:00+00:00
1086+
raw_offset: -18000
1087+
timezone: America/Toronto
1088+
unixtime: 1649908542
1089+
utc_datetime: 2022-04-14T03:55:42.894333+00:00
1090+
utc_offset: -04:00
1091+
week_number: 15
1092+
```
1093+
1094+
1095+
10421096
---
10431097
---
10441098

@@ -1097,6 +1151,8 @@ Submit issues to: [AsyncHTTPRequest_Generic issues](https://github.com/khoih-pro
10971151
14. Use `ESP32-core's LittleFS` library instead of `Lorol's LITTLEFS` library for ESP32 core v2.0.0+
10981152
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.
10991153
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
1154+
17. Add support to ESP8266 using **ENC28J60** with [**lwIP_enc28j60**](https://github.com/esp8266/Arduino/tree/master/libraries/lwIP_enc28j60) library
1155+
11001156

11011157
---
11021158
---

changelog.md

Lines changed: 5 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.8.1](#releases-v181)
1516
* [Releases v1.8.0](#releases-v180)
1617
* [Releases v1.7.1](#releases-v171)
1718
* [Releases v1.7.0](#releases-v170)
@@ -37,6 +38,10 @@
3738

3839
## Changelog
3940

41+
### Releases v1.8.1
42+
43+
1. Add support to ESP8266 using ENC28J60 with [lwIP_enc28j60](https://github.com/esp8266/Arduino/tree/master/libraries/lwIP_enc28j60) library
44+
4045
### Releases v1.8.0
4146

4247
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

library.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name":"AsyncHTTPRequest_Generic",
3-
"version": "1.8.0",
4-
"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.",
5-
"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",
3+
"version": "1.8.1",
4+
"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.",
5+
"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",
66
"authors": [
77
{
88
"name": "Bob Lemaire",

library.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
name=AsyncHTTPRequest_Generic
2-
version=1.8.0
2+
version=1.8.1
33
author=Bob Lemaire,Khoi Hoang <[email protected]>
44
maintainer=Khoi Hoang <[email protected]>
55
icense=GPLv3
6-
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.
7-
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.
6+
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.
7+
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.
88
category=Communication,AsyncTCP,AsyncHTTP
99
url=https://github.com/khoih-prog/AsyncHTTPRequest_Generic
1010
architectures=*

src/AsyncHTTPRequest_Debug_Generic.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
1818
You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
1919
20-
Version: 1.8.0
20+
Version: 1.8.1
2121
2222
Version Modified By Date Comments
2323
------- ----------- ---------- -----------
@@ -40,6 +40,7 @@
4040
1.7.0 K Hoang 10/02/2022 Add support to new ESP32-S3. Add LittleFS support to ESP32-C3. Use core LittleFS
4141
1.7.1 K Hoang 25/02/2022 Add example AsyncHTTPRequest_ESP_Multi to demo connection to multiple addresses
4242
1.8.0 K Hoang 13/04/2022 Add support to ESP8266 using W5x00 with lwip_W5100 or lwip_W5500 library
43+
1.8.1 K Hoang 13/04/2022 Add support to ESP8266 using ENC28J60 with lwip_enc28j60 library
4344
*****************************************************************************************************************************/
4445

4546
#pragma once

src/AsyncHTTPRequest_Generic.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
1818
You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
1919
20-
Version: 1.8.0
20+
Version: 1.8.1
2121
2222
Version Modified By Date Comments
2323
------- ----------- ---------- -----------
@@ -40,6 +40,7 @@
4040
1.7.0 K Hoang 10/02/2022 Add support to new ESP32-S3. Add LittleFS support to ESP32-C3. Use core LittleFS
4141
1.7.1 K Hoang 25/02/2022 Add example AsyncHTTPRequest_ESP_Multi to demo connection to multiple addresses
4242
1.8.0 K Hoang 13/04/2022 Add support to ESP8266 using W5x00 with lwip_W5100 or lwip_W5500 library
43+
1.8.1 K Hoang 13/04/2022 Add support to ESP8266 using ENC28J60 with lwip_enc28j60 library
4344
*****************************************************************************************************************************/
4445

4546
#pragma once

src/AsyncHTTPRequest_Generic.hpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
1818
You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
1919
20-
Version: 1.8.0
20+
Version: 1.8.1
2121
2222
Version Modified By Date Comments
2323
------- ----------- ---------- -----------
@@ -40,20 +40,21 @@
4040
1.7.0 K Hoang 10/02/2022 Add support to new ESP32-S3. Add LittleFS support to ESP32-C3. Use core LittleFS
4141
1.7.1 K Hoang 25/02/2022 Add example AsyncHTTPRequest_ESP_Multi to demo connection to multiple addresses
4242
1.8.0 K Hoang 13/04/2022 Add support to ESP8266 using W5x00 with lwip_W5100 or lwip_W5500 library
43+
1.8.1 K Hoang 13/04/2022 Add support to ESP8266 using ENC28J60 with lwip_enc28j60 library
4344
*****************************************************************************************************************************/
4445

4546
#pragma once
4647

4748
#ifndef ASYNC_HTTP_REQUEST_GENERIC_HPP
4849
#define ASYNC_HTTP_REQUEST_GENERIC_HPP
4950

50-
#define ASYNC_HTTP_REQUEST_GENERIC_VERSION "AsyncHTTPRequest_Generic v1.8.0"
51+
#define ASYNC_HTTP_REQUEST_GENERIC_VERSION "AsyncHTTPRequest_Generic v1.8.1"
5152

5253
#define ASYNC_HTTP_REQUEST_GENERIC_VERSION_MAJOR 1
5354
#define ASYNC_HTTP_REQUEST_GENERIC_VERSION_MINOR 8
54-
#define ASYNC_HTTP_REQUEST_GENERIC_VERSION_PATCH 0
55+
#define ASYNC_HTTP_REQUEST_GENERIC_VERSION_PATCH 1
5556

56-
#define ASYNC_HTTP_REQUEST_GENERIC_VERSION_INT 1008000
57+
#define ASYNC_HTTP_REQUEST_GENERIC_VERSION_INT 1008001
5758

5859
#include <Arduino.h>
5960

src/AsyncHTTPRequest_Impl_Generic.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
1818
You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
1919
20-
Version: 1.8.0
20+
Version: 1.8.1
2121
2222
Version Modified By Date Comments
2323
------- ----------- ---------- -----------
@@ -40,6 +40,7 @@
4040
1.7.0 K Hoang 10/02/2022 Add support to new ESP32-S3. Add LittleFS support to ESP32-C3. Use core LittleFS
4141
1.7.1 K Hoang 25/02/2022 Add example AsyncHTTPRequest_ESP_Multi to demo connection to multiple addresses
4242
1.8.0 K Hoang 13/04/2022 Add support to ESP8266 using W5x00 with lwip_W5100 or lwip_W5500 library
43+
1.8.1 K Hoang 13/04/2022 Add support to ESP8266 using ENC28J60 with lwip_enc28j60 library
4344
*****************************************************************************************************************************/
4445

4546
#pragma once

0 commit comments

Comments
 (0)