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

Commit

Permalink
v2.1.0 for ESP32_S2/C3 & LwIP Ethernet
Browse files Browse the repository at this point in the history
### Releases v2.1.0

1. Add support to `ESP32S2/C3` boards using `LwIP W5500 Ethernet`
  • Loading branch information
khoih-prog committed Dec 22, 2022
1 parent f0bc149 commit 409e427
Show file tree
Hide file tree
Showing 16 changed files with 169 additions and 23 deletions.
Binary file added Images/ESP32S2_DEV.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/ESP32_C3_DevKitC_02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,18 @@
## Table of Contents

* [Changelog](#changelog)
* [Releases v2.1.0](#releases-v210)
* [Initial Releases v2.0.0](#initial-releases-v200)

---
---

## Changelog

### Releases v2.1.0

1. Add support to `ESP32S2/C3` boards using `LwIP W5500 Ethernet`

### Initial Releases v2.0.0

1. Initial coding to port [AsyncUDP](https://github.com/espressif/arduino-esp32/tree/master/libraries/AsyncUDP) to ESP32_S3 boards using `LwIP W5500 Ethernet`
Expand Down
15 changes: 15 additions & 0 deletions examples/AsyncUDPClient/AsyncUDPClient.ino
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

//////////////////////////////////////////////////////////

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

// For ESP32_C3
// Optional values to override default settings
// Don't change unless you know what you're doing
//#define ETH_SPI_HOST SPI2_HOST
//#define SPI_CLOCK_MHZ 25

// Must connect INT to GPIOxx or not working
//#define INT_GPIO 10

//#define MISO_GPIO 5
//#define MOSI_GPIO 6
//#define SCK_GPIO 4
//#define CS_GPIO 7

//////////////////////////////////////////////////////////

#include <AsyncUDP_ESP32_SC_W5500.h>
Expand Down
15 changes: 15 additions & 0 deletions examples/AsyncUDPMulticastServer/AsyncUDPMulticastServer.ino
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

//////////////////////////////////////////////////////////

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

// For ESP32_C3
// Optional values to override default settings
// Don't change unless you know what you're doing
//#define ETH_SPI_HOST SPI2_HOST
//#define SPI_CLOCK_MHZ 25

// Must connect INT to GPIOxx or not working
//#define INT_GPIO 10

//#define MISO_GPIO 5
//#define MOSI_GPIO 6
//#define SCK_GPIO 4
//#define CS_GPIO 7

//////////////////////////////////////////////////////////

#include <AsyncUDP_ESP32_SC_W5500.h>
Expand Down
15 changes: 15 additions & 0 deletions examples/AsyncUDPServer/AsyncUDPServer.ino
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

//////////////////////////////////////////////////////////

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

// For ESP32_C3
// Optional values to override default settings
// Don't change unless you know what you're doing
//#define ETH_SPI_HOST SPI2_HOST
//#define SPI_CLOCK_MHZ 25

// Must connect INT to GPIOxx or not working
//#define INT_GPIO 10

//#define MISO_GPIO 5
//#define MOSI_GPIO 6
//#define SCK_GPIO 4
//#define CS_GPIO 7

//////////////////////////////////////////////////////////

#include <AsyncUDP_ESP32_SC_W5500.h>
Expand Down
15 changes: 15 additions & 0 deletions examples/AsyncUdpNTPClient/AsyncUdpNTPClient.ino
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

//////////////////////////////////////////////////////////

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

// For ESP32_C3
// Optional values to override default settings
// Don't change unless you know what you're doing
//#define ETH_SPI_HOST SPI2_HOST
//#define SPI_CLOCK_MHZ 25

// Must connect INT to GPIOxx or not working
//#define INT_GPIO 10

//#define MISO_GPIO 5
//#define MOSI_GPIO 6
//#define SCK_GPIO 4
//#define CS_GPIO 7

//////////////////////////////////////////////////////////

#include <AsyncUDP_ESP32_SC_W5500.h>
Expand Down
15 changes: 15 additions & 0 deletions examples/AsyncUdpSendReceive/AsyncUdpSendReceive.ino
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

//////////////////////////////////////////////////////////

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

// For ESP32_C3
// Optional values to override default settings
// Don't change unless you know what you're doing
//#define ETH_SPI_HOST SPI2_HOST
//#define SPI_CLOCK_MHZ 25

// Must connect INT to GPIOxx or not working
//#define INT_GPIO 10

//#define MISO_GPIO 5
//#define MOSI_GPIO 6
//#define SCK_GPIO 4
//#define CS_GPIO 7

//////////////////////////////////////////////////////////

#include <AsyncUDP_ESP32_SC_W5500.h>
Expand Down
15 changes: 15 additions & 0 deletions examples/multiFileProject/multiFileProject.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

//////////////////////////////////////////////////////////

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

// For ESP32_C3
// Optional values to override default settings
// Don't change unless you know what you're doing
//#define ETH_SPI_HOST SPI2_HOST
//#define SPI_CLOCK_MHZ 25

// Must connect INT to GPIOxx or not working
//#define INT_GPIO 10

//#define MISO_GPIO 5
//#define MOSI_GPIO 6
//#define SCK_GPIO 4
//#define CS_GPIO 7

//////////////////////////////////////////////////////////

// Can be included as many times as necessary, without `Multiple Definitions` Linker Error
Expand Down
4 changes: 2 additions & 2 deletions library.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name":"AsyncUDP_ESP32_SC_W5500",
"version": "2.0.0",
"version": "2.1.0",
"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",
"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",
"authors":
Expand Down Expand Up @@ -34,7 +34,7 @@
{
"owner": "khoih-prog",
"name": "WebServer_ESP32_SC_W5500",
"version": "^1.0.1",
"version": "^1.2.0",
"platforms": "espressif32"
}
],
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=AsyncUDP_ESP32_SC_W5500
version=2.0.0
version=2.1.0
author=Hristo Gochkov,Khoi Hoang
maintainer=Khoi Hoang <[email protected]>
sentence=Fully Asynchronous UDP Library for ESP32S2/S3/C3 boards using LwIP W5500 Ethernet
Expand Down
4 changes: 2 additions & 2 deletions platformio/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ lib_ldf_mode = chain+
; ============================================================
lib_deps =
; PlatformIO 4.x
; WebServer_ESP32_SC_W5500@>=1.0.1
; WebServer_ESP32_SC_W5500@>=1.2.0
; PlatformIO 5.x
khoih-prog/WebServer_ESP32_SC_W5500@>=1.0.1
khoih-prog/WebServer_ESP32_SC_W5500@>=1.2.0

; ============================================================
build_flags =
Expand Down
16 changes: 10 additions & 6 deletions src/AsyncUDP_ESP32_SC_W5500.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@
Built by Khoi Hoang https://github.com/khoih-prog/AsyncUDP_ESP32_SC_W5500
Licensed under GPLv3 license
Version: 2.0.0
Version: 2.1.0
Version Modified By Date Comments
------- ----------- ---------- -----------
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
2.1.0 K Hoang 21/12/2022 Add support to ESP32_S2/C3 using LwIP W5500 Ethernet
*****************************************************************************************************************************/

#pragma once
Expand All @@ -35,7 +36,7 @@
#define SHIELD_TYPE "ESP32_S2_W5500"
#endif

#error ESP32_S2 not supported yet
////////////////////////////////////////

#elif ( ARDUINO_ESP32C3_DEV )
#if (_ASYNC_UDP_ESP32_SC_W5500_LOGLEVEL_ > 3)
Expand All @@ -54,7 +55,7 @@
#define SHIELD_TYPE "ESP32_C3_W5500"
#endif

#error ESP32_C3 not supported yet
////////////////////////////////////////

#elif ( defined(ARDUINO_ESP32S3_DEV) || defined(ARDUINO_ESP32_S3_BOX) || defined(ARDUINO_TINYS3) || \
defined(ARDUINO_PROS3) || defined(ARDUINO_FEATHERS3) )
Expand All @@ -68,12 +69,15 @@
#define SHIELD_TYPE "ESP32_S3_W5500"
#endif

////////////////////////////////////////

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

#define BOARD_NAME ARDUINO_BOARD
/////////////////////////////////////////////////

#define BOARD_NAME ARDUINO_BOARD

/////////////////////////////////////////////////

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

#define ASYNC_UDP_ESP32_SC_W5500_VERSION "AsyncUDP_ESP32_SC_W5500 v2.0.0 for core v2.0.0+"
#define ASYNC_UDP_ESP32_SC_W5500_VERSION "AsyncUDP_ESP32_SC_W5500 v2.1.0 for core v2.0.0+"

extern "C"
{
Expand All @@ -98,7 +102,7 @@
#warning Using code for ESP32 core v1.0.6- in AsyncUDP_ESP32_SC_W5500.h
#endif

#define ASYNC_UDP_ESP32_SC_W5500_VERSION "AsyncUDP_ESP32_SC_W5500 v2.0.0 for core v1.0.6-"
#define ASYNC_UDP_ESP32_SC_W5500_VERSION "AsyncUDP_ESP32_SC_W5500 v2.1.0 for core v1.0.6-"

extern "C"
{
Expand Down
3 changes: 2 additions & 1 deletion src/AsyncUDP_ESP32_SC_W5500.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@
Built by Khoi Hoang https://github.com/khoih-prog/AsyncUDP_ESP32_SC_W5500
Licensed under GPLv3 license
Version: 2.0.0
Version: 2.1.0
Version Modified By Date Comments
------- ----------- ---------- -----------
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
2.1.0 K Hoang 21/12/2022 Add support to ESP32_S2/C3 using LwIP W5500 Ethernet
*****************************************************************************************************************************/

#pragma once
Expand Down
3 changes: 2 additions & 1 deletion src/AsyncUDP_ESP32_SC_W5500_Debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@
Built by Khoi Hoang https://github.com/khoih-prog/AsyncUDP_ESP32_SC_W5500
Licensed under GPLv3 license
Version: 2.0.0
Version: 2.1.0
Version Modified By Date Comments
------- ----------- ---------- -----------
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
2.1.0 K Hoang 21/12/2022 Add support to ESP32_S2/C3 using LwIP W5500 Ethernet
*****************************************************************************************************************************/

#pragma once
Expand Down
Loading

0 comments on commit 409e427

Please sign in to comment.