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

Commit 409e427

Browse files
authored
v2.1.0 for ESP32_S2/C3 & LwIP Ethernet
### Releases v2.1.0 1. Add support to `ESP32S2/C3` boards using `LwIP W5500 Ethernet`
1 parent f0bc149 commit 409e427

16 files changed

+169
-23
lines changed

Images/ESP32S2_DEV.png

352 KB
Loading

Images/ESP32_C3_DevKitC_02.png

205 KB
Loading

changelog.md

+5
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,18 @@
1717
## Table of Contents
1818

1919
* [Changelog](#changelog)
20+
* [Releases v2.1.0](#releases-v210)
2021
* [Initial Releases v2.0.0](#initial-releases-v200)
2122

2223
---
2324
---
2425

2526
## Changelog
2627

28+
### Releases v2.1.0
29+
30+
1. Add support to `ESP32S2/C3` boards using `LwIP W5500 Ethernet`
31+
2732
### Initial Releases v2.0.0
2833

2934
1. Initial coding to port [AsyncUDP](https://github.com/espressif/arduino-esp32/tree/master/libraries/AsyncUDP) to ESP32_S3 boards using `LwIP W5500 Ethernet`

examples/AsyncUDPClient/AsyncUDPClient.ino

+15
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
//////////////////////////////////////////////////////////
2323

24+
// For ESP32-S3
2425
// Optional values to override default settings
2526
// Don't change unless you know what you're doing
2627
//#define ETH_SPI_HOST SPI3_HOST
@@ -34,6 +35,20 @@
3435
//#define SCK_GPIO 12
3536
//#define CS_GPIO 10
3637

38+
// For ESP32_C3
39+
// Optional values to override default settings
40+
// Don't change unless you know what you're doing
41+
//#define ETH_SPI_HOST SPI2_HOST
42+
//#define SPI_CLOCK_MHZ 25
43+
44+
// Must connect INT to GPIOxx or not working
45+
//#define INT_GPIO 10
46+
47+
//#define MISO_GPIO 5
48+
//#define MOSI_GPIO 6
49+
//#define SCK_GPIO 4
50+
//#define CS_GPIO 7
51+
3752
//////////////////////////////////////////////////////////
3853

3954
#include <AsyncUDP_ESP32_SC_W5500.h>

examples/AsyncUDPMulticastServer/AsyncUDPMulticastServer.ino

+15
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
//////////////////////////////////////////////////////////
2323

24+
// For ESP32-S3
2425
// Optional values to override default settings
2526
// Don't change unless you know what you're doing
2627
//#define ETH_SPI_HOST SPI3_HOST
@@ -34,6 +35,20 @@
3435
//#define SCK_GPIO 12
3536
//#define CS_GPIO 10
3637

38+
// For ESP32_C3
39+
// Optional values to override default settings
40+
// Don't change unless you know what you're doing
41+
//#define ETH_SPI_HOST SPI2_HOST
42+
//#define SPI_CLOCK_MHZ 25
43+
44+
// Must connect INT to GPIOxx or not working
45+
//#define INT_GPIO 10
46+
47+
//#define MISO_GPIO 5
48+
//#define MOSI_GPIO 6
49+
//#define SCK_GPIO 4
50+
//#define CS_GPIO 7
51+
3752
//////////////////////////////////////////////////////////
3853

3954
#include <AsyncUDP_ESP32_SC_W5500.h>

examples/AsyncUDPServer/AsyncUDPServer.ino

+15
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
//////////////////////////////////////////////////////////
2323

24+
// For ESP32-S3
2425
// Optional values to override default settings
2526
// Don't change unless you know what you're doing
2627
//#define ETH_SPI_HOST SPI3_HOST
@@ -34,6 +35,20 @@
3435
//#define SCK_GPIO 12
3536
//#define CS_GPIO 10
3637

38+
// For ESP32_C3
39+
// Optional values to override default settings
40+
// Don't change unless you know what you're doing
41+
//#define ETH_SPI_HOST SPI2_HOST
42+
//#define SPI_CLOCK_MHZ 25
43+
44+
// Must connect INT to GPIOxx or not working
45+
//#define INT_GPIO 10
46+
47+
//#define MISO_GPIO 5
48+
//#define MOSI_GPIO 6
49+
//#define SCK_GPIO 4
50+
//#define CS_GPIO 7
51+
3752
//////////////////////////////////////////////////////////
3853

3954
#include <AsyncUDP_ESP32_SC_W5500.h>

examples/AsyncUdpNTPClient/AsyncUdpNTPClient.ino

+15
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
//////////////////////////////////////////////////////////
2323

24+
// For ESP32-S3
2425
// Optional values to override default settings
2526
// Don't change unless you know what you're doing
2627
//#define ETH_SPI_HOST SPI3_HOST
@@ -34,6 +35,20 @@
3435
//#define SCK_GPIO 12
3536
//#define CS_GPIO 10
3637

38+
// For ESP32_C3
39+
// Optional values to override default settings
40+
// Don't change unless you know what you're doing
41+
//#define ETH_SPI_HOST SPI2_HOST
42+
//#define SPI_CLOCK_MHZ 25
43+
44+
// Must connect INT to GPIOxx or not working
45+
//#define INT_GPIO 10
46+
47+
//#define MISO_GPIO 5
48+
//#define MOSI_GPIO 6
49+
//#define SCK_GPIO 4
50+
//#define CS_GPIO 7
51+
3752
//////////////////////////////////////////////////////////
3853

3954
#include <AsyncUDP_ESP32_SC_W5500.h>

examples/AsyncUdpSendReceive/AsyncUdpSendReceive.ino

+15
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
//////////////////////////////////////////////////////////
2323

24+
// For ESP32-S3
2425
// Optional values to override default settings
2526
// Don't change unless you know what you're doing
2627
//#define ETH_SPI_HOST SPI3_HOST
@@ -34,6 +35,20 @@
3435
//#define SCK_GPIO 12
3536
//#define CS_GPIO 10
3637

38+
// For ESP32_C3
39+
// Optional values to override default settings
40+
// Don't change unless you know what you're doing
41+
//#define ETH_SPI_HOST SPI2_HOST
42+
//#define SPI_CLOCK_MHZ 25
43+
44+
// Must connect INT to GPIOxx or not working
45+
//#define INT_GPIO 10
46+
47+
//#define MISO_GPIO 5
48+
//#define MOSI_GPIO 6
49+
//#define SCK_GPIO 4
50+
//#define CS_GPIO 7
51+
3752
//////////////////////////////////////////////////////////
3853

3954
#include <AsyncUDP_ESP32_SC_W5500.h>

examples/multiFileProject/multiFileProject.h

+15
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
//////////////////////////////////////////////////////////
2626

27+
// For ESP32-S3
2728
// Optional values to override default settings
2829
// Don't change unless you know what you're doing
2930
//#define ETH_SPI_HOST SPI3_HOST
@@ -37,6 +38,20 @@
3738
//#define SCK_GPIO 12
3839
//#define CS_GPIO 10
3940

41+
// For ESP32_C3
42+
// Optional values to override default settings
43+
// Don't change unless you know what you're doing
44+
//#define ETH_SPI_HOST SPI2_HOST
45+
//#define SPI_CLOCK_MHZ 25
46+
47+
// Must connect INT to GPIOxx or not working
48+
//#define INT_GPIO 10
49+
50+
//#define MISO_GPIO 5
51+
//#define MOSI_GPIO 6
52+
//#define SCK_GPIO 4
53+
//#define CS_GPIO 7
54+
4055
//////////////////////////////////////////////////////////
4156

4257
// Can be included as many times as necessary, without `Multiple Definitions` Linker Error

library.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name":"AsyncUDP_ESP32_SC_W5500",
3-
"version": "2.0.0",
3+
"version": "2.1.0",
44
"description":"Fully Asynchronous UDP Library for ESP32S2/S3/C3 boards using LwIP W5500 Ethernet. The library is easy to use and includes support for Unicast, Broadcast and Multicast environments",
55
"keywords":"communication, data, async, udp, ntp, time, time-server, server, client, multicast, broadcast, webserver, esp32, esp32-s3, esp32-s2, esp32-c3, W5500, lwip, udp-server, udp-multicast-server",
66
"authors":
@@ -34,7 +34,7 @@
3434
{
3535
"owner": "khoih-prog",
3636
"name": "WebServer_ESP32_SC_W5500",
37-
"version": "^1.0.1",
37+
"version": "^1.2.0",
3838
"platforms": "espressif32"
3939
}
4040
],

library.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=AsyncUDP_ESP32_SC_W5500
2-
version=2.0.0
2+
version=2.1.0
33
author=Hristo Gochkov,Khoi Hoang
44
maintainer=Khoi Hoang <[email protected]>
55
sentence=Fully Asynchronous UDP Library for ESP32S2/S3/C3 boards using LwIP W5500 Ethernet

platformio/platformio.ini

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ lib_ldf_mode = chain+
3939
; ============================================================
4040
lib_deps =
4141
; PlatformIO 4.x
42-
; WebServer_ESP32_SC_W5500@>=1.0.1
42+
; WebServer_ESP32_SC_W5500@>=1.2.0
4343
; PlatformIO 5.x
44-
khoih-prog/WebServer_ESP32_SC_W5500@>=1.0.1
44+
khoih-prog/WebServer_ESP32_SC_W5500@>=1.2.0
4545

4646
; ============================================================
4747
build_flags =

src/AsyncUDP_ESP32_SC_W5500.h

+10-6
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@
77
Built by Khoi Hoang https://github.com/khoih-prog/AsyncUDP_ESP32_SC_W5500
88
Licensed under GPLv3 license
99
10-
Version: 2.0.0
10+
Version: 2.1.0
1111
1212
Version Modified By Date Comments
1313
------- ----------- ---------- -----------
1414
2.0.0 K Hoang 18/12/2022 Initial coding for ESP32_SC_W5500. Bump up version to v2.0.0 to sync with AsyncUDP v2.0.0
15+
2.1.0 K Hoang 21/12/2022 Add support to ESP32_S2/C3 using LwIP W5500 Ethernet
1516
*****************************************************************************************************************************/
1617

1718
#pragma once
@@ -35,7 +36,7 @@
3536
#define SHIELD_TYPE "ESP32_S2_W5500"
3637
#endif
3738

38-
#error ESP32_S2 not supported yet
39+
////////////////////////////////////////
3940

4041
#elif ( ARDUINO_ESP32C3_DEV )
4142
#if (_ASYNC_UDP_ESP32_SC_W5500_LOGLEVEL_ > 3)
@@ -54,7 +55,7 @@
5455
#define SHIELD_TYPE "ESP32_C3_W5500"
5556
#endif
5657

57-
#error ESP32_C3 not supported yet
58+
////////////////////////////////////////
5859

5960
#elif ( defined(ARDUINO_ESP32S3_DEV) || defined(ARDUINO_ESP32_S3_BOX) || defined(ARDUINO_TINYS3) || \
6061
defined(ARDUINO_PROS3) || defined(ARDUINO_FEATHERS3) )
@@ -68,12 +69,15 @@
6869
#define SHIELD_TYPE "ESP32_S3_W5500"
6970
#endif
7071

72+
////////////////////////////////////////
73+
7174
#else
7275
#error This code is intended to run on the ESP32_S2/3, ESP32_C3 platform! Please check your Tools->Board setting.
7376
#endif
7477

75-
#define BOARD_NAME ARDUINO_BOARD
78+
/////////////////////////////////////////////////
7679

80+
#define BOARD_NAME ARDUINO_BOARD
7781

7882
/////////////////////////////////////////////////
7983

@@ -83,7 +87,7 @@
8387
#warning Using code for ESP32 core v2.0.0+ in AsyncUDP_ESP32_SC_W5500.h
8488
#endif
8589

86-
#define ASYNC_UDP_ESP32_SC_W5500_VERSION "AsyncUDP_ESP32_SC_W5500 v2.0.0 for core v2.0.0+"
90+
#define ASYNC_UDP_ESP32_SC_W5500_VERSION "AsyncUDP_ESP32_SC_W5500 v2.1.0 for core v2.0.0+"
8791

8892
extern "C"
8993
{
@@ -98,7 +102,7 @@
98102
#warning Using code for ESP32 core v1.0.6- in AsyncUDP_ESP32_SC_W5500.h
99103
#endif
100104

101-
#define ASYNC_UDP_ESP32_SC_W5500_VERSION "AsyncUDP_ESP32_SC_W5500 v2.0.0 for core v1.0.6-"
105+
#define ASYNC_UDP_ESP32_SC_W5500_VERSION "AsyncUDP_ESP32_SC_W5500 v2.1.0 for core v1.0.6-"
102106

103107
extern "C"
104108
{

src/AsyncUDP_ESP32_SC_W5500.hpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@
77
Built by Khoi Hoang https://github.com/khoih-prog/AsyncUDP_ESP32_SC_W5500
88
Licensed under GPLv3 license
99
10-
Version: 2.0.0
10+
Version: 2.1.0
1111
1212
Version Modified By Date Comments
1313
------- ----------- ---------- -----------
1414
2.0.0 K Hoang 18/12/2022 Initial coding for ESP32_SC_W5500. Bump up version to v2.0.0 to sync with AsyncUDP v2.0.0
15+
2.1.0 K Hoang 21/12/2022 Add support to ESP32_S2/C3 using LwIP W5500 Ethernet
1516
*****************************************************************************************************************************/
1617

1718
#pragma once

src/AsyncUDP_ESP32_SC_W5500_Debug.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@
77
Built by Khoi Hoang https://github.com/khoih-prog/AsyncUDP_ESP32_SC_W5500
88
Licensed under GPLv3 license
99
10-
Version: 2.0.0
10+
Version: 2.1.0
1111
1212
Version Modified By Date Comments
1313
------- ----------- ---------- -----------
1414
2.0.0 K Hoang 18/12/2022 Initial coding for ESP32_SC_W5500. Bump up version to v2.0.0 to sync with AsyncUDP v2.0.0
15+
2.1.0 K Hoang 21/12/2022 Add support to ESP32_S2/C3 using LwIP W5500 Ethernet
1516
*****************************************************************************************************************************/
1617

1718
#pragma once

0 commit comments

Comments
 (0)