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

Commit 8a09114

Browse files
authored
v1.8.0 to add ESP32_C3
#### Releases v1.8.0 1. Add support to `ESP32_C3` boards using `LwIP ENC28J60 Ethernet`
1 parent 328368d commit 8a09114

File tree

1 file changed

+119
-14
lines changed

1 file changed

+119
-14
lines changed

README.md

Lines changed: 119 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
* [Methods for controlling websocket connections](#methods-for-controlling-websocket-connections)
7878
* [Adding Default Headers](#adding-default-headers)
7979
* [Path variable](#path-variable)
80-
* [How to connect ENC28J60 to ESP32_S2/S3](#How-to-connect-ENC28J60-to-ESP32_S2S3)
80+
* [How to connect ENC28J60 to ESP32_S2/S3/C3](#How-to-connect-ENC28J60-to-ESP32_S2S3C3)
8181
* [Examples](#examples)
8282
* [ 1. Async_AdvancedWebServer](examples/Async_AdvancedWebServer)
8383
* [ 2. Async_AdvancedWebServer_MemoryIssues_SendArduinoString](examples/Async_AdvancedWebServer_MemoryIssues_SendArduinoString)
@@ -104,6 +104,7 @@
104104
* [5. Async_WebSocketsServer on ESP32S3_DEV with ESP32_S3_ENC28J60](#5-Async_WebSocketsServer-on-ESP32S3_DEV-with-ESP32_S3_ENC28J60)
105105
* [6. Async_HTTPBasicAuth on ESP32S3_DEV with ESP32_S3_ENC28J60](#6-Async_HTTPBasicAuth-on-ESP32S3_DEV-with-ESP32_S3_ENC28J60)
106106
* [7. Async_AdvancedWebServer_SendChunked on ESP32S2_DEV with ESP32_S2_ENC28J60](#7-Async_AdvancedWebServer_SendChunked-on-ESP32S2_DEV-with-ESP32_S2_ENC28J60)
107+
* [8. Async_AdvancedWebServer_SendChunked on ESP32C3_DEV with ESP32_C3_ENC28J60](#8-Async_AdvancedWebServer_SendChunked-on-ESP32C3_DEV-with-ESP32_C3_ENC28J60)
107108
* [Debug](#debug)
108109
* [Troubleshooting](#troubleshooting)
109110
* [Issues](#issues)
@@ -227,9 +228,9 @@ to apply the better and faster **asynchronous** feature of the **powerful** [ESP
227228

228229
1. **ESP32_S3 boards** using `LwIP ENC28J60 Ethernet`
229230
2. **ESP32_S2 boards** using `LwIP ENC28J60 Ethernet`
231+
2. **ESP32_C3 boards** using `LwIP ENC28J60 Ethernet`
230232

231-
Hopefully the `ESP32_C3-based` boards will be supported in the near future to use `LwIP W5500 or ENC28J60 Ethernet`
232-
233+
---
233234

234235

235236
#### ESP32S2_DEV
@@ -245,6 +246,16 @@ to apply the better and faster **asynchronous** feature of the **powerful** [ESP
245246
<img src="https://github.com/khoih-prog/AsyncWebServer_ESP32_SC_ENC/raw/main/pics/ESP32S3_DEV.png">
246247
</p>
247248

249+
250+
#### ESP32C3_DEV
251+
252+
<p align="center">
253+
<img src="https://github.com/khoih-prog/AsyncWebServer_ESP32_SC_ENC/raw/main/pics/ESP32_C3_DevKitC_02.png">
254+
</p>
255+
256+
257+
---
258+
248259
#### ENC28J60
249260

250261
<p align="center">
@@ -1517,7 +1528,7 @@ build_flags =
15171528
---
15181529
---
15191530

1520-
### How to connect ENC28J60 to ESP32_S2/S3
1531+
### How to connect ENC28J60 to ESP32_S2/S3/C3
15211532

15221533
You can change the `INT` pin to another one. Default is `GPIO4`
15231534

@@ -1577,6 +1588,28 @@ You can change the `INT` pin to another one. Default is `GPIO4`
15771588
|3.3V|<--->|3.3V|
15781589

15791590

1591+
---
1592+
1593+
1594+
#### ESP32C3_DEV
1595+
1596+
<p align="center">
1597+
<img src="https://github.com/khoih-prog/AsyncWebServer_ESP32_SC_ENC/raw/main/pics/ESP32_C3_DevKitC_02.png">
1598+
</p>
1599+
1600+
1601+
|ENC28J60|<--->|ESP32_C3|
1602+
|:-:|:-:|:-:|
1603+
|MOSI|<--->|GPIO6|
1604+
|MISO|<--->|GPIO5|
1605+
|SCK|<--->|GPIO4|
1606+
|SS|<--->|GPIO7|
1607+
|INT|<--->|GPIO10|
1608+
|RST|<--->|RST|
1609+
|GND|<--->|GND|
1610+
|3.3V|<--->|3.3V|
1611+
1612+
15801613
---
15811614
---
15821615

@@ -1604,7 +1637,7 @@ You can change the `INT` pin to another one. Default is `GPIO4`
16041637

16051638
### Example [Async_AdvancedWebServer](examples/Async_AdvancedWebServer)
16061639

1607-
https://github.com/khoih-prog/AsyncWebServer_ESP32_SC_ENC/blob/bda58d919d25fdee17df7aa99488fadec6c59002/examples/Async_AdvancedWebServer/Async_AdvancedWebServer.ino#L41-L258
1640+
https://github.com/khoih-prog/AsyncWebServer_ESP32_SC_ENC/blob/328368d52d42c4e5a0f12350e44d249f8cb79213/examples/Async_AdvancedWebServer/Async_AdvancedWebServer.ino#L41-L272
16081641

16091642

16101643
You can access the Async Advanced WebServer @ the server IP
@@ -1613,6 +1646,20 @@ You can access the Async Advanced WebServer @ the server IP
16131646
<img src="https://github.com/khoih-prog/AsyncWebServer_ESP32_SC_ENC/raw/main/pics/Async_AdvancedWebServer.png">
16141647
</p>
16151648

1649+
1650+
<p align="center">
1651+
<img src="https://github.com/khoih-prog/AsyncWebServer_ESP32_SC_ENC/raw/main/pics/AsyncWebServer_SendChunked.png">
1652+
</p>
1653+
1654+
<p align="center">
1655+
<img src="https://github.com/khoih-prog/AsyncWebServer_ESP32_SC_ENC/raw/main/pics/AsyncWebServer_SendChunked_ESP32_S2.png">
1656+
</p>
1657+
1658+
1659+
<p align="center">
1660+
<img src="https://github.com/khoih-prog/AsyncWebServer_ESP32_SC_ENC/raw/main/pics/AsyncWebServer_SendChunked_ESP32_C3.png">
1661+
</p>
1662+
16161663
---
16171664
---
16181665

@@ -1625,7 +1672,7 @@ Following are debug terminal output and screen shots when running example [Async
16251672

16261673
```cpp
16271674
Start AsyncMultiWebServer_ESP32_ENC on ESP32S3_DEV with ESP32_S3_ENC28J60
1628-
AsyncWebServer_ESP32_SC_ENC v1.7.0 for core v2.0.0+
1675+
AsyncWebServer_ESP32_SC_ENC v1.8.0 for core v2.0.0+
16291676
[AWS] Default SPI pinout:
16301677
[AWS] SPI Host: 1
16311678
[AWS] MOSI: 11
@@ -1675,7 +1722,7 @@ Following is the debug terminal and screen shot when running example [Async_Adva
16751722
16761723
```cpp
16771724
Start Async_AdvancedWebServer_MemoryIssues_Send_CString on ESP32S3_DEV with ESP32_S3_ENC28J60
1678-
AsyncWebServer_ESP32_SC_ENC v1.7.0 for core v2.0.0+
1725+
AsyncWebServer_ESP32_SC_ENC v1.8.0 for core v2.0.0+
16791726
[AWS] Default SPI pinout:
16801727
[AWS] SPI Host: 1
16811728
[AWS] MOSI: 11
@@ -1711,7 +1758,7 @@ While using `Arduino String`, the HEAP usage is very large
17111758

17121759
```cpp
17131760
Start Async_AdvancedWebServer_MemoryIssues_SendArduinoString on ESP32S3_DEV with ESP32_S3_ENC28J60
1714-
AsyncWebServer_ESP32_SC_ENC v1.7.0 for core v2.0.0+
1761+
AsyncWebServer_ESP32_SC_ENC v1.8.0 for core v2.0.0+
17151762
[AWS] Default SPI pinout:
17161763
[AWS] SPI Host: 1
17171764
[AWS] MOSI: 11
@@ -1751,7 +1798,7 @@ Following is debug terminal output when running example [Async_AdvancedWebServer
17511798
17521799
```cpp
17531800
Start Async_AdvancedWebServer_SendChunked on ESP32S3_DEV with ESP32_S3_ENC28J60
1754-
AsyncWebServer_ESP32_SC_ENC v1.7.0 for core v2.0.0+
1801+
AsyncWebServer_ESP32_SC_ENC v1.8.0 for core v2.0.0+
17551802
[AWS] Default SPI pinout:
17561803
[AWS] SPI Host: 1
17571804
[AWS] MOSI: 11
@@ -1811,7 +1858,7 @@ Following is debug terminal output when running example [AsyncWebServer_SendChun
18111858

18121859
```cpp
18131860
Start AsyncWebServer_SendChunked on ESP32S3_DEV with ESP32_S3_ENC28J60
1814-
AsyncWebServer_ESP32_SC_ENC v1.7.0 for core v2.0.0+
1861+
AsyncWebServer_ESP32_SC_ENC v1.8.0 for core v2.0.0+
18151862
[AWS] Default SPI pinout:
18161863
[AWS] SPI Host: 1
18171864
[AWS] MOSI: 11
@@ -1877,7 +1924,7 @@ Following is debug terminal output when running example [Async_WebSocketsServer]
18771924
18781925
```cpp
18791926
Starting Async_WebSocketsServer on ESP32S3_DEV with ESP32_S3_ENC28J60
1880-
AsyncWebServer_ESP32_SC_ENC v1.7.0 for core v2.0.0+
1927+
AsyncWebServer_ESP32_SC_ENC v1.8.0 for core v2.0.0+
18811928
[AWS] Default SPI pinout:
18821929
[AWS] SPI Host: 1
18831930
[AWS] MOSI: 11
@@ -1907,7 +1954,7 @@ Following is debug terminal output when running example [Async_HTTPBasicAuth](ex
19071954

19081955
```cpp
19091956
Start Async_HTTPBasicAuth on ESP32S3_DEV with ESP32_S3_ENC28J60
1910-
AsyncWebServer_ESP32_SC_ENC v1.7.0 for core v2.0.0+
1957+
AsyncWebServer_ESP32_SC_ENC v1.8.0 for core v2.0.0+
19111958
[AWS] Default SPI pinout:
19121959
[AWS] SPI Host: 1
19131960
[AWS] MOSI: 11
@@ -1932,12 +1979,12 @@ Login using username = admin and password = esp32_enc28j60
19321979
19331980
#### 7. Async_AdvancedWebServer_SendChunked on ESP32S2_DEV with ESP32_S2_ENC28J60
19341981
1935-
Following is debug terminal output when running example [Async_AdvancedWebServer_SendChunked](examples/Async_AdvancedWebServer_SendChunked) on `ESP32S2_DEV with ESP32_S2_ENC28J60`, using ESP32 core `v2.0.0+`, to demo how to use `beginChunkedResponse()` to send large `html` in chunks. The `built-in MAC address` is used now instead of user-defined one.
1982+
Following is debug terminal output when running example [Async_AdvancedWebServer_SendChunked](examples/Async_AdvancedWebServer_SendChunked) on `ESP32S2_DEV with ESP32_S2_ENC28J60`, using ESP32 core `v2.0.0+`, to demo how to use `beginChunkedResponse()` to send large `html` in chunks. The `built-in MAC address` is now used instead of user-defined one.
19361983
19371984
19381985
```cpp
19391986
Start Async_AdvancedWebServer_SendChunked on ESP32S2_DEV with ESP32_S2_ENC28J60
1940-
AsyncWebServer_ESP32_SC_ENC v1.7.0 for core v2.0.0+
1987+
AsyncWebServer_ESP32_SC_ENC v1.8.0 for core v2.0.0+
19411988
[AWS] Default SPI pinout:
19421989
[AWS] SPI Host: 1
19431990
[AWS] MOSI: 35
@@ -1981,6 +2028,63 @@ You can access the Async Advanced WebServers @ the server IP
19812028
</p>
19822029

19832030

2031+
2032+
---
2033+
2034+
#### 8. Async_AdvancedWebServer_SendChunked on ESP32C3_DEV with ESP32_C3_ENC28J60
2035+
2036+
Following is debug terminal output when running example [Async_AdvancedWebServer_SendChunked](examples/Async_AdvancedWebServer_SendChunked) on `ESP32C3_DEV with ESP32_C3_ENC28J60`, using ESP32 core `v2.0.0+`, to demo how to use `beginChunkedResponse()` to send large `html` in chunks. The `built-in MAC address` is now used instead of user-defined one.
2037+
2038+
2039+
```cpp
2040+
Start Async_AdvancedWebServer_SendChunked on ESP32C3_DEV with ESP32_C3_ENC28J60
2041+
AsyncWebServer_ESP32_SC_ENC v1.8.0 for core v2.0.0+
2042+
[AWS] Default SPI pinout:
2043+
[AWS] SPI Host: 1
2044+
[AWS] MOSI: 6
2045+
[AWS] MISO: 5
2046+
[AWS] SCK: 4
2047+
[AWS] CS: 7
2048+
[AWS] INT: 10
2049+
[AWS] SPI Clock (MHz): 8
2050+
[AWS] =========================
2051+
[AWS] Using built-in mac_eth = 7C:DF:A1:DA:66:87
2052+
2053+
ETH Started
2054+
ETH Connected
2055+
ETH MAC: 7C:DF:A1:DA:66:87, IPv4: 192.168.2.136
2056+
FULL_DUPLEX, 10Mbps
2057+
AsyncWebServer is @ IP : 192.168.2.136
2058+
.[AWS] Total length to send in chunks = 31259
2059+
[AWS] Bytes sent in chunk = 5620
2060+
[AWS] Bytes sent in chunk = 2864
2061+
[AWS] Bytes sent in chunk = 5736
2062+
[AWS] Bytes sent in chunk = 2864
2063+
[AWS] Bytes sent in chunk = 5736
2064+
[AWS] Bytes sent in chunk = 2864
2065+
[AWS] Bytes sent in chunk = 5575
2066+
[AWS] Bytes sent in chunk = 0
2067+
.[AWS] Total length to send in chunks = 31279
2068+
[AWS] Bytes sent in chunk = 5620
2069+
[AWS] Bytes sent in chunk = 2864
2070+
[AWS] Bytes sent in chunk = 5736
2071+
[AWS] Bytes sent in chunk = 2864
2072+
[AWS] Bytes sent in chunk = 2864
2073+
[AWS] Bytes sent in chunk = 5736
2074+
[AWS] Bytes sent in chunk = 2864
2075+
[AWS] Bytes sent in chunk = 2731
2076+
[AWS] Bytes sent in chunk = 0
2077+
```
2078+
2079+
2080+
You can access the Async Advanced WebServers @ the server IP
2081+
2082+
<p align="center">
2083+
<img src="https://github.com/khoih-prog/AsyncWebServer_ESP32_SC_ENC/raw/main/pics/AsyncWebServer_SendChunked_ESP32_C3.png">
2084+
</p>
2085+
2086+
2087+
19842088
---
19852089
---
19862090
@@ -2035,6 +2139,7 @@ Submit issues to: [AsyncWebServer_ESP32_SC_ENC issues](https://github.com/khoih-
20352139
9. Use `allman astyle` and add `utils`
20362140
10. Add `Async_WebSocketsServer`, `Async_HttpBasicAuth` and `MQTT` examples
20372141
11. Add support to **ESP32S2-based boards** using `LwIP ENC28J60 Ethernet`
2142+
12. Add support to **ESP32S2-based boards** using `LwIP ENC28J60 Ethernet`
20382143

20392144

20402145
---

0 commit comments

Comments
 (0)