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

Commit

Permalink
v1.2.1 to change PIO lib_compat_mode
Browse files Browse the repository at this point in the history
### 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`
  • Loading branch information
khoih-prog authored Oct 6, 2021
1 parent 5922af6 commit fca3440
Show file tree
Hide file tree
Showing 25 changed files with 2,115 additions and 274 deletions.
10 changes: 5 additions & 5 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ If you don't find anything, please [open a new issue](https://github.com/khoih-p

Please ensure to specify the following:

* Arduino IDE version (e.g. 1.8.13) or Platform.io version
* Board Core Version (e.g. STM32F7 Nucleo-144 NUCLEO_F767ZI, STM32 core v1.9.0, etc.)
* Arduino IDE version (e.g. 1.8.16) or Platform.io version
* Board Core Version (e.g. STM32F7 Nucleo-144 NUCLEO_F767ZI, STM32 core v2.1.0, etc.)
* 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:
Expand All @@ -26,10 +26,10 @@ Please ensure to specify the following:
### Example

```
Arduino IDE version: 1.8.13
STM32F7 Nucleo-144 NUCLEO_F767ZI, STM32 core v1.9.0
Arduino IDE version: 1.8.16
STM32F7 Nucleo-144 NUCLEO_F767ZI, STM32 core v2.1.0
OS: Ubuntu 20.04 LTS
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
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
Context:
I encountered a crash while trying to use the Timer Interrupt.
Expand Down
230 changes: 28 additions & 202 deletions README.md

Large diffs are not rendered by default.

1,951 changes: 1,951 additions & 0 deletions changelog.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "EthernetWebServer_STM32",
"version": "1.2.0",
"version": "1.2.1",
"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",
"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",
"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=EthernetWebServer_STM32
version=1.2.0
version=1.2.1
author=Khoi Hoang
license=MIT
maintainer=Khoi Hoang <[email protected]>
Expand Down
8 changes: 5 additions & 3 deletions src/EthernetHttpClient_STM32.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@
Based on and modified from ESP8266 https://github.com/esp8266/Arduino/releases
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_STM32
Licensed under MIT license
Version: 1.2.0
Original author:
@file Esp8266WebServer.h
@author Ivan Grokhotkov
Version: 1.2.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -26,7 +27,8 @@
1.1.0 K Hoang 17/11/2020 Add basic HTTP and WebSockets Client by merging ArduinoHttpClient
1.1.1 K Hoang 26/12/2020 Suppress all possible compiler warnings. Add Version String
1.2.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
*****************************************************************************************************************************/
1.2.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
*************************************************************************************************************************************/

// Library to simplify HTTP fetching on Arduino
// (c) Copyright Arduino. 2016
Expand Down
8 changes: 5 additions & 3 deletions src/EthernetWebServer_STM32-impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@
Based on and modified from ESP8266 https://github.com/esp8266/Arduino/releases
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_STM32
Licensed under MIT license
Version: 1.2.0
Original author:
@file Esp8266WebServer.h
@author Ivan Grokhotkov
Version: 1.2.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -26,7 +27,8 @@
1.1.0 K Hoang 17/11/2020 Add basic HTTP and WebSockets Client by merging ArduinoHttpClient
1.1.1 K Hoang 26/12/2020 Suppress all possible compiler warnings. Add Version String
1.2.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
*****************************************************************************************************************************/
1.2.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
*************************************************************************************************************************************/

#pragma once

Expand Down
36 changes: 28 additions & 8 deletions src/EthernetWebServer_STM32.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@
Based on and modified from ESP8266 https://github.com/esp8266/Arduino/releases
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_STM32
Licensed under MIT license
Version: 1.2.0
Original author:
@file Esp8266WebServer.h
@author Ivan Grokhotkov
Version: 1.2.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -26,17 +27,36 @@
1.1.0 K Hoang 17/11/2020 Add basic HTTP and WebSockets Client by merging ArduinoHttpClient
1.1.1 K Hoang 26/12/2020 Suppress all possible compiler warnings. Add Version String
1.2.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
*****************************************************************************************************************************/
1.2.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
*************************************************************************************************************************************/

#pragma once

#if !( defined(STM32F0) || defined(STM32F1) || defined(STM32F2) || defined(STM32F3) ||defined(STM32F4) || defined(STM32F7) || \
defined(STM32L0) || defined(STM32L1) || defined(STM32L4) || defined(STM32H7) ||defined(STM32G0) || defined(STM32G4) || \
defined(STM32WB) || defined(STM32MP1) )
#error This code is designed to run on STM32F/L/H/G/WB/MP1 platform! Please check your Tools->Board setting.
#if ( USE_BUILTIN_ETHERNET && USING_LAN8720 )

#if !( defined(ARDUINO_BLACK_F407VE) || defined(ARDUINO_BLACK_F407VG) || defined(ARDUINO_BLACK_F407ZE) || defined(ARDUINO_BLACK_F407ZG) || \
defined(ARDUINO_BLUE_F407VE_Mini) || defined(ARDUINO_DIYMORE_F407VGT) || defined(ARDUINO_FK407M1) || defined(ARDUINO_VCCGND_F407ZG_MINI) || \
defined(ARDUINO_GENERIC_F407VETX) || defined(ARDUINO_GENERIC_F407VGTX) || defined(ARDUINO_GENERIC_F407ZETX) || defined(ARDUINO_GENERIC_F407ZGTX) || \
defined(ARDUINO_GENERIC_F417VETX) || defined(ARDUINO_GENERIC_F417VGTX) || defined(ARDUINO_GENERIC_F417ZETX) || defined(ARDUINO_GENERIC_F417ZGTX) || \
defined(ARDUINO_GENERIC_F427ZGTX) || defined(ARDUINO_GENERIC_F427ZITX) || defined(ARDUINO_GENERIC_F429ZETX) || defined(ARDUINO_GENERIC_F429ZGTX) || \
defined(ARDUINO_GENERIC_F429ZGYX) || defined(ARDUINO_GENERIC_F429ZITX) || defined(ARDUINO_GENERIC_F429ZIYX) || defined(ARDUINO_GENERIC_F437ZGTX) || \
defined(ARDUINO_GENERIC_F437ZITX) || defined(ARDUINO_GENERIC_F439ZGTX) || defined(ARDUINO_GENERIC_F439ZITX) || defined(ARDUINO_GENERIC_F439ZGYX) || \
defined(ARDUINO_GENERIC_F439ZIYX) || defined(ARDUINO_DISCO_F746NG) || defined(ARDUINO_NUCLEO_F746ZG) || defined(ARDUINO_NUCLEO_F756ZG) || \
defined(ARDUINO_NUCLEO_H743ZI) )
#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.
#endif

#elif ( USE_BUILTIN_ETHERNET )

#if !( defined(STM32F0) || defined(STM32F1) || defined(STM32F2) || defined(STM32F3) ||defined(STM32F4) || defined(STM32F7) || \
defined(STM32L0) || defined(STM32L1) || defined(STM32L4) || defined(STM32H7) ||defined(STM32G0) || defined(STM32G4) || \
defined(STM32WB) || defined(STM32MP1) || defined(STM32L5) )
#error This code is designed to run on STM32F/L/H/G/WB/MP1 platform! Please check your Tools->Board setting.
#endif

#endif

#define ETHERNET_WEBSERVER_STM32_VERSION "EthernetWebServer_STM32 v1.2.0"
#define ETHERNET_WEBSERVER_STM32_VERSION "EthernetWebServer_STM32 v1.2.1"

#define USE_NEW_WEBSERVER_VERSION true

Expand Down
9 changes: 6 additions & 3 deletions src/Ethernet_HTTPClient/Ethernet_HttpClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@
Based on and modified from ESP8266 https://github.com/esp8266/Arduino/releases
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_STM32
Licensed under MIT license
Version: 1.1.1
Original author:
@file Esp8266WebServer.h
@author Ivan Grokhotkov
Version: 1.2.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -25,7 +26,9 @@
1.0.6 K Hoang 24/09/2020 Add support to PROGMEM-related commands, such as sendContent_P() and send_P()
1.1.0 K Hoang 17/11/2020 Add basic HTTP and WebSockets Client by merging ArduinoHttpClient
1.1.1 K Hoang 26/12/2020 Suppress all possible compiler warnings. Add Version String
*****************************************************************************************************************************/
1.2.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
1.2.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
*************************************************************************************************************************************/

// Class to simplify HTTP fetching on Arduino
// (c) Copyright 2010-2011 MCQN Ltd
Expand Down
9 changes: 6 additions & 3 deletions src/Ethernet_HTTPClient/Ethernet_HttpClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@
Based on and modified from ESP8266 https://github.com/esp8266/Arduino/releases
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_STM32
Licensed under MIT license
Version: 1.1.1
Original author:
@file Esp8266WebServer.h
@author Ivan Grokhotkov
Version: 1.2.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -25,7 +26,9 @@
1.0.6 K Hoang 24/09/2020 Add support to PROGMEM-related commands, such as sendContent_P() and send_P()
1.1.0 K Hoang 17/11/2020 Add basic HTTP and WebSockets Client by merging ArduinoHttpClient
1.1.1 K Hoang 26/12/2020 Suppress all possible compiler warnings. Add Version String
*****************************************************************************************************************************/
1.2.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
1.2.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
*************************************************************************************************************************************/

// Class to simplify HTTP fetching on Arduino
// (c) Copyright MCQN Ltd. 2010-2012
Expand Down
9 changes: 6 additions & 3 deletions src/Ethernet_HTTPClient/Ethernet_URLEncoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@
Based on and modified from ESP8266 https://github.com/esp8266/Arduino/releases
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_STM32
Licensed under MIT license
Version: 1.1.1
Original author:
@file Esp8266WebServer.h
@author Ivan Grokhotkov
Version: 1.2.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -25,7 +26,9 @@
1.0.6 K Hoang 24/09/2020 Add support to PROGMEM-related commands, such as sendContent_P() and send_P()
1.1.0 K Hoang 17/11/2020 Add basic HTTP and WebSockets Client by merging ArduinoHttpClient
1.1.1 K Hoang 26/12/2020 Suppress all possible compiler warnings. Add Version String
*****************************************************************************************************************************/
1.2.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
1.2.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
*************************************************************************************************************************************/

// Library to simplify HTTP fetching on Arduino
// (c) Copyright Arduino. 2019
Expand Down
9 changes: 6 additions & 3 deletions src/Ethernet_HTTPClient/Ethernet_URLEncoder.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@
Based on and modified from ESP8266 https://github.com/esp8266/Arduino/releases
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_STM32
Licensed under MIT license
Version: 1.1.1
Original author:
@file Esp8266WebServer.h
@author Ivan Grokhotkov
Version: 1.2.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -25,7 +26,9 @@
1.0.6 K Hoang 24/09/2020 Add support to PROGMEM-related commands, such as sendContent_P() and send_P()
1.1.0 K Hoang 17/11/2020 Add basic HTTP and WebSockets Client by merging ArduinoHttpClient
1.1.1 K Hoang 26/12/2020 Suppress all possible compiler warnings. Add Version String
*****************************************************************************************************************************/
1.2.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
1.2.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
*************************************************************************************************************************************/

// Library to simplify HTTP fetching on Arduino
// (c) Copyright Arduino. 2019
Expand Down
9 changes: 6 additions & 3 deletions src/Ethernet_HTTPClient/Ethernet_WebSocketClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@
Based on and modified from ESP8266 https://github.com/esp8266/Arduino/releases
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_STM32
Licensed under MIT license
Version: 1.1.1
Original author:
@file Esp8266WebServer.h
@author Ivan Grokhotkov
Version: 1.2.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -25,7 +26,9 @@
1.0.6 K Hoang 24/09/2020 Add support to PROGMEM-related commands, such as sendContent_P() and send_P()
1.1.0 K Hoang 17/11/2020 Add basic HTTP and WebSockets Client by merging ArduinoHttpClient
1.1.1 K Hoang 26/12/2020 Suppress all possible compiler warnings. Add Version String
*****************************************************************************************************************************/
1.2.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
1.2.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
*************************************************************************************************************************************/

// (c) Copyright Arduino. 2016
// Released under Apache License, version 2.0
Expand Down
9 changes: 6 additions & 3 deletions src/Ethernet_HTTPClient/Ethernet_WebSocketClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@
Based on and modified from ESP8266 https://github.com/esp8266/Arduino/releases
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_STM32
Licensed under MIT license
Version: 1.1.1
Original author:
@file Esp8266WebServer.h
@author Ivan Grokhotkov
Version: 1.2.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -25,7 +26,9 @@
1.0.6 K Hoang 24/09/2020 Add support to PROGMEM-related commands, such as sendContent_P() and send_P()
1.1.0 K Hoang 17/11/2020 Add basic HTTP and WebSockets Client by merging ArduinoHttpClient
1.1.1 K Hoang 26/12/2020 Suppress all possible compiler warnings. Add Version String
*****************************************************************************************************************************/
1.2.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
1.2.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
*************************************************************************************************************************************/

// (c) Copyright Arduino. 2016
// Released under Apache License, version 2.0
Expand Down
8 changes: 5 additions & 3 deletions src/Parsing_STM32-impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@
Based on and modified from ESP8266 https://github.com/esp8266/Arduino/releases
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_STM32
Licensed under MIT license
Version: 1.2.0
Original author:
@file Esp8266WebServer.h
@author Ivan Grokhotkov
Version: 1.2.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -26,7 +27,8 @@
1.1.0 K Hoang 17/11/2020 Add basic HTTP and WebSockets Client by merging ArduinoHttpClient
1.1.1 K Hoang 26/12/2020 Suppress all possible compiler warnings. Add Version String
1.2.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
*****************************************************************************************************************************/
1.2.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
*************************************************************************************************************************************/

#pragma once

Expand Down
8 changes: 5 additions & 3 deletions src/detail/Debug_STM32.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@
Based on and modified from ESP8266 https://github.com/esp8266/Arduino/releases
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_STM32
Licensed under MIT license
Version: 1.2.0
Original author:
@file Esp8266WebServer.h
@author Ivan Grokhotkov
Version: 1.2.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -26,7 +27,8 @@
1.1.0 K Hoang 17/11/2020 Add basic HTTP and WebSockets Client by merging ArduinoHttpClient
1.1.1 K Hoang 26/12/2020 Suppress all possible compiler warnings. Add Version String
1.2.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
*****************************************************************************************************************************/
1.2.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
*************************************************************************************************************************************/

#pragma once

Expand Down
8 changes: 5 additions & 3 deletions src/detail/RequestHandler_STM32.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@
Based on and modified from ESP8266 https://github.com/esp8266/Arduino/releases
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_STM32
Licensed under MIT license
Version: 1.2.0
Original author:
@file Esp8266WebServer.h
@author Ivan Grokhotkov
Version: 1.2.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -26,7 +27,8 @@
1.1.0 K Hoang 17/11/2020 Add basic HTTP and WebSockets Client by merging ArduinoHttpClient
1.1.1 K Hoang 26/12/2020 Suppress all possible compiler warnings. Add Version String
1.2.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
*****************************************************************************************************************************/
1.2.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
*************************************************************************************************************************************/

#pragma once

Expand Down
Loading

0 comments on commit fca3440

Please sign in to comment.