diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 462ff21..ac91994 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -16,7 +16,7 @@ Please ensure to specify the following: * Arduino IDE version (e.g. 1.8.19) or Platform.io version * Board type (e.g. ESP32S3_DEV, ESP32S2_DEV, ESP32C3_DEV) -* Board Core Version (e.g. ESP32 core v2.0.5) +* Board Core Version (e.g. ESP32 core v2.0.6) * Contextual information (e.g. what you were trying to achieve) * Simplest possible steps to reproduce * Anything that might be relevant in your opinion, such as: @@ -31,7 +31,7 @@ Please be educated, civilized and constructive. Disrespective posts against [Git ``` Arduino IDE version: 1.8.19 ESP32S3_DEV board -ESP32 core v2.0.5 +ESP32 core v2.0.6 OS: Ubuntu 20.04 LTS Linux xy-Inspiron-3593 5.15.0-56-generic #62~20.04.1-Ubuntu SMP Tue Nov 22 21:24:20 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux diff --git a/changelog.md b/changelog.md index 06b0571..ba096c0 100644 --- a/changelog.md +++ b/changelog.md @@ -15,6 +15,7 @@ ## Table of contents * [Changelog](#changelog) + * [Releases v1.8.1](#releases-v181) * [Releases v1.8.0](#releases-v180) * [Releases v1.7.0](#releases-v170) * [Releases v1.6.3](#releases-v163) @@ -25,6 +26,10 @@ ## Changelog +#### Releases v1.8.1 + +1. Remove unused variable to avoid compiler warning and error + #### Releases v1.8.0 1. Add support to `ESP32_C3` boards using `LwIP W5500 Ethernet` diff --git a/examples/AsyncMultiWebServer_ESP32_W5500/AsyncMultiWebServer_ESP32_W5500.ino b/examples/AsyncMultiWebServer_ESP32_W5500/AsyncMultiWebServer_ESP32_W5500.ino index 6156808..8f31796 100644 --- a/examples/AsyncMultiWebServer_ESP32_W5500/AsyncMultiWebServer_ESP32_W5500.ino +++ b/examples/AsyncMultiWebServer_ESP32_W5500/AsyncMultiWebServer_ESP32_W5500.ino @@ -55,7 +55,7 @@ IPAddress myDNS(8, 8, 8, 8); ////////////////////////////////////////////////////////// -// For W5500 & ESP32-S3 +// 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 @@ -69,6 +69,20 @@ IPAddress myDNS(8, 8, 8, 8); //#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 diff --git a/examples/AsyncSimpleServer_ESP32_W5500/AsyncSimpleServer_ESP32_W5500.ino b/examples/AsyncSimpleServer_ESP32_W5500/AsyncSimpleServer_ESP32_W5500.ino index 6cdc347..dc53103 100644 --- a/examples/AsyncSimpleServer_ESP32_W5500/AsyncSimpleServer_ESP32_W5500.ino +++ b/examples/AsyncSimpleServer_ESP32_W5500/AsyncSimpleServer_ESP32_W5500.ino @@ -55,7 +55,7 @@ IPAddress myDNS(8, 8, 8, 8); ////////////////////////////////////////////////////////// -// For W5500 & ESP32-S3 +// 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 @@ -69,6 +69,20 @@ IPAddress myDNS(8, 8, 8, 8); //#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 diff --git a/examples/AsyncWebServer_SendChunked/AsyncWebServer_SendChunked.ino b/examples/AsyncWebServer_SendChunked/AsyncWebServer_SendChunked.ino index 1db13c5..c1b88a9 100644 --- a/examples/AsyncWebServer_SendChunked/AsyncWebServer_SendChunked.ino +++ b/examples/AsyncWebServer_SendChunked/AsyncWebServer_SendChunked.ino @@ -55,7 +55,7 @@ IPAddress myDNS(8, 8, 8, 8); ////////////////////////////////////////////////////////// -// For W5500 & ESP32-S3 +// 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 @@ -69,6 +69,20 @@ IPAddress myDNS(8, 8, 8, 8); //#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 diff --git a/examples/Async_AdvancedWebServer_MemoryIssues_SendArduinoString/Async_AdvancedWebServer_MemoryIssues_SendArduinoString.ino b/examples/Async_AdvancedWebServer_MemoryIssues_SendArduinoString/Async_AdvancedWebServer_MemoryIssues_SendArduinoString.ino index 89aaca1..a93d3bd 100644 --- a/examples/Async_AdvancedWebServer_MemoryIssues_SendArduinoString/Async_AdvancedWebServer_MemoryIssues_SendArduinoString.ino +++ b/examples/Async_AdvancedWebServer_MemoryIssues_SendArduinoString/Async_AdvancedWebServer_MemoryIssues_SendArduinoString.ino @@ -83,7 +83,7 @@ IPAddress myDNS(8, 8, 8, 8); ////////////////////////////////////////////////////////// -// For W5500 & ESP32-S3 +// 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 @@ -97,6 +97,20 @@ IPAddress myDNS(8, 8, 8, 8); //#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 diff --git a/examples/Async_AdvancedWebServer_MemoryIssues_Send_CString/Async_AdvancedWebServer_MemoryIssues_Send_CString.ino b/examples/Async_AdvancedWebServer_MemoryIssues_Send_CString/Async_AdvancedWebServer_MemoryIssues_Send_CString.ino index ef9b25c..a5186ab 100644 --- a/examples/Async_AdvancedWebServer_MemoryIssues_Send_CString/Async_AdvancedWebServer_MemoryIssues_Send_CString.ino +++ b/examples/Async_AdvancedWebServer_MemoryIssues_Send_CString/Async_AdvancedWebServer_MemoryIssues_Send_CString.ino @@ -83,7 +83,7 @@ IPAddress myDNS(8, 8, 8, 8); ////////////////////////////////////////////////////////// -// For W5500 & ESP32-S3 +// 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 @@ -97,6 +97,20 @@ IPAddress myDNS(8, 8, 8, 8); //#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 diff --git a/examples/Async_AdvancedWebServer_SendChunked/Async_AdvancedWebServer_SendChunked.ino b/examples/Async_AdvancedWebServer_SendChunked/Async_AdvancedWebServer_SendChunked.ino index 17f3213..9bc9e21 100644 --- a/examples/Async_AdvancedWebServer_SendChunked/Async_AdvancedWebServer_SendChunked.ino +++ b/examples/Async_AdvancedWebServer_SendChunked/Async_AdvancedWebServer_SendChunked.ino @@ -83,7 +83,7 @@ IPAddress myDNS(8, 8, 8, 8); ////////////////////////////////////////////////////////// -// For W5500 & ESP32-S3 +// 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 @@ -97,6 +97,20 @@ IPAddress myDNS(8, 8, 8, 8); //#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 diff --git a/examples/Async_HelloServer/Async_HelloServer.ino b/examples/Async_HelloServer/Async_HelloServer.ino index e87dc4f..145249c 100644 --- a/examples/Async_HelloServer/Async_HelloServer.ino +++ b/examples/Async_HelloServer/Async_HelloServer.ino @@ -55,7 +55,7 @@ IPAddress myDNS(8, 8, 8, 8); ////////////////////////////////////////////////////////// -// For W5500 & ESP32-S3 +// 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 @@ -69,6 +69,20 @@ IPAddress myDNS(8, 8, 8, 8); //#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 diff --git a/examples/Async_HelloServer2/Async_HelloServer2.ino b/examples/Async_HelloServer2/Async_HelloServer2.ino index 4a3aa96..901e35d 100644 --- a/examples/Async_HelloServer2/Async_HelloServer2.ino +++ b/examples/Async_HelloServer2/Async_HelloServer2.ino @@ -55,7 +55,7 @@ IPAddress myDNS(8, 8, 8, 8); ////////////////////////////////////////////////////////// -// For W5500 & ESP32-S3 +// 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 @@ -69,6 +69,20 @@ IPAddress myDNS(8, 8, 8, 8); //#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 diff --git a/examples/Async_HttpBasicAuth/Async_HttpBasicAuth.ino b/examples/Async_HttpBasicAuth/Async_HttpBasicAuth.ino index e87bf96..f0f55e1 100644 --- a/examples/Async_HttpBasicAuth/Async_HttpBasicAuth.ino +++ b/examples/Async_HttpBasicAuth/Async_HttpBasicAuth.ino @@ -55,7 +55,7 @@ IPAddress myDNS(8, 8, 8, 8); ////////////////////////////////////////////////////////// -// For W5500 & ESP32-S3 +// 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 @@ -69,6 +69,20 @@ IPAddress myDNS(8, 8, 8, 8); //#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 diff --git a/examples/Async_PostServer/Async_PostServer.ino b/examples/Async_PostServer/Async_PostServer.ino index 69023e1..243b797 100644 --- a/examples/Async_PostServer/Async_PostServer.ino +++ b/examples/Async_PostServer/Async_PostServer.ino @@ -55,7 +55,7 @@ IPAddress myDNS(8, 8, 8, 8); ////////////////////////////////////////////////////////// -// For W5500 & ESP32-S3 +// 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 @@ -69,6 +69,20 @@ IPAddress myDNS(8, 8, 8, 8); //#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 diff --git a/examples/Async_RegexPatterns_ESP32_W5500/Async_RegexPatterns_ESP32_W5500.ino b/examples/Async_RegexPatterns_ESP32_W5500/Async_RegexPatterns_ESP32_W5500.ino index 629b743..e8b2b8b 100644 --- a/examples/Async_RegexPatterns_ESP32_W5500/Async_RegexPatterns_ESP32_W5500.ino +++ b/examples/Async_RegexPatterns_ESP32_W5500/Async_RegexPatterns_ESP32_W5500.ino @@ -74,7 +74,7 @@ IPAddress myDNS(8, 8, 8, 8); ////////////////////////////////////////////////////////// -// For W5500 & ESP32-S3 +// 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 @@ -88,6 +88,20 @@ IPAddress myDNS(8, 8, 8, 8); //#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 diff --git a/examples/Async_WebSocketsServer/Async_WebSocketsServer.ino b/examples/Async_WebSocketsServer/Async_WebSocketsServer.ino index bae1069..20953bc 100644 --- a/examples/Async_WebSocketsServer/Async_WebSocketsServer.ino +++ b/examples/Async_WebSocketsServer/Async_WebSocketsServer.ino @@ -55,7 +55,7 @@ IPAddress myDNS(8, 8, 8, 8); ////////////////////////////////////////////////////////// -// For W5500 & ESP32-S3 +// 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 @@ -69,6 +69,20 @@ IPAddress myDNS(8, 8, 8, 8); //#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 diff --git a/examples/MQTTClient_Auth/defines.h b/examples/MQTTClient_Auth/defines.h index 5f652be..c0c07ad 100644 --- a/examples/MQTTClient_Auth/defines.h +++ b/examples/MQTTClient_Auth/defines.h @@ -1,12 +1,12 @@ /**************************************************************************************************************************** defines.h - For RP2040W with CYW43439 WiFi + For W5500 LwIP Ethernet in ESP32_SC_W5500 (ESP32_S2/3, ESP32_C3 + W5500) - AsyncWebServer_RP2040W is a library for the RP2040W with CYW43439 WiFi + AsyncWebServer_ESP32_SC_W5500 is a library for the LwIP Ethernet W5500 in ESP32_S2/3, ESP32_C3 to run AsyncWebServer Based on and modified from ESPAsyncWebServer (https://github.com/me-no-dev/ESPAsyncWebServer) - Built by Khoi Hoang https://github.com/khoih-prog/AsyncWebServer_RP2040W + Built by Khoi Hoang https://github.com/khoih-prog/AsyncWebServer_ESP32_SC_W5500 Licensed under GPLv3 license *****************************************************************************************************************************/ @@ -59,7 +59,7 @@ IPAddress myDNS(8, 8, 8, 8); ////////////////////////////////////////////////////////// -// For W5500 & ESP32-S3 +// 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 @@ -73,6 +73,20 @@ IPAddress myDNS(8, 8, 8, 8); //#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 diff --git a/examples/MQTTClient_Basic/defines.h b/examples/MQTTClient_Basic/defines.h index 6634ca3..c8c6d11 100644 --- a/examples/MQTTClient_Basic/defines.h +++ b/examples/MQTTClient_Basic/defines.h @@ -1,12 +1,12 @@ /**************************************************************************************************************************** defines.h - For RP2040W with CYW43439 WiFi + For W5500 LwIP Ethernet in ESP32_SC_W5500 (ESP32_S2/3, ESP32_C3 + W5500) - AsyncWebServer_RP2040W is a library for the RP2040W with CYW43439 WiFi + AsyncWebServer_ESP32_SC_W5500 is a library for the LwIP Ethernet W5500 in ESP32_S2/3, ESP32_C3 to run AsyncWebServer Based on and modified from ESPAsyncWebServer (https://github.com/me-no-dev/ESPAsyncWebServer) - Built by Khoi Hoang https://github.com/khoih-prog/AsyncWebServer_RP2040W + Built by Khoi Hoang https://github.com/khoih-prog/AsyncWebServer_ESP32_SC_W5500 Licensed under GPLv3 license *****************************************************************************************************************************/ @@ -60,7 +60,7 @@ IPAddress myDNS(8, 8, 8, 8); ////////////////////////////////////////////////////////// -// For W5500 & ESP32-S3 +// 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 @@ -74,6 +74,20 @@ IPAddress myDNS(8, 8, 8, 8); //#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 diff --git a/examples/MQTT_ThingStream/MQTT_ThingStream.ino b/examples/MQTT_ThingStream/MQTT_ThingStream.ino index 59aa784..4bcf5c2 100644 --- a/examples/MQTT_ThingStream/MQTT_ThingStream.ino +++ b/examples/MQTT_ThingStream/MQTT_ThingStream.ino @@ -1,12 +1,12 @@ /**************************************************************************************************************************** MQTT_ThingStream.ino - For W5500 LwIP Ethernet in ESP32 (ESP32 + W5500) + For W5500 LwIP Ethernet in ESP32_SC_W5500 (ESP32_S2/3, ESP32_C3 + W5500) - AsyncWebServer_ESP32_W5500 is a library for the LwIP Ethernet W5500 in ESP32 to run AsyncWebServer + AsyncWebServer_ESP32_SC_W5500 is a library for the LwIP Ethernet W5500 in ESP32_S2/3, ESP32_C3 to run AsyncWebServer Based on and modified from ESPAsyncWebServer (https://github.com/me-no-dev/ESPAsyncWebServer) - Built by Khoi Hoang https://github.com/khoih-prog/AsyncWebServer_ESP32_W5500 + Built by Khoi Hoang https://github.com/khoih-prog/AsyncWebServer_ESP32_SC_W5500 Licensed under GPLv3 license *****************************************************************************************************************************/ @@ -158,7 +158,7 @@ void setup() Serial.print(ARDUINO_BOARD); Serial.print(" with "); Serial.println(SHIELD_TYPE); - Serial.println(ASYNC_WEBSERVER_ESP32_W5500_VERSION); + Serial.println(ASYNC_WEBSERVER_ESP32_SC_W5500_VERSION); AWS_LOGWARN(F("Default SPI pinout:")); AWS_LOGWARN1(F("SPI_HOST:"), ETH_SPI_HOST); diff --git a/examples/MQTT_ThingStream/defines.h b/examples/MQTT_ThingStream/defines.h index 2a211c0..79a89b6 100644 --- a/examples/MQTT_ThingStream/defines.h +++ b/examples/MQTT_ThingStream/defines.h @@ -1,12 +1,12 @@ /**************************************************************************************************************************** defines.h - For RP2040W with CYW43439 WiFi + For W5500 LwIP Ethernet in ESP32_SC_W5500 (ESP32_S2/3, ESP32_C3 + W5500) - AsyncWebServer_RP2040W is a library for the RP2040W with CYW43439 WiFi + AsyncWebServer_ESP32_SC_W5500 is a library for the LwIP Ethernet W5500 in ESP32_S2/3, ESP32_C3 to run AsyncWebServer Based on and modified from ESPAsyncWebServer (https://github.com/me-no-dev/ESPAsyncWebServer) - Built by Khoi Hoang https://github.com/khoih-prog/AsyncWebServer_RP2040W + Built by Khoi Hoang https://github.com/khoih-prog/AsyncWebServer_ESP32_SC_W5500 Licensed under GPLv3 license *****************************************************************************************************************************/ @@ -59,6 +59,7 @@ IPAddress myDNS(8, 8, 8, 8); ////////////////////////////////////////////////////////// +// 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 @@ -67,13 +68,27 @@ IPAddress myDNS(8, 8, 8, 8); // Must connect INT to GPIOxx or not working //#define INT_GPIO 4 -//#define MISO_GPIO 19 -//#define MOSI_GPIO 23 -//#define SCK_GPIO 18 -//#define CS_GPIO 5 +//#define MISO_GPIO 13 +//#define MOSI_GPIO 11 +//#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 +#include #endif //defines_h diff --git a/library.json b/library.json index 2039fce..2bb290a 100644 --- a/library.json +++ b/library.json @@ -1,6 +1,6 @@ { "name":"AsyncWebServer_ESP32_SC_W5500", - "version": "1.8.0", + "version": "1.8.1", "description":"Asynchronous HTTP and WebSocket Server Library for (ESP32_S2/S3/C3 + LwIP W5500). 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", "keywords":"http, async, async-webserver, async-websocket, websocket, webserver, esp32, esp32-s2, esp32-s3, esp32-c3, w5500, lwip, lwip-w5500, lwip-ethernet", "authors": diff --git a/library.properties b/library.properties index 2018a17..587b825 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=AsyncWebServer_ESP32_SC_W5500 -version=1.8.0 +version=1.8.1 author=Hristo Gochkov,Khoi Hoang maintainer=Khoi Hoang license=GPLv3 diff --git a/src/AsyncEventSource.cpp b/src/AsyncEventSource.cpp index d59b31e..43fc38a 100644 --- a/src/AsyncEventSource.cpp +++ b/src/AsyncEventSource.cpp @@ -22,13 +22,14 @@ You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - Version: 1.8.0 + Version: 1.8.1 Version Modified By Date Comments ------- ----------- ---------- ----------- 1.6.3 K Hoang 15/12/2022 Initial porting for W5500 + ESP32_S3. Sync with AsyncWebServer_ESP32_W5500 v1.6.3 1.7.0 K Hoang 19/12/2022 Add support to ESP32_S2_W5500 (ESP32_S2 + LwIP W5500) 1.8.0 K Hoang 20/12/2022 Add support to ESP32_C3_W5500 (ESP32_C3 + LwIP W5500) + 1.8.1 K Hoang 23/12/2022 Remove unused variable to avoid compiler warning and error *****************************************************************************************************************************/ #include "Arduino.h" diff --git a/src/AsyncEventSource.h b/src/AsyncEventSource.h index 71ba130..f57c4cb 100644 --- a/src/AsyncEventSource.h +++ b/src/AsyncEventSource.h @@ -22,13 +22,14 @@ You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - Version: 1.8.0 + Version: 1.8.1 Version Modified By Date Comments ------- ----------- ---------- ----------- 1.6.3 K Hoang 15/12/2022 Initial porting for W5500 + ESP32_S3. Sync with AsyncWebServer_ESP32_W5500 v1.6.3 1.7.0 K Hoang 19/12/2022 Add support to ESP32_S2_W5500 (ESP32_S2 + LwIP W5500) 1.8.0 K Hoang 20/12/2022 Add support to ESP32_C3_W5500 (ESP32_C3 + LwIP W5500) + 1.8.1 K Hoang 23/12/2022 Remove unused variable to avoid compiler warning and error *****************************************************************************************************************************/ #ifndef ASYNCEVENTSOURCE_H_ diff --git a/src/AsyncJson.h b/src/AsyncJson.h index 387479e..3b1b274 100644 --- a/src/AsyncJson.h +++ b/src/AsyncJson.h @@ -22,13 +22,14 @@ You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - Version: 1.8.0 + Version: 1.8.1 Version Modified By Date Comments ------- ----------- ---------- ----------- 1.6.3 K Hoang 15/12/2022 Initial porting for W5500 + ESP32_S3. Sync with AsyncWebServer_ESP32_W5500 v1.6.3 1.7.0 K Hoang 19/12/2022 Add support to ESP32_S2_W5500 (ESP32_S2 + LwIP W5500) 1.8.0 K Hoang 20/12/2022 Add support to ESP32_C3_W5500 (ESP32_C3 + LwIP W5500) + 1.8.1 K Hoang 23/12/2022 Remove unused variable to avoid compiler warning and error *****************************************************************************************************************************/ /* Async Response to use with ArduinoJson and AsyncWebServer diff --git a/src/AsyncWebServer_ESP32_SC_W5500.cpp b/src/AsyncWebServer_ESP32_SC_W5500.cpp index 6a63523..aded16a 100644 --- a/src/AsyncWebServer_ESP32_SC_W5500.cpp +++ b/src/AsyncWebServer_ESP32_SC_W5500.cpp @@ -22,13 +22,14 @@ You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - Version: 1.8.0 + Version: 1.8.1 Version Modified By Date Comments ------- ----------- ---------- ----------- 1.6.3 K Hoang 15/12/2022 Initial porting for W5500 + ESP32_S3. Sync with AsyncWebServer_ESP32_W5500 v1.6.3 1.7.0 K Hoang 19/12/2022 Add support to ESP32_S2_W5500 (ESP32_S2 + LwIP W5500) 1.8.0 K Hoang 20/12/2022 Add support to ESP32_C3_W5500 (ESP32_C3 + LwIP W5500) + 1.8.1 K Hoang 23/12/2022 Remove unused variable to avoid compiler warning and error *****************************************************************************************************************************/ #include "AsyncWebServer_ESP32_SC_W5500.h" diff --git a/src/AsyncWebServer_ESP32_SC_W5500.h b/src/AsyncWebServer_ESP32_SC_W5500.h index 189dd4f..591bb30 100644 --- a/src/AsyncWebServer_ESP32_SC_W5500.h +++ b/src/AsyncWebServer_ESP32_SC_W5500.h @@ -22,13 +22,14 @@ You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - Version: 1.8.0 + Version: 1.8.1 Version Modified By Date Comments ------- ----------- ---------- ----------- 1.6.3 K Hoang 15/12/2022 Initial porting for W5500 + ESP32_S3. Sync with AsyncWebServer_ESP32_W5500 v1.6.3 1.7.0 K Hoang 19/12/2022 Add support to ESP32_S2_W5500 (ESP32_S2 + LwIP W5500) 1.8.0 K Hoang 20/12/2022 Add support to ESP32_C3_W5500 (ESP32_C3 + LwIP W5500) + 1.8.1 K Hoang 23/12/2022 Remove unused variable to avoid compiler warning and error *****************************************************************************************************************************/ #ifndef _AsyncWebServer_ESP32_SC_W5500_H_ @@ -98,21 +99,21 @@ #warning Using code for ESP32 core v2.0.0+ in AsyncWebServer_ESP32_SC_W5500.h #endif - #define ASYNC_WEBSERVER_ESP32_SC_W5500_VERSION "AsyncWebServer_ESP32_SC_W5500 v1.8.0 for core v2.0.0+" + #define ASYNC_WEBSERVER_ESP32_SC_W5500_VERSION "AsyncWebServer_ESP32_SC_W5500 v1.8.1 for core v2.0.0+" #else #if (_ASYNC_WEBSERVER_LOGLEVEL_ > 3 ) #warning Using code for ESP32 core v1.0.6- in AsyncWebServer_ESP32_SC_W5500.h #endif - #define ASYNC_WEBSERVER_ESP32_SC_W5500_VERSION "AsyncWebServer_ESP32_SC_W5500 v1.8.0 for core v1.0.6-" + #define ASYNC_WEBSERVER_ESP32_SC_W5500_VERSION "AsyncWebServer_ESP32_SC_W5500 v1.8.1 for core v1.0.6-" #endif #define ASYNC_WEBSERVER_ESP32_SC_W5500_VERSION_MAJOR 1 #define ASYNC_WEBSERVER_ESP32_SC_W5500_VERSION_MINOR 8 -#define ASYNC_WEBSERVER_ESP32_SC_W5500_VERSION_PATCH 0 +#define ASYNC_WEBSERVER_ESP32_SC_W5500_VERSION_PATCH 1 -#define ASYNC_WEBSERVER_ESP32_SC_W5500_VERSION_INT 1008000 +#define ASYNC_WEBSERVER_ESP32_SC_W5500_VERSION_INT 1008001 ///////////////////////////////////////////////// diff --git a/src/AsyncWebServer_ESP32_SC_W5500_Debug.h b/src/AsyncWebServer_ESP32_SC_W5500_Debug.h index 4d5975d..4f3ac07 100644 --- a/src/AsyncWebServer_ESP32_SC_W5500_Debug.h +++ b/src/AsyncWebServer_ESP32_SC_W5500_Debug.h @@ -22,13 +22,14 @@ You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - Version: 1.8.0 + Version: 1.8.1 Version Modified By Date Comments ------- ----------- ---------- ----------- 1.6.3 K Hoang 15/12/2022 Initial porting for W5500 + ESP32_S3. Sync with AsyncWebServer_ESP32_W5500 v1.6.3 1.7.0 K Hoang 19/12/2022 Add support to ESP32_S2_W5500 (ESP32_S2 + LwIP W5500) 1.8.0 K Hoang 20/12/2022 Add support to ESP32_C3_W5500 (ESP32_C3 + LwIP W5500) + 1.8.1 K Hoang 23/12/2022 Remove unused variable to avoid compiler warning and error *****************************************************************************************************************************/ #pragma once diff --git a/src/AsyncWebSocket.cpp b/src/AsyncWebSocket.cpp index 8f6ff33..a9d2b70 100644 --- a/src/AsyncWebSocket.cpp +++ b/src/AsyncWebSocket.cpp @@ -22,13 +22,14 @@ You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - Version: 1.8.0 + Version: 1.8.1 Version Modified By Date Comments ------- ----------- ---------- ----------- 1.6.3 K Hoang 15/12/2022 Initial porting for W5500 + ESP32_S3. Sync with AsyncWebServer_ESP32_W5500 v1.6.3 1.7.0 K Hoang 19/12/2022 Add support to ESP32_S2_W5500 (ESP32_S2 + LwIP W5500) 1.8.0 K Hoang 20/12/2022 Add support to ESP32_C3_W5500 (ESP32_C3 + LwIP W5500) + 1.8.1 K Hoang 23/12/2022 Remove unused variable to avoid compiler warning and error *****************************************************************************************************************************/ #include "Arduino.h" diff --git a/src/AsyncWebSocket.h b/src/AsyncWebSocket.h index e572a95..4da8414 100644 --- a/src/AsyncWebSocket.h +++ b/src/AsyncWebSocket.h @@ -22,13 +22,14 @@ You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - Version: 1.8.0 + Version: 1.8.1 Version Modified By Date Comments ------- ----------- ---------- ----------- 1.6.3 K Hoang 15/12/2022 Initial porting for W5500 + ESP32_S3. Sync with AsyncWebServer_ESP32_W5500 v1.6.3 1.7.0 K Hoang 19/12/2022 Add support to ESP32_S2_W5500 (ESP32_S2 + LwIP W5500) 1.8.0 K Hoang 20/12/2022 Add support to ESP32_C3_W5500 (ESP32_C3 + LwIP W5500) + 1.8.1 K Hoang 23/12/2022 Remove unused variable to avoid compiler warning and error *****************************************************************************************************************************/ #ifndef ASYNCWEBSOCKET_H_ diff --git a/src/AsyncWebSynchronization.h b/src/AsyncWebSynchronization.h index a2c996f..dbb6170 100644 --- a/src/AsyncWebSynchronization.h +++ b/src/AsyncWebSynchronization.h @@ -22,13 +22,14 @@ You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - Version: 1.8.0 + Version: 1.8.1 Version Modified By Date Comments ------- ----------- ---------- ----------- 1.6.3 K Hoang 15/12/2022 Initial porting for W5500 + ESP32_S3. Sync with AsyncWebServer_ESP32_W5500 v1.6.3 1.7.0 K Hoang 19/12/2022 Add support to ESP32_S2_W5500 (ESP32_S2 + LwIP W5500) 1.8.0 K Hoang 20/12/2022 Add support to ESP32_C3_W5500 (ESP32_C3 + LwIP W5500) + 1.8.1 K Hoang 23/12/2022 Remove unused variable to avoid compiler warning and error *****************************************************************************************************************************/ #ifndef ASYNCWEBSYNCHRONIZATION_H_ diff --git a/src/ESP32_W5500_SPIFFSEditor.cpp b/src/ESP32_W5500_SPIFFSEditor.cpp index 519ad40..66c3407 100644 --- a/src/ESP32_W5500_SPIFFSEditor.cpp +++ b/src/ESP32_W5500_SPIFFSEditor.cpp @@ -22,13 +22,14 @@ You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - Version: 1.8.0 + Version: 1.8.1 Version Modified By Date Comments ------- ----------- ---------- ----------- 1.6.3 K Hoang 15/12/2022 Initial porting for W5500 + ESP32_S3. Sync with AsyncWebServer_ESP32_W5500 v1.6.3 1.7.0 K Hoang 19/12/2022 Add support to ESP32_S2_W5500 (ESP32_S2 + LwIP W5500) 1.8.0 K Hoang 20/12/2022 Add support to ESP32_C3_W5500 (ESP32_C3 + LwIP W5500) + 1.8.1 K Hoang 23/12/2022 Remove unused variable to avoid compiler warning and error *****************************************************************************************************************************/ #include "ESP32_W5500_SPIFFSEditor.h" diff --git a/src/ESP32_W5500_SPIFFSEditor.h b/src/ESP32_W5500_SPIFFSEditor.h index fa7a5a2..1f473bb 100644 --- a/src/ESP32_W5500_SPIFFSEditor.h +++ b/src/ESP32_W5500_SPIFFSEditor.h @@ -22,13 +22,14 @@ You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - Version: 1.8.0 + Version: 1.8.1 Version Modified By Date Comments ------- ----------- ---------- ----------- 1.6.3 K Hoang 15/12/2022 Initial porting for W5500 + ESP32_S3. Sync with AsyncWebServer_ESP32_W5500 v1.6.3 1.7.0 K Hoang 19/12/2022 Add support to ESP32_S2_W5500 (ESP32_S2 + LwIP W5500) 1.8.0 K Hoang 20/12/2022 Add support to ESP32_C3_W5500 (ESP32_C3 + LwIP W5500) + 1.8.1 K Hoang 23/12/2022 Remove unused variable to avoid compiler warning and error *****************************************************************************************************************************/ #ifndef ESP32_W5500_SPIFFSEditor_H_ diff --git a/src/StringArray.h b/src/StringArray.h index d8eb2f8..8c8b796 100644 --- a/src/StringArray.h +++ b/src/StringArray.h @@ -22,13 +22,14 @@ You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - Version: 1.8.0 + Version: 1.8.1 Version Modified By Date Comments ------- ----------- ---------- ----------- 1.6.3 K Hoang 15/12/2022 Initial porting for W5500 + ESP32_S3. Sync with AsyncWebServer_ESP32_W5500 v1.6.3 1.7.0 K Hoang 19/12/2022 Add support to ESP32_S2_W5500 (ESP32_S2 + LwIP W5500) 1.8.0 K Hoang 20/12/2022 Add support to ESP32_C3_W5500 (ESP32_C3 + LwIP W5500) + 1.8.1 K Hoang 23/12/2022 Remove unused variable to avoid compiler warning and error *****************************************************************************************************************************/ #ifndef STRINGARRAY_H_ diff --git a/src/WebAuthentication.cpp b/src/WebAuthentication.cpp index 6b7b69c..4bd8d23 100644 --- a/src/WebAuthentication.cpp +++ b/src/WebAuthentication.cpp @@ -22,13 +22,14 @@ You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - Version: 1.8.0 + Version: 1.8.1 Version Modified By Date Comments ------- ----------- ---------- ----------- 1.6.3 K Hoang 15/12/2022 Initial porting for W5500 + ESP32_S3. Sync with AsyncWebServer_ESP32_W5500 v1.6.3 1.7.0 K Hoang 19/12/2022 Add support to ESP32_S2_W5500 (ESP32_S2 + LwIP W5500) 1.8.0 K Hoang 20/12/2022 Add support to ESP32_C3_W5500 (ESP32_C3 + LwIP W5500) + 1.8.1 K Hoang 23/12/2022 Remove unused variable to avoid compiler warning and error *****************************************************************************************************************************/ #include "WebAuthentication.h" diff --git a/src/WebAuthentication.h b/src/WebAuthentication.h index 9a6032f..bb9edab 100644 --- a/src/WebAuthentication.h +++ b/src/WebAuthentication.h @@ -22,13 +22,14 @@ You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - Version: 1.8.0 + Version: 1.8.1 Version Modified By Date Comments ------- ----------- ---------- ----------- 1.6.3 K Hoang 15/12/2022 Initial porting for W5500 + ESP32_S3. Sync with AsyncWebServer_ESP32_W5500 v1.6.3 1.7.0 K Hoang 19/12/2022 Add support to ESP32_S2_W5500 (ESP32_S2 + LwIP W5500) 1.8.0 K Hoang 20/12/2022 Add support to ESP32_C3_W5500 (ESP32_C3 + LwIP W5500) + 1.8.1 K Hoang 23/12/2022 Remove unused variable to avoid compiler warning and error *****************************************************************************************************************************/ #ifndef WEB_AUTHENTICATION_H_ diff --git a/src/WebHandlerImpl.h b/src/WebHandlerImpl.h index 995e7d3..a42702a 100644 --- a/src/WebHandlerImpl.h +++ b/src/WebHandlerImpl.h @@ -22,13 +22,14 @@ You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - Version: 1.8.0 + Version: 1.8.1 Version Modified By Date Comments ------- ----------- ---------- ----------- 1.6.3 K Hoang 15/12/2022 Initial porting for W5500 + ESP32_S3. Sync with AsyncWebServer_ESP32_W5500 v1.6.3 1.7.0 K Hoang 19/12/2022 Add support to ESP32_S2_W5500 (ESP32_S2 + LwIP W5500) 1.8.0 K Hoang 20/12/2022 Add support to ESP32_C3_W5500 (ESP32_C3 + LwIP W5500) + 1.8.1 K Hoang 23/12/2022 Remove unused variable to avoid compiler warning and error *****************************************************************************************************************************/ #ifndef ASYNCWEBSERVERHANDLERIMPL_H_ diff --git a/src/WebHandlers.cpp b/src/WebHandlers.cpp index 86996b1..f774c85 100644 --- a/src/WebHandlers.cpp +++ b/src/WebHandlers.cpp @@ -22,13 +22,14 @@ You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - Version: 1.8.0 + Version: 1.8.1 Version Modified By Date Comments ------- ----------- ---------- ----------- 1.6.3 K Hoang 15/12/2022 Initial porting for W5500 + ESP32_S3. Sync with AsyncWebServer_ESP32_W5500 v1.6.3 1.7.0 K Hoang 19/12/2022 Add support to ESP32_S2_W5500 (ESP32_S2 + LwIP W5500) 1.8.0 K Hoang 20/12/2022 Add support to ESP32_C3_W5500 (ESP32_C3 + LwIP W5500) + 1.8.1 K Hoang 23/12/2022 Remove unused variable to avoid compiler warning and error *****************************************************************************************************************************/ #include "AsyncWebServer_ESP32_SC_W5500.h" diff --git a/src/WebRequest.cpp b/src/WebRequest.cpp index 22013ad..3b7726d 100644 --- a/src/WebRequest.cpp +++ b/src/WebRequest.cpp @@ -22,13 +22,14 @@ You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - Version: 1.8.0 + Version: 1.8.1 Version Modified By Date Comments ------- ----------- ---------- ----------- 1.6.3 K Hoang 15/12/2022 Initial porting for W5500 + ESP32_S3. Sync with AsyncWebServer_ESP32_W5500 v1.6.3 1.7.0 K Hoang 19/12/2022 Add support to ESP32_S2_W5500 (ESP32_S2 + LwIP W5500) 1.8.0 K Hoang 20/12/2022 Add support to ESP32_C3_W5500 (ESP32_C3 + LwIP W5500) + 1.8.1 K Hoang 23/12/2022 Remove unused variable to avoid compiler warning and error *****************************************************************************************************************************/ //#include "ESPAsyncWebServer.h" diff --git a/src/WebResponseImpl.h b/src/WebResponseImpl.h index 09d1884..41ef43b 100644 --- a/src/WebResponseImpl.h +++ b/src/WebResponseImpl.h @@ -22,13 +22,14 @@ You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - Version: 1.8.0 + Version: 1.8.1 Version Modified By Date Comments ------- ----------- ---------- ----------- 1.6.3 K Hoang 15/12/2022 Initial porting for W5500 + ESP32_S3. Sync with AsyncWebServer_ESP32_W5500 v1.6.3 1.7.0 K Hoang 19/12/2022 Add support to ESP32_S2_W5500 (ESP32_S2 + LwIP W5500) 1.8.0 K Hoang 20/12/2022 Add support to ESP32_C3_W5500 (ESP32_C3 + LwIP W5500) + 1.8.1 K Hoang 23/12/2022 Remove unused variable to avoid compiler warning and error *****************************************************************************************************************************/ #ifndef ASYNCWEBSERVERRESPONSEIMPL_H_ diff --git a/src/WebResponses.cpp b/src/WebResponses.cpp index f7943af..20718dc 100644 --- a/src/WebResponses.cpp +++ b/src/WebResponses.cpp @@ -22,13 +22,14 @@ You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - Version: 1.8.0 + Version: 1.8.1 Version Modified By Date Comments ------- ----------- ---------- ----------- 1.6.3 K Hoang 15/12/2022 Initial porting for W5500 + ESP32_S3. Sync with AsyncWebServer_ESP32_W5500 v1.6.3 1.7.0 K Hoang 19/12/2022 Add support to ESP32_S2_W5500 (ESP32_S2 + LwIP W5500) 1.8.0 K Hoang 20/12/2022 Add support to ESP32_C3_W5500 (ESP32_C3 + LwIP W5500) + 1.8.1 K Hoang 23/12/2022 Remove unused variable to avoid compiler warning and error *****************************************************************************************************************************/ #include "AsyncWebServer_ESP32_SC_W5500.h" diff --git a/src/WebServer.cpp b/src/WebServer.cpp index bd57a2b..1403264 100644 --- a/src/WebServer.cpp +++ b/src/WebServer.cpp @@ -22,13 +22,14 @@ You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - Version: 1.8.0 + Version: 1.8.1 Version Modified By Date Comments ------- ----------- ---------- ----------- 1.6.3 K Hoang 15/12/2022 Initial porting for W5500 + ESP32_S3. Sync with AsyncWebServer_ESP32_W5500 v1.6.3 1.7.0 K Hoang 19/12/2022 Add support to ESP32_S2_W5500 (ESP32_S2 + LwIP W5500) 1.8.0 K Hoang 20/12/2022 Add support to ESP32_C3_W5500 (ESP32_C3 + LwIP W5500) + 1.8.1 K Hoang 23/12/2022 Remove unused variable to avoid compiler warning and error *****************************************************************************************************************************/ #include "AsyncWebServer_ESP32_SC_W5500.h" diff --git a/src/w5500/esp32_sc_w5500.cpp b/src/w5500/esp32_sc_w5500.cpp index c56e57b..f405479 100644 --- a/src/w5500/esp32_sc_w5500.cpp +++ b/src/w5500/esp32_sc_w5500.cpp @@ -9,13 +9,14 @@ Built by Khoi Hoang https://github.com/khoih-prog/AsyncWebServer_ESP32_SC_W5500 Licensed under GPLv3 license - Version: 1.8.0 + Version: 1.8.1 Version Modified By Date Comments ------- ----------- ---------- ----------- 1.6.3 K Hoang 15/12/2022 Initial porting for W5500 + ESP32_S3. Sync with AsyncWebServer_ESP32_W5500 v1.6.3 1.7.0 K Hoang 19/12/2022 Add support to ESP32_S2_W5500 (ESP32_S2 + LwIP W5500) 1.8.0 K Hoang 20/12/2022 Add support to ESP32_C3_W5500 (ESP32_C3 + LwIP W5500) + 1.8.1 K Hoang 23/12/2022 Remove unused variable to avoid compiler warning and error *****************************************************************************************************************************/ #define _ETHERNET_WEBSERVER_LOGLEVEL_ 1 diff --git a/src/w5500/esp32_sc_w5500.h b/src/w5500/esp32_sc_w5500.h index a9153e6..f136d15 100644 --- a/src/w5500/esp32_sc_w5500.h +++ b/src/w5500/esp32_sc_w5500.h @@ -9,13 +9,14 @@ Built by Khoi Hoang https://github.com/khoih-prog/AsyncWebServer_ESP32_SC_W5500 Licensed under GPLv3 license - Version: 1.8.0 + Version: 1.8.1 Version Modified By Date Comments ------- ----------- ---------- ----------- 1.6.3 K Hoang 15/12/2022 Initial porting for W5500 + ESP32_S3. Sync with AsyncWebServer_ESP32_W5500 v1.6.3 1.7.0 K Hoang 19/12/2022 Add support to ESP32_S2_W5500 (ESP32_S2 + LwIP W5500) 1.8.0 K Hoang 20/12/2022 Add support to ESP32_C3_W5500 (ESP32_C3 + LwIP W5500) + 1.8.1 K Hoang 23/12/2022 Remove unused variable to avoid compiler warning and error *****************************************************************************************************************************/ #ifndef _ESP32_W5500_H_ diff --git a/src/w5500/esp_eth/esp_eth_mac_w5500.c b/src/w5500/esp_eth/esp_eth_mac_w5500.c index 1884fe3..52d86eb 100644 --- a/src/w5500/esp_eth/esp_eth_mac_w5500.c +++ b/src/w5500/esp_eth/esp_eth_mac_w5500.c @@ -1,13 +1,22 @@ /**************************************************************************************************************************** esp_eth_mac_w5500.c - Version: 1.8.0 + For W5500 LwIP Ethernet in ESP32_SC_W5500 (ESP32_S2/3, ESP32_C3 + W5500) + + AsyncWebServer_ESP32_SC_W5500 is a library for the LwIP Ethernet W5500 in ESP32_S2/3, ESP32_C3 to run AsyncWebServer + + Based on and modified from ESPAsyncWebServer (https://github.com/me-no-dev/ESPAsyncWebServer) + Built by Khoi Hoang https://github.com/khoih-prog/AsyncWebServer_ESP32_SC_W5500 + Licensed under GPLv3 license + + Version: 1.8.1 Version Modified By Date Comments ------- ----------- ---------- ----------- 1.6.3 K Hoang 15/12/2022 Initial porting for W5500 + ESP32_S3. Sync with AsyncWebServer_ESP32_W5500 v1.6.3 1.7.0 K Hoang 19/12/2022 Add support to ESP32_S2_W5500 (ESP32_S2 + LwIP W5500) 1.8.0 K Hoang 20/12/2022 Add support to ESP32_C3_W5500 (ESP32_C3 + LwIP W5500) + 1.8.1 K Hoang 23/12/2022 Remove unused variable to avoid compiler warning and error *****************************************************************************************************************************/ // Copyright 2020 Espressif Systems (Shanghai) PTE LTD diff --git a/src/w5500/esp_eth/esp_eth_phy_w5500.c b/src/w5500/esp_eth/esp_eth_phy_w5500.c index eab633c..3c7c37e 100644 --- a/src/w5500/esp_eth/esp_eth_phy_w5500.c +++ b/src/w5500/esp_eth/esp_eth_phy_w5500.c @@ -1,13 +1,22 @@ /**************************************************************************************************************************** esp_eth_phy_w5500.c - Version: 1.8.0 + For W5500 LwIP Ethernet in ESP32_SC_W5500 (ESP32_S2/3, ESP32_C3 + W5500) + + AsyncWebServer_ESP32_SC_W5500 is a library for the LwIP Ethernet W5500 in ESP32_S2/3, ESP32_C3 to run AsyncWebServer + + Based on and modified from ESPAsyncWebServer (https://github.com/me-no-dev/ESPAsyncWebServer) + Built by Khoi Hoang https://github.com/khoih-prog/AsyncWebServer_ESP32_SC_W5500 + Licensed under GPLv3 license + + Version: 1.8.1 Version Modified By Date Comments ------- ----------- ---------- ----------- 1.6.3 K Hoang 15/12/2022 Initial porting for W5500 + ESP32_S3. Sync with AsyncWebServer_ESP32_W5500 v1.6.3 1.7.0 K Hoang 19/12/2022 Add support to ESP32_S2_W5500 (ESP32_S2 + LwIP W5500) 1.8.0 K Hoang 20/12/2022 Add support to ESP32_C3_W5500 (ESP32_C3 + LwIP W5500) + 1.8.1 K Hoang 23/12/2022 Remove unused variable to avoid compiler warning and error *****************************************************************************************************************************/ // Copyright 2020 Espressif Systems (Shanghai) PTE LTD // diff --git a/src/w5500/esp_eth/esp_eth_spi_w5500.c b/src/w5500/esp_eth/esp_eth_spi_w5500.c index 20c510f..01ec147 100644 --- a/src/w5500/esp_eth/esp_eth_spi_w5500.c +++ b/src/w5500/esp_eth/esp_eth_spi_w5500.c @@ -1,13 +1,22 @@ /**************************************************************************************************************************** esp_eth_spi_w5500.c - Version: 1.8.0 + For W5500 LwIP Ethernet in ESP32_SC_W5500 (ESP32_S2/3, ESP32_C3 + W5500) + + AsyncWebServer_ESP32_SC_W5500 is a library for the LwIP Ethernet W5500 in ESP32_S2/3, ESP32_C3 to run AsyncWebServer + + Based on and modified from ESPAsyncWebServer (https://github.com/me-no-dev/ESPAsyncWebServer) + Built by Khoi Hoang https://github.com/khoih-prog/AsyncWebServer_ESP32_SC_W5500 + Licensed under GPLv3 license + + Version: 1.8.1 Version Modified By Date Comments ------- ----------- ---------- ----------- 1.6.3 K Hoang 15/12/2022 Initial porting for W5500 + ESP32_S3. Sync with AsyncWebServer_ESP32_W5500 v1.6.3 1.7.0 K Hoang 19/12/2022 Add support to ESP32_S2_W5500 (ESP32_S2 + LwIP W5500) 1.8.0 K Hoang 20/12/2022 Add support to ESP32_C3_W5500 (ESP32_C3 + LwIP W5500) + 1.8.1 K Hoang 23/12/2022 Remove unused variable to avoid compiler warning and error *****************************************************************************************************************************/ #include @@ -36,8 +45,8 @@ esp_eth_mac_t* w5500_new_mac( spi_device_handle_t *spi_handle, int INT_GPIO ) eth_mac_config_t mac_config = ETH_MAC_DEFAULT_CONFIG(); - eth_phy_config_t phy_config = ETH_PHY_DEFAULT_CONFIG(); - phy_config.reset_gpio_num = -1; + //eth_phy_config_t phy_config = ETH_PHY_DEFAULT_CONFIG(); + //phy_config.reset_gpio_num = -1; mac_config.smi_mdc_gpio_num = -1; // w5500 doesn't have SMI interface mac_config.smi_mdio_gpio_num = -1; diff --git a/src/w5500/esp_eth/esp_eth_w5500.h b/src/w5500/esp_eth/esp_eth_w5500.h index 629ebde..2451c2c 100644 --- a/src/w5500/esp_eth/esp_eth_w5500.h +++ b/src/w5500/esp_eth/esp_eth_w5500.h @@ -1,13 +1,22 @@ /**************************************************************************************************************************** esp_eth_w5500.h - Version: 1.8.0 + For W5500 LwIP Ethernet in ESP32_SC_W5500 (ESP32_S2/3, ESP32_C3 + W5500) + + AsyncWebServer_ESP32_SC_W5500 is a library for the LwIP Ethernet W5500 in ESP32_S2/3, ESP32_C3 to run AsyncWebServer + + Based on and modified from ESPAsyncWebServer (https://github.com/me-no-dev/ESPAsyncWebServer) + Built by Khoi Hoang https://github.com/khoih-prog/AsyncWebServer_ESP32_SC_W5500 + Licensed under GPLv3 license + + Version: 1.8.1 Version Modified By Date Comments ------- ----------- ---------- ----------- 1.6.3 K Hoang 15/12/2022 Initial porting for W5500 + ESP32_S3. Sync with AsyncWebServer_ESP32_W5500 v1.6.3 1.7.0 K Hoang 19/12/2022 Add support to ESP32_S2_W5500 (ESP32_S2 + LwIP W5500) 1.8.0 K Hoang 20/12/2022 Add support to ESP32_C3_W5500 (ESP32_C3 + LwIP W5500) + 1.8.1 K Hoang 23/12/2022 Remove unused variable to avoid compiler warning and error *****************************************************************************************************************************/ // Copyright 2021 Espressif Systems (Shanghai) PTE LTD diff --git a/src/w5500/esp_eth/w5500.h b/src/w5500/esp_eth/w5500.h index ff624f3..0234a22 100644 --- a/src/w5500/esp_eth/w5500.h +++ b/src/w5500/esp_eth/w5500.h @@ -1,13 +1,22 @@ /**************************************************************************************************************************** w5500.h - Version: 1.8.0 + For W5500 LwIP Ethernet in ESP32_SC_W5500 (ESP32_S2/3, ESP32_C3 + W5500) + + AsyncWebServer_ESP32_SC_W5500 is a library for the LwIP Ethernet W5500 in ESP32_S2/3, ESP32_C3 to run AsyncWebServer + + Based on and modified from ESPAsyncWebServer (https://github.com/me-no-dev/ESPAsyncWebServer) + Built by Khoi Hoang https://github.com/khoih-prog/AsyncWebServer_ESP32_SC_W5500 + Licensed under GPLv3 license + + Version: 1.8.1 Version Modified By Date Comments ------- ----------- ---------- ----------- 1.6.3 K Hoang 15/12/2022 Initial porting for W5500 + ESP32_S3. Sync with AsyncWebServer_ESP32_W5500 v1.6.3 1.7.0 K Hoang 19/12/2022 Add support to ESP32_S2_W5500 (ESP32_S2 + LwIP W5500) 1.8.0 K Hoang 20/12/2022 Add support to ESP32_C3_W5500 (ESP32_C3 + LwIP W5500) + 1.8.1 K Hoang 23/12/2022 Remove unused variable to avoid compiler warning and error *****************************************************************************************************************************/ // Copyright 2020 Espressif Systems (Shanghai) PTE LTD