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

Commit 328368d

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 ccb7ce9 commit 328368d

33 files changed

+111
-67
lines changed

changelog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
## Table of contents
1616

1717
* [Changelog](#changelog)
18+
* [Releases v1.8.0](#releases-v180)
1819
* [Releases v1.7.0](#releases-v170)
1920
* [Releases v1.6.3](#releases-v163)
2021

@@ -24,6 +25,10 @@
2425

2526
## Changelog
2627

28+
#### Releases v1.8.0
29+
30+
1. Add support to `ESP32_C3` boards using `LwIP ENC28J60 Ethernet`
31+
2732
#### Releases v1.7.0
2833

2934
1. Add support to `ESP32_S2` boards using `LwIP ENC28J60 Ethernet`.

examples/Async_AdvancedWebServer/Async_AdvancedWebServer.ino

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,20 @@ IPAddress myDNS(8, 8, 8, 8);
9898
//#define SCK_GPIO 12
9999
//#define CS_GPIO 10
100100

101+
// For ESP32_C3
102+
// Optional values to override default settings
103+
// Don't change unless you know what you're doing
104+
//#define ETH_SPI_HOST SPI2_HOST
105+
//#define SPI_CLOCK_MHZ 8
106+
107+
// Must connect INT to GPIOxx or not working
108+
//#define INT_GPIO 10
109+
110+
//#define MISO_GPIO 5
111+
//#define MOSI_GPIO 6
112+
//#define SCK_GPIO 4
113+
//#define CS_GPIO 7
114+
101115
//////////////////////////////////////////////////////////
102116

103117
#include <AsyncTCP.h>
@@ -224,7 +238,7 @@ void setup()
224238

225239
// Static IP, leave without this line to get IP via DHCP
226240
//bool config(IPAddress local_ip, IPAddress gateway, IPAddress subnet, IPAddress dns1 = 0, IPAddress dns2 = 0);
227-
ETH.config(myIP, myGW, mySN, myDNS);
241+
//ETH.config(myIP, myGW, mySN, myDNS);
228242

229243
ESP32_ENC_waitForConnect();
230244

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name":"AsyncWebServer_ESP32_SC_ENC",
3-
"version": "1.7.0",
3+
"version": "1.8.0",
44
"description":"Asynchronous HTTP and WebSocket Server Library for (ESP32_S2/S3/C3 + LwIP ENC28J60). Now supporting using CString to save heap to send very large data and with examples to demo how to use beginChunkedResponse() to send large html in chunks",
55
"keywords":"http, async, async-webserver, async-websocket, websocket, webserver, esp32, esp32-s2, esp32-s3, esp32-c3, esp32, enc28j60, lwip, lwip-enc28j60, lwip-ethernet",
66
"authors":

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=AsyncWebServer_ESP32_SC_ENC
2-
version=1.7.0
2+
version=1.8.0
33
author=Hristo Gochkov,Khoi Hoang
44
maintainer=Khoi Hoang <khoih.prog@gmail.com>
55
license=GPLv3
77.3 KB
Loading

pics/ESP32_C3_DevKitC_02.png

205 KB
Loading

src/AsyncEventSource.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/****************************************************************************************************************************
22
AsyncEventSource.cpp - Dead simple Ethernet AsyncWebServer.
33
4-
For LwIP ENC28J60 Ethernet in ESP32_SC_ENC (ESP32_S2/3, ESP32_C3 + LwIP ENC28J60)
4+
For LwIP ENC28J60 Ethernet in ESP32_SC_ENC (ESP32_S2/S3/C3 + LwIP ENC28J60)
55
66
AsyncWebServer_ESP32_SC_ENC is a library for the LwIP Ethernet ENC28J60 in ESP32_S2/S3/C3 to run AsyncWebServer
77
@@ -22,12 +22,13 @@
2222
You should have received a copy of the GNU Lesser General Public License along with this library;
2323
if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
2424
25-
Version: 1.7.0
25+
Version: 1.8.0
2626
2727
Version Modified By Date Comments
2828
------- ----------- ---------- -----------
2929
1.6.3 K Hoang 15/12/2022 Initial porting for ENC28J60 + ESP32_S3. Sync with AsyncWebServer_ESP32_ENC v1.6.3
3030
1.7.0 K Hoang 19/12/2022 Add support to ESP32_S2_ENC (ESP32_S2 + LwIP ENC28J60)
31+
1.8.0 K Hoang 20/12/2022 Add support to ESP32_C3_ENC (ESP32_C3 + LwIP ENC28J60)
3132
*****************************************************************************************************************************/
3233

3334
#include "Arduino.h"

src/AsyncEventSource.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/****************************************************************************************************************************
22
AsyncEventSource.h - Dead simple Ethernet AsyncWebServer.
33
4-
For LwIP ENC28J60 Ethernet in ESP32_SC_ENC (ESP32_S2/3, ESP32_C3 + LwIP ENC28J60)
4+
For LwIP ENC28J60 Ethernet in ESP32_SC_ENC (ESP32_S2/S3/C3 + LwIP ENC28J60)
55
66
AsyncWebServer_ESP32_SC_ENC is a library for the LwIP Ethernet ENC28J60 in ESP32_S2/S3/C3 to run AsyncWebServer
77
@@ -22,12 +22,13 @@
2222
You should have received a copy of the GNU Lesser General Public License along with this library;
2323
if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
2424
25-
Version: 1.7.0
25+
Version: 1.8.0
2626
2727
Version Modified By Date Comments
2828
------- ----------- ---------- -----------
2929
1.6.3 K Hoang 15/12/2022 Initial porting for ENC28J60 + ESP32_S3. Sync with AsyncWebServer_ESP32_ENC v1.6.3
3030
1.7.0 K Hoang 19/12/2022 Add support to ESP32_S2_ENC (ESP32_S2 + LwIP ENC28J60)
31+
1.8.0 K Hoang 20/12/2022 Add support to ESP32_C3_ENC (ESP32_C3 + LwIP ENC28J60)
3132
*****************************************************************************************************************************/
3233

3334
#ifndef ASYNCEVENTSOURCE_H_

src/AsyncJson.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/****************************************************************************************************************************
22
AsyncJson.h - Dead simple Ethernet AsyncWebServer.
33
4-
For LwIP ENC28J60 Ethernet in ESP32_SC_ENC (ESP32_S2/3, ESP32_C3 + LwIP ENC28J60)
4+
For LwIP ENC28J60 Ethernet in ESP32_SC_ENC (ESP32_S2/S3/C3 + LwIP ENC28J60)
55
66
AsyncWebServer_ESP32_SC_ENC is a library for the LwIP Ethernet ENC28J60 in ESP32_S2/S3/C3 to run AsyncWebServer
77
@@ -22,12 +22,13 @@
2222
You should have received a copy of the GNU Lesser General Public License along with this library;
2323
if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
2424
25-
Version: 1.7.0
25+
Version: 1.8.0
2626
2727
Version Modified By Date Comments
2828
------- ----------- ---------- -----------
2929
1.6.3 K Hoang 15/12/2022 Initial porting for ENC28J60 + ESP32_S3. Sync with AsyncWebServer_ESP32_ENC v1.6.3
3030
1.7.0 K Hoang 19/12/2022 Add support to ESP32_S2_ENC (ESP32_S2 + LwIP ENC28J60)
31+
1.8.0 K Hoang 20/12/2022 Add support to ESP32_C3_ENC (ESP32_C3 + LwIP ENC28J60)
3132
*****************************************************************************************************************************/
3233
/*
3334
Async Response to use with ArduinoJson and AsyncWebServer

src/AsyncWebServer_ESP32_SC_ENC.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/****************************************************************************************************************************
22
AsyncWebServer_ESP32_SC_ENC.cpp - Dead simple Ethernet AsyncWebServer.
33
4-
For LwIP ENC28J60 Ethernet in ESP32_SC_ENC (ESP32_S2/3, ESP32_C3 + LwIP ENC28J60)
4+
For LwIP ENC28J60 Ethernet in ESP32_SC_ENC (ESP32_S2/S3/C3 + LwIP ENC28J60)
55
66
AsyncWebServer_ESP32_SC_ENC is a library for the LwIP Ethernet ENC28J60 in ESP32_S2/S3/C3 to run AsyncWebServer
77
@@ -22,12 +22,13 @@
2222
You should have received a copy of the GNU Lesser General Public License along with this library;
2323
if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
2424
25-
Version: 1.7.0
25+
Version: 1.8.0
2626
2727
Version Modified By Date Comments
2828
------- ----------- ---------- -----------
2929
1.6.3 K Hoang 15/12/2022 Initial porting for ENC28J60 + ESP32_S3. Sync with AsyncWebServer_ESP32_ENC v1.6.3
3030
1.7.0 K Hoang 19/12/2022 Add support to ESP32_S2_ENC (ESP32_S2 + LwIP ENC28J60)
31+
1.8.0 K Hoang 20/12/2022 Add support to ESP32_C3_ENC (ESP32_C3 + LwIP ENC28J60)
3132
*****************************************************************************************************************************/
3233

3334
#include "AsyncWebServer_ESP32_SC_ENC.h"

0 commit comments

Comments
 (0)