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

Commit fca3440

Browse files
authored
v1.2.1 to change PIO lib_compat_mode
### Releases v1.2.1 1. Change option for **PIO** `lib_compat_mode` from default `soft` to `strict` to minimize compile error in cross-platform 2. Update `Packages' Patches`
1 parent 5922af6 commit fca3440

25 files changed

+2115
-274
lines changed

CONTRIBUTING.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ If you don't find anything, please [open a new issue](https://github.com/khoih-p
1414

1515
Please ensure to specify the following:
1616

17-
* Arduino IDE version (e.g. 1.8.13) or Platform.io version
18-
* Board Core Version (e.g. STM32F7 Nucleo-144 NUCLEO_F767ZI, STM32 core v1.9.0, etc.)
17+
* Arduino IDE version (e.g. 1.8.16) or Platform.io version
18+
* Board Core Version (e.g. STM32F7 Nucleo-144 NUCLEO_F767ZI, STM32 core v2.1.0, etc.)
1919
* Contextual information (e.g. what you were trying to achieve)
2020
* Simplest possible steps to reproduce
2121
* Anything that might be relevant in your opinion, such as:
@@ -26,10 +26,10 @@ Please ensure to specify the following:
2626
### Example
2727

2828
```
29-
Arduino IDE version: 1.8.13
30-
STM32F7 Nucleo-144 NUCLEO_F767ZI, STM32 core v1.9.0
29+
Arduino IDE version: 1.8.16
30+
STM32F7 Nucleo-144 NUCLEO_F767ZI, STM32 core v2.1.0
3131
OS: Ubuntu 20.04 LTS
32-
Linux xy-Inspiron-3593 5.4.0-70-generic #78-Ubuntu SMP Fri Mar 19 13:29:52 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
32+
Linux xy-Inspiron-3593 5.4.0-88-generic #99-Ubuntu SMP Thu Sep 23 17:29:00 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
3333
3434
Context:
3535
I encountered a crash while trying to use the Timer Interrupt.

README.md

Lines changed: 28 additions & 202 deletions
Large diffs are not rendered by default.

changelog.md

Lines changed: 1951 additions & 0 deletions
Large diffs are not rendered by default.

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "EthernetWebServer_STM32",
3-
"version": "1.2.0",
3+
"version": "1.2.1",
44
"keywords": "WebServer, built-in Ethernet, Arduino, STM32F, STM32L, STM32H, STM32G, STM32WB, STM32MP1, Ethernet shield, Nucleo-144, Nucleo-64, Nucleo-32, LAN8742A, LAN8720, ENC28J60, W5x00, W5500, W5100, Ethernet, Ethernet2, Ethernet3, EthernetLarge, EtnernetENC, UIPEthernet, HTTP-Client, WebSocket-Client, server, client, websocket",
55
"description": "Simple Ethernet WebServer, HTTP Client and WebSocket Client library for STM32F/L/H/G/WB/MP1 boards running built-in Ethernet LAN8742A, LAN8720 or Ethernet W5x00, ENC28J60 shields",
66
"authors":

library.properties

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

src/EthernetHttpClient_STM32.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@
77
Based on and modified from ESP8266 https://github.com/esp8266/Arduino/releases
88
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_STM32
99
Licensed under MIT license
10-
Version: 1.2.0
11-
10+
1211
Original author:
1312
@file Esp8266WebServer.h
1413
@author Ivan Grokhotkov
14+
15+
Version: 1.2.1
1516
1617
Version Modified By Date Comments
1718
------- ----------- ---------- -----------
@@ -26,7 +27,8 @@
2627
1.1.0 K Hoang 17/11/2020 Add basic HTTP and WebSockets Client by merging ArduinoHttpClient
2728
1.1.1 K Hoang 26/12/2020 Suppress all possible compiler warnings. Add Version String
2829
1.2.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
29-
*****************************************************************************************************************************/
30+
1.2.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
31+
*************************************************************************************************************************************/
3032

3133
// Library to simplify HTTP fetching on Arduino
3234
// (c) Copyright Arduino. 2016

src/EthernetWebServer_STM32-impl.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@
77
Based on and modified from ESP8266 https://github.com/esp8266/Arduino/releases
88
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_STM32
99
Licensed under MIT license
10-
Version: 1.2.0
11-
10+
1211
Original author:
1312
@file Esp8266WebServer.h
1413
@author Ivan Grokhotkov
14+
15+
Version: 1.2.1
1516
1617
Version Modified By Date Comments
1718
------- ----------- ---------- -----------
@@ -26,7 +27,8 @@
2627
1.1.0 K Hoang 17/11/2020 Add basic HTTP and WebSockets Client by merging ArduinoHttpClient
2728
1.1.1 K Hoang 26/12/2020 Suppress all possible compiler warnings. Add Version String
2829
1.2.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
29-
*****************************************************************************************************************************/
30+
1.2.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
31+
*************************************************************************************************************************************/
3032

3133
#pragma once
3234

src/EthernetWebServer_STM32.h

Lines changed: 28 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@
77
Based on and modified from ESP8266 https://github.com/esp8266/Arduino/releases
88
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_STM32
99
Licensed under MIT license
10-
Version: 1.2.0
11-
10+
1211
Original author:
1312
@file Esp8266WebServer.h
1413
@author Ivan Grokhotkov
14+
15+
Version: 1.2.1
1516
1617
Version Modified By Date Comments
1718
------- ----------- ---------- -----------
@@ -26,17 +27,36 @@
2627
1.1.0 K Hoang 17/11/2020 Add basic HTTP and WebSockets Client by merging ArduinoHttpClient
2728
1.1.1 K Hoang 26/12/2020 Suppress all possible compiler warnings. Add Version String
2829
1.2.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
29-
*****************************************************************************************************************************/
30+
1.2.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
31+
*************************************************************************************************************************************/
3032

3133
#pragma once
3234

33-
#if !( defined(STM32F0) || defined(STM32F1) || defined(STM32F2) || defined(STM32F3) ||defined(STM32F4) || defined(STM32F7) || \
34-
defined(STM32L0) || defined(STM32L1) || defined(STM32L4) || defined(STM32H7) ||defined(STM32G0) || defined(STM32G4) || \
35-
defined(STM32WB) || defined(STM32MP1) )
36-
#error This code is designed to run on STM32F/L/H/G/WB/MP1 platform! Please check your Tools->Board setting.
35+
#if ( USE_BUILTIN_ETHERNET && USING_LAN8720 )
36+
37+
#if !( defined(ARDUINO_BLACK_F407VE) || defined(ARDUINO_BLACK_F407VG) || defined(ARDUINO_BLACK_F407ZE) || defined(ARDUINO_BLACK_F407ZG) || \
38+
defined(ARDUINO_BLUE_F407VE_Mini) || defined(ARDUINO_DIYMORE_F407VGT) || defined(ARDUINO_FK407M1) || defined(ARDUINO_VCCGND_F407ZG_MINI) || \
39+
defined(ARDUINO_GENERIC_F407VETX) || defined(ARDUINO_GENERIC_F407VGTX) || defined(ARDUINO_GENERIC_F407ZETX) || defined(ARDUINO_GENERIC_F407ZGTX) || \
40+
defined(ARDUINO_GENERIC_F417VETX) || defined(ARDUINO_GENERIC_F417VGTX) || defined(ARDUINO_GENERIC_F417ZETX) || defined(ARDUINO_GENERIC_F417ZGTX) || \
41+
defined(ARDUINO_GENERIC_F427ZGTX) || defined(ARDUINO_GENERIC_F427ZITX) || defined(ARDUINO_GENERIC_F429ZETX) || defined(ARDUINO_GENERIC_F429ZGTX) || \
42+
defined(ARDUINO_GENERIC_F429ZGYX) || defined(ARDUINO_GENERIC_F429ZITX) || defined(ARDUINO_GENERIC_F429ZIYX) || defined(ARDUINO_GENERIC_F437ZGTX) || \
43+
defined(ARDUINO_GENERIC_F437ZITX) || defined(ARDUINO_GENERIC_F439ZGTX) || defined(ARDUINO_GENERIC_F439ZITX) || defined(ARDUINO_GENERIC_F439ZGYX) || \
44+
defined(ARDUINO_GENERIC_F439ZIYX) || defined(ARDUINO_DISCO_F746NG) || defined(ARDUINO_NUCLEO_F746ZG) || defined(ARDUINO_NUCLEO_F756ZG) || \
45+
defined(ARDUINO_NUCLEO_H743ZI) )
46+
#error This code is designed to run on some STM32F4X7XX, STM32F4X9XX NUCLEO-F429ZI, STM32F74X, STM32F756, STM32F76X and STM32F77X platforms! Please check your Tools->Board setting.
47+
#endif
48+
49+
#elif ( USE_BUILTIN_ETHERNET )
50+
51+
#if !( defined(STM32F0) || defined(STM32F1) || defined(STM32F2) || defined(STM32F3) ||defined(STM32F4) || defined(STM32F7) || \
52+
defined(STM32L0) || defined(STM32L1) || defined(STM32L4) || defined(STM32H7) ||defined(STM32G0) || defined(STM32G4) || \
53+
defined(STM32WB) || defined(STM32MP1) || defined(STM32L5) )
54+
#error This code is designed to run on STM32F/L/H/G/WB/MP1 platform! Please check your Tools->Board setting.
55+
#endif
56+
3757
#endif
3858

39-
#define ETHERNET_WEBSERVER_STM32_VERSION "EthernetWebServer_STM32 v1.2.0"
59+
#define ETHERNET_WEBSERVER_STM32_VERSION "EthernetWebServer_STM32 v1.2.1"
4060

4161
#define USE_NEW_WEBSERVER_VERSION true
4262

src/Ethernet_HTTPClient/Ethernet_HttpClient.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@
77
Based on and modified from ESP8266 https://github.com/esp8266/Arduino/releases
88
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_STM32
99
Licensed under MIT license
10-
Version: 1.1.1
11-
10+
1211
Original author:
1312
@file Esp8266WebServer.h
1413
@author Ivan Grokhotkov
14+
15+
Version: 1.2.1
1516
1617
Version Modified By Date Comments
1718
------- ----------- ---------- -----------
@@ -25,7 +26,9 @@
2526
1.0.6 K Hoang 24/09/2020 Add support to PROGMEM-related commands, such as sendContent_P() and send_P()
2627
1.1.0 K Hoang 17/11/2020 Add basic HTTP and WebSockets Client by merging ArduinoHttpClient
2728
1.1.1 K Hoang 26/12/2020 Suppress all possible compiler warnings. Add Version String
28-
*****************************************************************************************************************************/
29+
1.2.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
30+
1.2.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
31+
*************************************************************************************************************************************/
2932

3033
// Class to simplify HTTP fetching on Arduino
3134
// (c) Copyright 2010-2011 MCQN Ltd

src/Ethernet_HTTPClient/Ethernet_HttpClient.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@
77
Based on and modified from ESP8266 https://github.com/esp8266/Arduino/releases
88
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_STM32
99
Licensed under MIT license
10-
Version: 1.1.1
11-
10+
1211
Original author:
1312
@file Esp8266WebServer.h
1413
@author Ivan Grokhotkov
14+
15+
Version: 1.2.1
1516
1617
Version Modified By Date Comments
1718
------- ----------- ---------- -----------
@@ -25,7 +26,9 @@
2526
1.0.6 K Hoang 24/09/2020 Add support to PROGMEM-related commands, such as sendContent_P() and send_P()
2627
1.1.0 K Hoang 17/11/2020 Add basic HTTP and WebSockets Client by merging ArduinoHttpClient
2728
1.1.1 K Hoang 26/12/2020 Suppress all possible compiler warnings. Add Version String
28-
*****************************************************************************************************************************/
29+
1.2.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
30+
1.2.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
31+
*************************************************************************************************************************************/
2932

3033
// Class to simplify HTTP fetching on Arduino
3134
// (c) Copyright MCQN Ltd. 2010-2012

src/Ethernet_HTTPClient/Ethernet_URLEncoder.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@
77
Based on and modified from ESP8266 https://github.com/esp8266/Arduino/releases
88
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_STM32
99
Licensed under MIT license
10-
Version: 1.1.1
11-
10+
1211
Original author:
1312
@file Esp8266WebServer.h
1413
@author Ivan Grokhotkov
14+
15+
Version: 1.2.1
1516
1617
Version Modified By Date Comments
1718
------- ----------- ---------- -----------
@@ -25,7 +26,9 @@
2526
1.0.6 K Hoang 24/09/2020 Add support to PROGMEM-related commands, such as sendContent_P() and send_P()
2627
1.1.0 K Hoang 17/11/2020 Add basic HTTP and WebSockets Client by merging ArduinoHttpClient
2728
1.1.1 K Hoang 26/12/2020 Suppress all possible compiler warnings. Add Version String
28-
*****************************************************************************************************************************/
29+
1.2.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
30+
1.2.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
31+
*************************************************************************************************************************************/
2932

3033
// Library to simplify HTTP fetching on Arduino
3134
// (c) Copyright Arduino. 2019

src/Ethernet_HTTPClient/Ethernet_URLEncoder.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@
77
Based on and modified from ESP8266 https://github.com/esp8266/Arduino/releases
88
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_STM32
99
Licensed under MIT license
10-
Version: 1.1.1
11-
10+
1211
Original author:
1312
@file Esp8266WebServer.h
1413
@author Ivan Grokhotkov
14+
15+
Version: 1.2.1
1516
1617
Version Modified By Date Comments
1718
------- ----------- ---------- -----------
@@ -25,7 +26,9 @@
2526
1.0.6 K Hoang 24/09/2020 Add support to PROGMEM-related commands, such as sendContent_P() and send_P()
2627
1.1.0 K Hoang 17/11/2020 Add basic HTTP and WebSockets Client by merging ArduinoHttpClient
2728
1.1.1 K Hoang 26/12/2020 Suppress all possible compiler warnings. Add Version String
28-
*****************************************************************************************************************************/
29+
1.2.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
30+
1.2.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
31+
*************************************************************************************************************************************/
2932

3033
// Library to simplify HTTP fetching on Arduino
3134
// (c) Copyright Arduino. 2019

src/Ethernet_HTTPClient/Ethernet_WebSocketClient.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@
77
Based on and modified from ESP8266 https://github.com/esp8266/Arduino/releases
88
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_STM32
99
Licensed under MIT license
10-
Version: 1.1.1
11-
10+
1211
Original author:
1312
@file Esp8266WebServer.h
1413
@author Ivan Grokhotkov
14+
15+
Version: 1.2.1
1516
1617
Version Modified By Date Comments
1718
------- ----------- ---------- -----------
@@ -25,7 +26,9 @@
2526
1.0.6 K Hoang 24/09/2020 Add support to PROGMEM-related commands, such as sendContent_P() and send_P()
2627
1.1.0 K Hoang 17/11/2020 Add basic HTTP and WebSockets Client by merging ArduinoHttpClient
2728
1.1.1 K Hoang 26/12/2020 Suppress all possible compiler warnings. Add Version String
28-
*****************************************************************************************************************************/
29+
1.2.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
30+
1.2.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
31+
*************************************************************************************************************************************/
2932

3033
// (c) Copyright Arduino. 2016
3134
// Released under Apache License, version 2.0

src/Ethernet_HTTPClient/Ethernet_WebSocketClient.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@
77
Based on and modified from ESP8266 https://github.com/esp8266/Arduino/releases
88
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_STM32
99
Licensed under MIT license
10-
Version: 1.1.1
11-
10+
1211
Original author:
1312
@file Esp8266WebServer.h
1413
@author Ivan Grokhotkov
14+
15+
Version: 1.2.1
1516
1617
Version Modified By Date Comments
1718
------- ----------- ---------- -----------
@@ -25,7 +26,9 @@
2526
1.0.6 K Hoang 24/09/2020 Add support to PROGMEM-related commands, such as sendContent_P() and send_P()
2627
1.1.0 K Hoang 17/11/2020 Add basic HTTP and WebSockets Client by merging ArduinoHttpClient
2728
1.1.1 K Hoang 26/12/2020 Suppress all possible compiler warnings. Add Version String
28-
*****************************************************************************************************************************/
29+
1.2.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
30+
1.2.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
31+
*************************************************************************************************************************************/
2932

3033
// (c) Copyright Arduino. 2016
3134
// Released under Apache License, version 2.0

src/Parsing_STM32-impl.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@
77
Based on and modified from ESP8266 https://github.com/esp8266/Arduino/releases
88
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_STM32
99
Licensed under MIT license
10-
Version: 1.2.0
11-
10+
1211
Original author:
1312
@file Esp8266WebServer.h
1413
@author Ivan Grokhotkov
14+
15+
Version: 1.2.1
1516
1617
Version Modified By Date Comments
1718
------- ----------- ---------- -----------
@@ -26,7 +27,8 @@
2627
1.1.0 K Hoang 17/11/2020 Add basic HTTP and WebSockets Client by merging ArduinoHttpClient
2728
1.1.1 K Hoang 26/12/2020 Suppress all possible compiler warnings. Add Version String
2829
1.2.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
29-
*****************************************************************************************************************************/
30+
1.2.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
31+
*************************************************************************************************************************************/
3032

3133
#pragma once
3234

src/detail/Debug_STM32.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@
77
Based on and modified from ESP8266 https://github.com/esp8266/Arduino/releases
88
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_STM32
99
Licensed under MIT license
10-
Version: 1.2.0
11-
10+
1211
Original author:
1312
@file Esp8266WebServer.h
1413
@author Ivan Grokhotkov
14+
15+
Version: 1.2.1
1516
1617
Version Modified By Date Comments
1718
------- ----------- ---------- -----------
@@ -26,7 +27,8 @@
2627
1.1.0 K Hoang 17/11/2020 Add basic HTTP and WebSockets Client by merging ArduinoHttpClient
2728
1.1.1 K Hoang 26/12/2020 Suppress all possible compiler warnings. Add Version String
2829
1.2.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
29-
*****************************************************************************************************************************/
30+
1.2.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
31+
*************************************************************************************************************************************/
3032

3133
#pragma once
3234

src/detail/RequestHandler_STM32.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@
77
Based on and modified from ESP8266 https://github.com/esp8266/Arduino/releases
88
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_STM32
99
Licensed under MIT license
10-
Version: 1.2.0
11-
10+
1211
Original author:
1312
@file Esp8266WebServer.h
1413
@author Ivan Grokhotkov
14+
15+
Version: 1.2.1
1516
1617
Version Modified By Date Comments
1718
------- ----------- ---------- -----------
@@ -26,7 +27,8 @@
2627
1.1.0 K Hoang 17/11/2020 Add basic HTTP and WebSockets Client by merging ArduinoHttpClient
2728
1.1.1 K Hoang 26/12/2020 Suppress all possible compiler warnings. Add Version String
2829
1.2.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
29-
*****************************************************************************************************************************/
30+
1.2.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
31+
*************************************************************************************************************************************/
3032

3133
#pragma once
3234

0 commit comments

Comments
 (0)