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

Commit

Permalink
v1.2.1 removes unused variable
Browse files Browse the repository at this point in the history
#### Releases v1.2.1

1. Remove unused variable to avoid compiler warning and error
  • Loading branch information
khoih-prog authored Dec 23, 2022
1 parent 3655a63 commit 5fe2acf
Show file tree
Hide file tree
Showing 15 changed files with 45 additions and 29 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ This [**WebServer_ESP32_SC_W5500** library](https://github.com/khoih-prog/WebSer
## Prerequisites

1. [`Arduino IDE 1.8.19+` for Arduino](https://github.com/arduino/Arduino). [![GitHub release](https://img.shields.io/github/release/arduino/Arduino.svg)](https://github.com/arduino/Arduino/releases/latest)
2. [`ESP32 Core 2.0.5+`](https://github.com/espressif/arduino-esp32) for ESP32-based ESP32S2/S3/C3_DEV with W5500 boards. [![Latest release](https://img.shields.io/github/release/espressif/arduino-esp32.svg)](https://github.com/espressif/arduino-esp32/releases/latest/)
2. [`ESP32 Core 2.0.6+`](https://github.com/espressif/arduino-esp32) for ESP32-based ESP32S2/S3/C3_DEV with W5500 boards. [![Latest release](https://img.shields.io/github/release/espressif/arduino-esp32.svg)](https://github.com/espressif/arduino-esp32/releases/latest/)


---
Expand Down Expand Up @@ -566,7 +566,7 @@ The following are debug terminal output and screen shot when running example [Ad

```cpp
Start AdvancedWebServer on ESP32S3_DEV with ESP32_S3_W5500
WebServer_ESP32_SC_W5500 v1.0.1 for core v2.0.0+
WebServer_ESP32_SC_W5500 v1.2.1 for core v2.0.0+
[EWS] Default SPI pinout:
[EWS] SPI_HOST: 2
[EWS] MOSI: 11
Expand Down Expand Up @@ -594,7 +594,7 @@ The terminal output of **ESP32S3_DEV with W5500** running [MQTT_ThingStream exam
```cpp
Start MQTT_ThingStream on ESP32S3_DEV with ESP32_S3_W5500
WebServer_ESP32_SC_W5500 v1.0.1 for core v2.0.0+
WebServer_ESP32_SC_W5500 v1.2.1 for core v2.0.0+
[EWS] Default SPI pinout:
[EWS] SPI_HOST: 2
[EWS] MOSI: 11
Expand Down Expand Up @@ -627,7 +627,7 @@ The terminal output of **ESP32S3_DEV with W5500** running [MQTTClient_Auth examp

```cpp
Start MQTTClient_Auth on ESP32S3_DEV with ESP32_S3_W5500
WebServer_ESP32_SC_W5500 v1.0.1 for core v2.0.0+
WebServer_ESP32_SC_W5500 v1.2.1 for core v2.0.0+
[EWS] Default SPI pinout:
[EWS] SPI_HOST: 2
[EWS] MOSI: 11
Expand Down Expand Up @@ -657,7 +657,7 @@ The terminal output of **ESP32S3_DEV with W5500** running [MQTTClient_Basic exam
```cpp
Start MQTTClient_Basic on ESP32S3_DEV with ESP32_S3_W5500
WebServer_ESP32_SC_W5500 v1.0.1 for core v2.0.0+
WebServer_ESP32_SC_W5500 v1.2.1 for core v2.0.0+
[EWS] Default SPI pinout:
[EWS] SPI_HOST: 2
[EWS] MOSI: 11
Expand Down Expand Up @@ -687,7 +687,7 @@ The terminal output of **ESP32S3_DEV with W5500** running [WebClient example](ex

```cpp
Start WebClient on ESP32S3_DEV with ESP32_S3_W5500
WebServer_ESP32_SC_W5500 v1.0.1 for core v2.0.0+
WebServer_ESP32_SC_W5500 v1.2.1 for core v2.0.0+
[EWS] Default SPI pinout:
[EWS] SPI_HOST: 2
[EWS] MOSI: 11
Expand Down Expand Up @@ -773,7 +773,7 @@ The terminal output of **ESP32S3_DEV with W5500** running [UDPSendReceive exampl
```cpp
Start UDPSendReceive on ESP32S3_DEV with ESP32_S3_W5500
WebServer_ESP32_SC_W5500 v1.0.1 for core v2.0.0+
WebServer_ESP32_SC_W5500 v1.2.1 for core v2.0.0+
[EWS] Default SPI pinout:
[EWS] SPI_HOST: 2
[EWS] MOSI: 11
Expand Down Expand Up @@ -821,7 +821,7 @@ The following are debug terminal output and screen shot when running example [Ad

```cpp
Start AdvancedWebServer on ESP32S2_DEV with ESP32_S2_W5500
WebServer_ESP32_SC_W5500 v1.1.0 for core v2.0.0+
WebServer_ESP32_SC_W5500 v1.2.1 for core v2.0.0+
[EWS] Default SPI pinout:
[EWS] SPI_HOST: 2
[EWS] MOSI: 35
Expand Down Expand Up @@ -855,7 +855,7 @@ The following are debug terminal output and screen shot when running example [Ad
```cpp
Start AdvancedWebServer on ESP32C3_DEV with ESP32_C3_W5500
WebServer_ESP32_C3_W5500 v1.2.0 for core v2.0.0+
WebServer_ESP32_SC_W5500 v1.2.1 for core v2.0.0+
[EWS] Default SPI pinout:
[EWS] SPI_HOST: 1
[EWS] MOSI: 6
Expand Down Expand Up @@ -918,7 +918,7 @@ Submit issues to: [WebServer_ESP32_SC_W5500 issues](https://github.com/khoih-pro
3. Add example [multiFileProject](https://github.com/khoih-prog/WebServer_ESP32_SC_W5500/tree/main/examples/multiFileProject)
4. Add support to **ESP32S2-based boards** using `LwIP W5500 Ethernet`
5. Add support to **ESP32_C3-based boards** using `LwIP W5500 Ethernet`

6. Remove unused variable to avoid compiler warning and error

---
---
Expand Down
5 changes: 5 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@


* [Changelog](#changelog)
* [Releases v1.2.1](#releases-v121)
* [Releases v1.2.0](#releases-v120)
* [Releases v1.1.0](#releases-v110)
* [Releases v1.0.1](#releases-v101)
Expand All @@ -26,6 +27,10 @@

## Changelog

#### Releases v1.2.1

1. Remove unused variable to avoid compiler warning and error

#### Releases v1.2.0

1. Add support to ESP32_C3-based boards using `LwIP W5500 Ethernet`
Expand Down
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "WebServer_ESP32_SC_W5500",
"version": "1.2.0",
"version": "1.2.1",
"keywords": "WebServer, Ethernet, MQTT, MQTTS, HTTP, HTTPS, SSL, Arduino, ESP32, ESP32-S3, ESP32-S2, ESP32-C3, W5500, HTTP-Client, WebSocket-Client, MQTT-Client, server, client, websocket, LittleFS, SPIFFS, ThingStream",
"description": "Simple Ethernet WebServer, HTTP/HTTPS Client wrapper library for ESP32S2/S3/C3 boards using LwIP W5500 Ethernet library. The WebServer supports HTTP(S) GET and POST requests, provides argument parsing, handles one client at a time. It provides HTTP(S), MQTT(S) Client, supports WebServer serving from LittleFS/SPIFFS and is the base for many Async-related libraries.",
"authors":
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=WebServer_ESP32_SC_W5500
version=1.2.0
version=1.2.1
author=Khoi Hoang
license=GPLv3
maintainer=Khoi Hoang <[email protected]>
Expand Down
11 changes: 6 additions & 5 deletions src/WebServer_ESP32_SC_W5500.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@
Built by Khoi Hoang https://github.com/khoih-prog/WebServer_ESP32_SC_W5500
Licensed under GPLv3 license
Version: 1.2.0
Version: 1.2.1
Version Modified By Date Comments
------- ----------- ---------- -----------
1.0.0 K Hoang 13/12/2022 Initial coding for ESP32_S3_W5500 (ESP32_S3 + W5500)
1.0.1 K Hoang 14/12/2022 Using SPI_DMA_CH_AUTO instead of manually selected
1.1.0 K Hoang 19/12/2022 Add support to ESP32_S2_W5500 (ESP32_S2 + W5500)
1.2.0 K Hoang 20/12/2022 Add support to ESP32_C3_W5500 (ESP32_C3 + W5500)
1.2.1 K Hoang 22/12/2022 Remove unused variable to avoid compiler warning and error
*****************************************************************************************************************************/

#pragma once
Expand All @@ -33,22 +34,22 @@
#warning Using code for ESP32 core v2.0.0+ in WebServer_ESP32_SC_W5500.h
#endif

#define WEBSERVER_ESP32_SC_W5500_VERSION "WebServer_ESP32_SC_W5500 v1.2.0 for core v2.0.0+"
#define WEBSERVER_ESP32_SC_W5500_VERSION "WebServer_ESP32_SC_W5500 v1.2.1 for core v2.0.0+"
#else
#if (_ETHERNET_WEBSERVER_LOGLEVEL_ > 3)
#warning Using code for ESP32 core v1.0.6- in WebServer_ESP32_SC_W5500.h
#endif

#define WEBSERVER_ESP32_SC_W5500_VERSION "WebServer_ESP32_SC_W5500 v1.2.0 for core v1.0.6-"
#define WEBSERVER_ESP32_SC_W5500_VERSION "WebServer_ESP32_SC_W5500 v1.2.1 for core v1.0.6-"
#endif

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

#define WEBSERVER_ESP32_SC_W5500_VERSION_MAJOR 1
#define WEBSERVER_ESP32_SC_W5500_VERSION_MINOR 2
#define WEBSERVER_ESP32_SC_W5500_VERSION_PATCH 0
#define WEBSERVER_ESP32_SC_W5500_VERSION_PATCH 1

#define WEBSERVER_ESP32_SC_W5500_VERSION_INT 1002000
#define WEBSERVER_ESP32_SC_W5500_VERSION_INT 1002001

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

Expand Down
3 changes: 2 additions & 1 deletion src/WebServer_ESP32_SC_W5500.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@
Built by Khoi Hoang https://github.com/khoih-prog/WebServer_ESP32_SC_W5500
Licensed under GPLv3 license
Version: 1.2.0
Version: 1.2.1
Version Modified By Date Comments
------- ----------- ---------- -----------
1.0.0 K Hoang 13/12/2022 Initial coding for ESP32_S3_W5500 (ESP32_S3 + W5500)
1.0.1 K Hoang 14/12/2022 Using SPI_DMA_CH_AUTO instead of manually selected
1.1.0 K Hoang 19/12/2022 Add support to ESP32_S2_W5500 (ESP32_S2 + W5500)
1.2.0 K Hoang 20/12/2022 Add support to ESP32_C3_W5500 (ESP32_C3 + W5500)
1.2.1 K Hoang 22/12/2022 Remove unused variable to avoid compiler warning and error
*****************************************************************************************************************************/

#pragma once
Expand Down
3 changes: 2 additions & 1 deletion src/WebServer_ESP32_SC_W5500_Debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@
Built by Khoi Hoang https://github.com/khoih-prog/WebServer_ESP32_SC_W5500
Licensed under GPLv3 license
Version: 1.2.0
Version: 1.2.1
Version Modified By Date Comments
------- ----------- ---------- -----------
1.0.0 K Hoang 13/12/2022 Initial coding for ESP32_S3_W5500 (ESP32_S3 + W5500)
1.0.1 K Hoang 14/12/2022 Using SPI_DMA_CH_AUTO instead of manually selected
1.1.0 K Hoang 19/12/2022 Add support to ESP32_S2_W5500 (ESP32_S2 + W5500)
1.2.0 K Hoang 20/12/2022 Add support to ESP32_C3_W5500 (ESP32_C3 + W5500)
1.2.1 K Hoang 22/12/2022 Remove unused variable to avoid compiler warning and error
*****************************************************************************************************************************/

#pragma once
Expand Down
3 changes: 2 additions & 1 deletion src/WebServer_ESP32_SC_W5500_Impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@
Built by Khoi Hoang https://github.com/khoih-prog/WebServer_ESP32_SC_W5500
Licensed under GPLv3 license
Version: 1.2.0
Version: 1.2.1
Version Modified By Date Comments
------- ----------- ---------- -----------
1.0.0 K Hoang 13/12/2022 Initial coding for ESP32_S3_W5500 (ESP32_S3 + W5500)
1.0.1 K Hoang 14/12/2022 Using SPI_DMA_CH_AUTO instead of manually selected
1.1.0 K Hoang 19/12/2022 Add support to ESP32_S2_W5500 (ESP32_S2 + W5500)
1.2.0 K Hoang 20/12/2022 Add support to ESP32_C3_W5500 (ESP32_C3 + W5500)
1.2.1 K Hoang 22/12/2022 Remove unused variable to avoid compiler warning and error
*****************************************************************************************************************************/

#pragma once
Expand Down
3 changes: 2 additions & 1 deletion src/w5500/esp32_sc_w5500.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@
Built by Khoi Hoang https://github.com/khoih-prog/WebServer_ESP32_SC_W5500
Licensed under GPLv3 license
Version: 1.2.0
Version: 1.2.1
Version Modified By Date Comments
------- ----------- ---------- -----------
1.0.0 K Hoang 13/12/2022 Initial coding for ESP32_S3_W5500 (ESP32_S3 + W5500)
1.0.1 K Hoang 14/12/2022 Using SPI_DMA_CH_AUTO instead of manually selected
1.1.0 K Hoang 19/12/2022 Add support to ESP32_S2_W5500 (ESP32_S2 + W5500)
1.2.0 K Hoang 20/12/2022 Add support to ESP32_C3_W5500 (ESP32_C3 + W5500)
1.2.1 K Hoang 22/12/2022 Remove unused variable to avoid compiler warning and error
*****************************************************************************************************************************/

#define _ETHERNET_WEBSERVER_LOGLEVEL_ 1
Expand Down
3 changes: 2 additions & 1 deletion src/w5500/esp32_sc_w5500.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@
Built by Khoi Hoang https://github.com/khoih-prog/WebServer_ESP32_SC_W5500
Licensed under GPLv3 license
Version: 1.2.0
Version: 1.2.1
Version Modified By Date Comments
------- ----------- ---------- -----------
1.0.0 K Hoang 13/12/2022 Initial coding for ESP32_S3_W5500 (ESP32_S3 + W5500)
1.0.1 K Hoang 14/12/2022 Using SPI_DMA_CH_AUTO instead of manually selected
1.1.0 K Hoang 19/12/2022 Add support to ESP32_S2_W5500 (ESP32_S2 + W5500)
1.2.0 K Hoang 20/12/2022 Add support to ESP32_C3_W5500 (ESP32_C3 + W5500)
1.2.1 K Hoang 22/12/2022 Remove unused variable to avoid compiler warning and error
*****************************************************************************************************************************/

#ifndef _ESP32_W5500_H_
Expand Down
3 changes: 2 additions & 1 deletion src/w5500/esp_eth/esp_eth_mac_w5500.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@
Built by Khoi Hoang https://github.com/khoih-prog/WebServer_ESP32_SC_W5500
Licensed under GPLv3 license
Version: 1.2.0
Version: 1.2.1
Version Modified By Date Comments
------- ----------- ---------- -----------
1.0.0 K Hoang 13/12/2022 Initial coding for ESP32_S3_W5500 (ESP32_S3 + W5500)
1.0.1 K Hoang 14/12/2022 Using SPI_DMA_CH_AUTO instead of manually selected
1.1.0 K Hoang 19/12/2022 Add support to ESP32_S2_W5500 (ESP32_S2 + W5500)
1.2.0 K Hoang 20/12/2022 Add support to ESP32_C3_W5500 (ESP32_C3 + W5500)
1.2.1 K Hoang 22/12/2022 Remove unused variable to avoid compiler warning and error
*****************************************************************************************************************************/

// Copyright 2020 Espressif Systems (Shanghai) PTE LTD
Expand Down
3 changes: 2 additions & 1 deletion src/w5500/esp_eth/esp_eth_phy_w5500.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@
Built by Khoi Hoang https://github.com/khoih-prog/WebServer_ESP32_SC_W5500
Licensed under GPLv3 license
Version: 1.2.0
Version: 1.2.1
Version Modified By Date Comments
------- ----------- ---------- -----------
1.0.0 K Hoang 13/12/2022 Initial coding for ESP32_S3_W5500 (ESP32_S3 + W5500)
1.0.1 K Hoang 14/12/2022 Using SPI_DMA_CH_AUTO instead of manually selected
1.1.0 K Hoang 19/12/2022 Add support to ESP32_S2_W5500 (ESP32_S2 + W5500)
1.2.0 K Hoang 20/12/2022 Add support to ESP32_C3_W5500 (ESP32_C3 + W5500)
1.2.1 K Hoang 22/12/2022 Remove unused variable to avoid compiler warning and error
*****************************************************************************************************************************/
// Copyright 2020 Espressif Systems (Shanghai) PTE LTD
//
Expand Down
7 changes: 4 additions & 3 deletions src/w5500/esp_eth/esp_eth_spi_w5500.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@
Built by Khoi Hoang https://github.com/khoih-prog/WebServer_ESP32_SC_W5500
Licensed under GPLv3 license
Version: 1.2.0
Version: 1.2.1
Version Modified By Date Comments
------- ----------- ---------- -----------
1.0.0 K Hoang 13/12/2022 Initial coding for ESP32_S3_W5500 (ESP32_S3 + W5500)
1.0.1 K Hoang 14/12/2022 Using SPI_DMA_CH_AUTO instead of manually selected
1.1.0 K Hoang 19/12/2022 Add support to ESP32_S2_W5500 (ESP32_S2 + W5500)
1.2.0 K Hoang 20/12/2022 Add support to ESP32_C3_W5500 (ESP32_C3 + W5500)
1.2.1 K Hoang 22/12/2022 Remove unused variable to avoid compiler warning and error
*****************************************************************************************************************************/

#include <stdio.h>
Expand Down Expand Up @@ -45,8 +46,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;
Expand Down
3 changes: 2 additions & 1 deletion src/w5500/esp_eth/esp_eth_w5500.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@
Built by Khoi Hoang https://github.com/khoih-prog/WebServer_ESP32_SC_W5500
Licensed under GPLv3 license
Version: 1.2.0
Version: 1.2.1
Version Modified By Date Comments
------- ----------- ---------- -----------
1.0.0 K Hoang 13/12/2022 Initial coding for ESP32_S3_W5500 (ESP32_S3 + W5500)
1.0.1 K Hoang 14/12/2022 Using SPI_DMA_CH_AUTO instead of manually selected
1.1.0 K Hoang 19/12/2022 Add support to ESP32_S2_W5500 (ESP32_S2 + W5500)
1.2.0 K Hoang 20/12/2022 Add support to ESP32_C3_W5500 (ESP32_C3 + W5500)
1.2.1 K Hoang 22/12/2022 Remove unused variable to avoid compiler warning and error
*****************************************************************************************************************************/

// Copyright 2021 Espressif Systems (Shanghai) PTE LTD
Expand Down
3 changes: 2 additions & 1 deletion src/w5500/esp_eth/w5500.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@
Built by Khoi Hoang https://github.com/khoih-prog/WebServer_ESP32_SC_W5500
Licensed under GPLv3 license
Version: 1.2.0
Version: 1.2.1
Version Modified By Date Comments
------- ----------- ---------- -----------
1.0.0 K Hoang 13/12/2022 Initial coding for ESP32_S3_W5500 (ESP32_S3 + W5500)
1.0.1 K Hoang 14/12/2022 Using SPI_DMA_CH_AUTO instead of manually selected
1.1.0 K Hoang 19/12/2022 Add support to ESP32_S2_W5500 (ESP32_S2 + W5500)
1.2.0 K Hoang 20/12/2022 Add support to ESP32_C3_W5500 (ESP32_C3 + W5500)
1.2.1 K Hoang 22/12/2022 Remove unused variable to avoid compiler warning and error
*****************************************************************************************************************************/

// Copyright 2020 Espressif Systems (Shanghai) PTE LTD
Expand Down

0 comments on commit 5fe2acf

Please sign in to comment.