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

Commit 6db044d

Browse files
authored
v1.5.2 to suppress compile error
#### Releases v1.5.2 1. Suppress compile error when using aggressive compile settings
1 parent 1e0a9ea commit 6db044d

16 files changed

+112
-32
lines changed

CONTRIBUTING.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,25 @@ If you don't find anything, please [open a new issue](https://github.com/khoih-p
1515
Please ensure to specify the following:
1616

1717
* Arduino IDE version (e.g. 1.8.19) or Platform.io version
18-
* Board Core Version (e.g. ESP32 core v2.0.5)
18+
* Board type (e.g. ESP32_DEV)
19+
* Board Core Version (e.g. ESP32 core v2.0.6)
1920
* Contextual information (e.g. what you were trying to achieve)
2021
* Simplest possible steps to reproduce
2122
* Anything that might be relevant in your opinion, such as:
2223
* Operating system (Windows, Ubuntu, etc.) and the output of `uname -a`
2324
* Network configuration
2425

2526

27+
Please be educated, civilized and constructive as you've always been. Disrespective posts against [GitHub Code of Conduct](https://docs.github.com/en/site-policy/github-terms/github-event-code-of-conduct) will be ignored and deleted.
28+
2629
### Example
2730

2831
```
2932
Arduino IDE version: 1.8.19
30-
WT32_ETH01 board
31-
ESP32 core v2.0.5
33+
ESP32_DEV board
34+
ESP32 core v2.0.6
3235
OS: Ubuntu 20.04 LTS
33-
Linux xy-Inspiron-3593 5.15.0-53-generic #59~20.04.1-Ubuntu SMP Thu Oct 20 15:10:22 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
36+
Linux xy-Inspiron-3593 5.15.0-57-generic #63~20.04.1-Ubuntu SMP Wed Nov 30 13:40:16 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
3437
3538
Context:
3639
I encountered a crash while using this library

README.md

Lines changed: 68 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<a href="https://www.buymeacoffee.com/khoihprog6" title="Donate to my libraries using BuyMeACoffee"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Donate to my libraries using BuyMeACoffee" style="height: 50px !important;width: 181px !important;" ></a>
1010
<a href="https://www.buymeacoffee.com/khoihprog6" title="Donate to my libraries using BuyMeACoffee"><img src="https://img.shields.io/badge/buy%20me%20a%20coffee-donate-orange.svg?logo=buy-me-a-coffee&logoColor=FFDD00" style="height: 20px !important;width: 200px !important;" ></a>
1111

12+
1213
---
1314
---
1415

@@ -103,14 +104,27 @@ This [**WebServer_ESP32_W5500** library](https://github.com/khoih-prog/WebServer
103104

104105
1. **ESP32_DEV with W5500 boards** using `LwIP W5500 Ethernet`
105106

107+
108+
109+
#### W5500
110+
111+
<p align="center">
112+
<img src="https://github.com/khoih-prog/WebServer_ESP32_W5500/raw/main/pics/W5500.png">
113+
</p>
114+
115+
<p align="center">
116+
<img src="https://github.com/khoih-prog/WebServer_ESP32_W5500/raw/main/pics/W5500_small.png">
117+
</p>
118+
119+
106120
---
107121
---
108122

109123

110124
## Prerequisites
111125

112126
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)
113-
2. [`ESP32 Core 2.0.5+`](https://github.com/espressif/arduino-esp32) for ESP32-based ESP32_DEV with W5500 boards. [![Latest release](https://img.shields.io/github/release/espressif/arduino-esp32.svg)](https://github.com/espressif/arduino-esp32/releases/latest/)
127+
2. [`ESP32 Core 2.0.6+`](https://github.com/espressif/arduino-esp32) for ESP32-based ESP32_DEV with W5500 boards. [![Latest release](https://img.shields.io/github/release/espressif/arduino-esp32.svg)](https://github.com/espressif/arduino-esp32/releases/latest/)
114128

115129

116130
---
@@ -223,7 +237,7 @@ Look in file [**adc_common.c**](https://github.com/espressif/esp-idf/blob/master
223237
#### Class Constructor
224238

225239
```cpp
226-
WebServer server(80);
240+
WebServer server(80);
227241
```
228242
229243
Creates the WebServer_ESP32_W5500 class object.
@@ -370,6 +384,51 @@ void collectHeaders(); // set the request headers to collect
370384
void serveStatic();
371385
size_t streamFile();
372386
```
387+
388+
389+
---
390+
---
391+
392+
### How to connect W5500 to ESP32
393+
394+
You can change the `INT` pin to another one. Default is `GPIO4`
395+
396+
```cpp
397+
// Must connect INT to GPIOxx or not working
398+
#define INT_GPIO 4
399+
```
400+
401+
---
402+
403+
#### W5500
404+
405+
<p align="center">
406+
<img src="https://github.com/khoih-prog/WebServer_ESP32_W5500/raw/main/pics/W5500.png">
407+
</p>
408+
409+
<p align="center">
410+
<img src="https://github.com/khoih-prog/WebServer_ESP32_W5500/raw/main/pics/W5500_small.png">
411+
</p>
412+
413+
---
414+
415+
416+
#### ESP32_DEV
417+
418+
419+
420+
|W5500|<--->|ESP32|
421+
|:-:|:-:|:-:|
422+
|MOSI|<--->|GPIO23|
423+
|MISO|<--->|GPIO19|
424+
|SCK|<--->|GPIO18|
425+
|SS/CS|<--->|GPIO5|
426+
|INT|<--->|GPIO4|
427+
|RST|<--->|RST|
428+
|GND|<--->|GND|
429+
|3.3V|<--->|3.3V|
430+
431+
373432
---
374433
---
375434

@@ -419,7 +478,7 @@ The following are debug terminal output and screen shot when running example [Ad
419478

420479
```cpp
421480
Start AdvancedWebServer on ESP32_DEV with ESP32_W5500
422-
WebServer_ESP32_W5500 v1.5.1 for core v2.0.0+
481+
WebServer_ESP32_W5500 v1.5.2 for core v2.0.0+
423482
[EWS] Default SPI pinout:
424483
[EWS] SPI_HOST: 2
425484
[EWS] MOSI: 23
@@ -447,7 +506,7 @@ The terminal output of **ESP32_DEV with W5500** running [MQTT_ThingStream exampl
447506
448507
```cpp
449508
Start MQTT_ThingStream on ESP32_DEV with ESP32_W5500
450-
WebServer_ESP32_W5500 v1.5.1 for core v2.0.0+
509+
WebServer_ESP32_W5500 v1.5.2 for core v2.0.0+
451510
[EWS] Default SPI pinout:
452511
[EWS] SPI_HOST: 2
453512
[EWS] MOSI: 23
@@ -480,7 +539,7 @@ The terminal output of **ESP32_DEV with W5500** running [MQTTClient_Auth example
480539

481540
```cpp
482541
Start MQTTClient_Auth on ESP32_DEV with ESP32_W5500
483-
WebServer_ESP32_W5500 v1.5.1 for core v2.0.0+
542+
WebServer_ESP32_W5500 v1.5.2 for core v2.0.0+
484543
[EWS] Default SPI pinout:
485544
[EWS] SPI_HOST: 2
486545
[EWS] MOSI: 23
@@ -510,7 +569,7 @@ The terminal output of **ESP32_DEV with W5500** running [MQTTClient_Basic exampl
510569
511570
```cpp
512571
Start MQTTClient_Basic on ESP32_DEV with ESP32_W5500
513-
WebServer_ESP32_W5500 v1.5.1 for core v2.0.0+
572+
WebServer_ESP32_W5500 v1.5.2 for core v2.0.0+
514573
[EWS] Default SPI pinout:
515574
[EWS] SPI_HOST: 2
516575
[EWS] MOSI: 23
@@ -541,7 +600,7 @@ The terminal output of **ESP32_DEV with W5500** running [WebClient example](exam
541600

542601
```cpp
543602
Start WebClient on ESP32_DEV with ESP32_W5500
544-
WebServer_ESP32_W5500 v1.5.1 for core v2.0.0+
603+
WebServer_ESP32_W5500 v1.5.2 for core v2.0.0+
545604
[EWS] Default SPI pinout:
546605
[EWS] SPI_HOST: 2
547606
[EWS] MOSI: 23
@@ -627,7 +686,7 @@ The terminal output of **ESP32_DEV with W5500** running [UDPSendReceive example]
627686
628687
```cpp
629688
Start UDPSendReceive on ESP32_DEV with ESP32_W5500
630-
WebServer_ESP32_W5500 v1.5.1 for core v2.0.0+
689+
WebServer_ESP32_W5500 v1.5.2 for core v2.0.0+
631690
[EWS] Default SPI pinout:
632691
[EWS] SPI_HOST: 2
633692
[EWS] MOSI: 23
@@ -713,6 +772,7 @@ Many thanks for everyone for bug reporting, new feature suggesting, testing and
713772
### Contributing
714773

715774
If you want to contribute to this project:
775+
716776
- Report bugs and errors
717777
- Ask for enhancements
718778
- Create issues and pull requests

changelog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,26 @@
88
<a href="https://www.buymeacoffee.com/khoihprog6" title="Donate to my libraries using BuyMeACoffee"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Donate to my libraries using BuyMeACoffee" style="height: 50px !important;width: 181px !important;" ></a>
99
<a href="https://www.buymeacoffee.com/khoihprog6" title="Donate to my libraries using BuyMeACoffee"><img src="https://img.shields.io/badge/buy%20me%20a%20coffee-donate-orange.svg?logo=buy-me-a-coffee&logoColor=FFDD00" style="height: 20px !important;width: 200px !important;" ></a>
1010

11+
1112
---
1213
---
1314

1415
## Table of Contents
1516

1617

1718
* [Changelog](#changelog)
19+
* [Releases v1.5.2](#releases-v152)
1820
* [Releases v1.5.1](#releases-v151)
1921

2022
---
2123
---
2224

2325
## Changelog
2426

27+
#### Releases v1.5.2
28+
29+
1. Suppress compile error when using aggressive compile settings
30+
2531
#### Releases v1.5.1
2632

2733
1. Initial coding to support ESP32 boards using `W5500 LwIP Ethernet`. Sync with [WebServer_WT32_ETH01 v1.5.1](https://github.com/khoih-prog/WebServer_WT32_ETH01)

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "WebServer_ESP32_W5500",
3-
"version": "1.5.1",
3+
"version": "1.5.2",
44
"keywords": "WebServer, Ethernet, MQTT, MQTTS, HTTP, HTTPS, SSL, Arduino, ESP32, W5500, HTTP-Client, WebSocket-Client, MQTT-Client, server, client, websocket, LittleFS, SPIFFS, ThingStream",
55
"description": "Simple Ethernet WebServer, HTTP/HTTPS Client wrapper library for ESP32 boards using W5500 with LwIP 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 and supports WebServer serving from LittleFS/SPIFFS",
66
"authors":

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=WebServer_ESP32_W5500
2-
version=1.5.1
2+
version=1.5.2
33
author=Khoi Hoang
44
license=GPLv3
55
maintainer=Khoi Hoang <khoih.prog@gmail.com>

src/WebServer_ESP32_W5500.h

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@
99
Built by Khoi Hoang https://github.com/khoih-prog/WebServer_ESP32_W5500
1010
Licensed under GPLv3 license
1111
12-
Version: 1.5.1
12+
Version: 1.5.2
1313
1414
Version Modified By Date Comments
1515
------- ----------- ---------- -----------
1616
1.5.1 K Hoang 29/11/2022 Initial coding for ESP32_W5500 (ESP32 + W5500). Sync with WebServer_WT32_ETH01 v1.5.1
17+
1.5.2 K Hoang 06/01/2023 Suppress compile error when using aggressive compile settings
1718
*****************************************************************************************************************************/
1819

1920
#pragma once
@@ -31,20 +32,20 @@
3132
#warning Using code for ESP32 core v2.0.0+ in WebServer_ESP32_W5500.h
3233
#endif
3334

34-
#define WEBSERVER_ESP32_W5500_VERSION "WebServer_ESP32_W5500 v1.5.1 for core v2.0.0+"
35+
#define WEBSERVER_ESP32_W5500_VERSION "WebServer_ESP32_W5500 v1.5.2 for core v2.0.0+"
3536
#else
3637
#if (_ETHERNET_WEBSERVER_LOGLEVEL_ > 3)
3738
#warning Using code for ESP32 core v1.0.6- in WebServer_ESP32_W5500.h
3839
#endif
3940

40-
#define WEBSERVER_ESP32_W5500_VERSION "WebServer_ESP32_W5500 v1.5.1 for core v1.0.6-"
41+
#define WEBSERVER_ESP32_W5500_VERSION "WebServer_ESP32_W5500 v1.5.2 for core v1.0.6-"
4142
#endif
4243

4344
#define WEBSERVER_ESP32_W5500_VERSION_MAJOR 1
4445
#define WEBSERVER_ESP32_W5500_VERSION_MINOR 5
45-
#define WEBSERVER_ESP32_W5500_VERSION_PATCH 1
46+
#define WEBSERVER_ESP32_W5500_VERSION_PATCH 2
4647

47-
#define WEBSERVER_ESP32_W5500_VERSION_INT 1005001
48+
#define WEBSERVER_ESP32_W5500_VERSION_INT 1005002
4849

4950
#if ESP32
5051

src/WebServer_ESP32_W5500.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@
99
Built by Khoi Hoang https://github.com/khoih-prog/WebServer_ESP32_W5500
1010
Licensed under GPLv3 license
1111
12-
Version: 1.5.1
12+
Version: 1.5.2
1313
1414
Version Modified By Date Comments
1515
------- ----------- ---------- -----------
1616
1.5.1 K Hoang 29/11/2022 Initial coding for ESP32_W5500 (ESP32 + W5500). Sync with WebServer_WT32_ETH01 v1.5.1
17+
1.5.2 K Hoang 06/01/2023 Suppress compile error when using aggressive compile settings
1718
*****************************************************************************************************************************/
1819

1920
#pragma once

src/WebServer_ESP32_W5500_Debug.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@
99
Built by Khoi Hoang https://github.com/khoih-prog/WebServer_ESP32_W5500
1010
Licensed under GPLv3 license
1111
12-
Version: 1.5.1
12+
Version: 1.5.2
1313
1414
Version Modified By Date Comments
1515
------- ----------- ---------- -----------
16-
1.5.1 K Hoang 28/11/2022 Initial coding for ESP32_W5500 (ESP32 + W5500). Sync with WebServer_WT32_ETH01 v1.5.1
16+
1.5.1 K Hoang 29/11/2022 Initial coding for ESP32_W5500 (ESP32 + W5500). Sync with WebServer_WT32_ETH01 v1.5.1
17+
1.5.2 K Hoang 06/01/2023 Suppress compile error when using aggressive compile settings
1718
*****************************************************************************************************************************/
1819

1920
#pragma once

src/WebServer_ESP32_W5500_Impl.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@
99
Built by Khoi Hoang https://github.com/khoih-prog/WebServer_ESP32_W5500
1010
Licensed under GPLv3 license
1111
12-
Version: 1.5.1
12+
Version: 1.5.2
1313
1414
Version Modified By Date Comments
1515
------- ----------- ---------- -----------
1616
1.5.1 K Hoang 29/11/2022 Initial coding for ESP32_W5500 (ESP32 + W5500). Sync with WebServer_WT32_ETH01 v1.5.1
17+
1.5.2 K Hoang 06/01/2023 Suppress compile error when using aggressive compile settings
1718
*****************************************************************************************************************************/
1819

1920
#pragma once

src/w5500/esp32_w5500.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@
99
Built by Khoi Hoang https://github.com/khoih-prog/WebServer_ESP32_W5500
1010
Licensed under GPLv3 license
1111
12-
Version: 1.5.1
12+
Version: 1.5.2
1313
1414
Version Modified By Date Comments
1515
------- ----------- ---------- -----------
1616
1.5.1 K Hoang 29/11/2022 Initial coding for ESP32_W5500 (ESP32 + W5500). Sync with WebServer_WT32_ETH01 v1.5.1
17+
1.5.2 K Hoang 06/01/2023 Suppress compile error when using aggressive compile settings
1718
*****************************************************************************************************************************/
1819

1920
#include "WebServer_ESP32_W5500_Debug.h"

0 commit comments

Comments
 (0)