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

Commit

Permalink
v2.1.3 to update to arduino.tips
Browse files Browse the repository at this point in the history
### Releases v2.1.3

1. Change from `arduino.cc` to `arduino.tips` in examples
  • Loading branch information
khoih-prog authored Apr 27, 2022
1 parent 6149675 commit 35d6397
Show file tree
Hide file tree
Showing 30 changed files with 90 additions and 304 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Arduino IDE version: 1.8.19
RASPBERRY_PI_PICO board
ArduinoCore-mbed v3.0.1
OS: Ubuntu 20.04 LTS
Linux xy-Inspiron-3593 5.13.0-39-generic #44~20.04.1-Ubuntu SMP Thu Mar 24 16:43:35 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Linux xy-Inspiron-3593 5.13.0-40-generic #45~20.04.1-Ubuntu SMP Mon Apr 4 09:38:31 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Context:
I encountered a crash while trying to use the Timer Interrupt.
Expand Down
52 changes: 23 additions & 29 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -279,11 +279,11 @@ This [**EthernetWebServer** library](https://github.com/khoih-prog/EthernetWebSe
9. [`ESP32 Core 2.0.2+`](https://github.com/espressif/arduino-esp32) for ESP32-based boards. [![Latest release](https://img.shields.io/github/release/espressif/arduino-esp32.svg)](https://github.com/espressif/arduino-esp32/releases/latest/)
10. [`ESP8266 Core 3.0.2+`](https://github.com/esp8266/Arduino) for ESP8266-based boards. [![Latest release](https://img.shields.io/github/release/esp8266/Arduino.svg)](https://github.com/esp8266/Arduino/releases/latest/). To use ESP8266 core 2.7.1+ for LittleFS.
11. [`ArduinoCore-mbed mbed_rp2040, mbed_nano, mbed_portenta core 3.0.1+`](https://github.com/arduino/ArduinoCore-mbed) for Arduino (Use Arduino Board Manager) **Portenta_H7, RP2040-based boards, such as Nano_RP2040_Connect, RASPBERRY_PI_PICO**. [![GitHub release](https://img.shields.io/github/release/arduino/ArduinoCore-mbed.svg)](https://github.com/arduino/ArduinoCore-mbed/releases/latest)
12. [`Earle Philhower's arduino-pico core v1.13.1+`](https://github.com/earlephilhower/arduino-pico) for RP2040-based boards such as **RASPBERRY_PI_PICO, ADAFRUIT_FEATHER_RP2040 and GENERIC_RP2040**, etc. [![GitHub release](https://img.shields.io/github/release/earlephilhower/arduino-pico.svg)](https://github.com/earlephilhower/arduino-pico/releases/latest)
12. [`Earle Philhower's arduino-pico core v1.13.3+`](https://github.com/earlephilhower/arduino-pico) for RP2040-based boards such as **RASPBERRY_PI_PICO, ADAFRUIT_FEATHER_RP2040 and GENERIC_RP2040**, etc. [![GitHub release](https://img.shields.io/github/release/earlephilhower/arduino-pico.svg)](https://github.com/earlephilhower/arduino-pico/releases/latest)
13. [`Arduino megaAVR core 1.8.7+`](https://github.com/arduino/ArduinoCore-megaavr/releases) for Arduino megaAVR boards such as **Arduino UNO WiFi Rev2, AVR_NANO_EVERY, etc.**
14. [`Functional-Vlpp library v1.0.2+`](https://github.com/khoih-prog/functional-vlpp) to use server's lambda function. To install. check [![arduino-library-badge](https://www.ardu-badge.com/badge/Functional-Vlpp.svg?)](https://www.ardu-badge.com/Functional-Vlpp)
15. Depending on which Ethernet card you're using:
- [`Ethernet_Generic library v2.0.1+`](https://github.com/khoih-prog/Ethernet_Generic) for W5100, W5200 and W5500/WIZ550io/WIZ850io/USR-ES1 with Wiznet W5500 chip. [![GitHub release](https://img.shields.io/github/release/khoih-prog/Ethernet_Generic.svg)](https://github.com/khoih-prog/Ethernet_Generic/releases/latest)
- [`Ethernet_Generic library v2.1.0+`](https://github.com/khoih-prog/Ethernet_Generic) for W5100, W5200 and W5500/WIZ550io/WIZ850io/USR-ES1 with Wiznet W5500 chip. [![GitHub release](https://img.shields.io/github/release/khoih-prog/Ethernet_Generic.svg)](https://github.com/khoih-prog/Ethernet_Generic/releases/latest)
- [`EthernetENC library v2.0.2+`](https://github.com/jandrassy/EthernetENC) for ENC28J60. [![GitHub release](https://img.shields.io/github/release/jandrassy/EthernetENC.svg)](https://github.com/jandrassy/EthernetENC/releases/latest). **New and Better**
- [`UIPEthernet library v2.0.11+`](https://github.com/UIPEthernet/UIPEthernet) for ENC28J60. [![GitHub release](https://img.shields.io/github/release/UIPEthernet/UIPEthernet.svg)](https://github.com/UIPEthernet/UIPEthernet/releases/latest)
- [`NativeEthernet Library version stable111+`](https://github.com/vjmuzik/NativeEthernet) for Teensy 4.1 built-in Ethernet.
Expand Down Expand Up @@ -910,13 +910,7 @@ For example, EthernetLarge library

The default CS/SS pin is GPIO4(D2) for ESP8266, GPIO22 for ESP32, 10 for all other boards.

If the default pin is not corect, the easiest way is to change is to use

```cpp
#define USE_ETHERNET_WRAPPER true
```

then select the CS/SS pin (e.g. 22) to use as follows:
If the default pin is not correct, the easiest way is to select the CS/SS pin (e.g. 22) to use as follows:

```cpp
// To override the default CS/SS pin. Don't use unless you know exactly which pin to use
Expand Down Expand Up @@ -1262,7 +1256,7 @@ The following are debug terminal output and screen shot when running example [Ad

```
Starting AdvancedWebServer on NRF52840_FEATHER with ENC28J60 using EthernetENC Library
EthernetWebServer v2.1.2
EthernetWebServer v2.1.3
[EWS] =========================
[EWS] Default SPI pinout:
[EWS] MOSI: 25
Expand Down Expand Up @@ -1443,7 +1437,7 @@ The terminal output of **SAM DUE with W5x00 using Ethernet_Generic Library** run

```
Starting SimpleWebSocket on SAM DUE with W5x00 using Ethernet_Generic Library
EthernetWebServer v2.1.2
EthernetWebServer v2.1.3
[EWS] =========== USE_ETHERNET_GENERIC ===========
[EWS] Default SPI pinout:
[EWS] MOSI: 75
Expand Down Expand Up @@ -1534,7 +1528,7 @@ The terminal output of **NRF52840_FEATHER with W5x00 using Ethernet_Generic Libr

```
Starting DweetPost on NRF52840_FEATHER with W5x00 using Ethernet_Generic Library
EthernetWebServer v2.1.2
EthernetWebServer v2.1.3
[EWS] =========== USE_ETHERNET_GENERIC ===========
[EWS] Default SPI pinout:
[EWS] MOSI: 25
Expand Down Expand Up @@ -1568,7 +1562,7 @@ The terminal output of **ESP32 with W5x00 using Ethernet_Generic Library** runni
```
Starting ESP32_FS_EthernetWebServer on ESP32 using LittleFS
With W5x00 using Ethernet_Generic Library on SPI
EthernetWebServer v2.1.2
EthernetWebServer v2.1.3
[EWS] =========== USE_ETHERNET_GENERIC ===========
[EWS] Default SPI pinout:
[EWS] MOSI: 23
Expand Down Expand Up @@ -1616,7 +1610,7 @@ The terminal output of **ESP8266 with W5x00 using Ethernet_Generic Library** run
```
Starting FS_EthernetWebServer on ESP8266 using LittleFS
With W5x00 using Ethernet_Generic Library
EthernetWebServer v2.1.2
EthernetWebServer v2.1.3
[EWS] =========== USE_ETHERNET_GENERIC ===========
[EWS] Default SPI pinout:
[EWS] MOSI: 13
Expand Down Expand Up @@ -1669,7 +1663,7 @@ The terminal output of **ESP8266 with W5x00 using Ethernet_Generic Library** run
```
Starting serveStatic demoing 'serveStatic' function on ESP8266 using LittleFS
With W5x00 using Ethernet_Generic Library
EthernetWebServer v2.1.2
EthernetWebServer v2.1.3
[EWS] =========== USE_ETHERNET_GENERIC ===========
[EWS] Default SPI pinout:
[EWS] MOSI: 13
Expand Down Expand Up @@ -1709,7 +1703,7 @@ The following are debug terminal output and screen shot when running example [Si

```
SimpleWebServer_NativeEthernet on Teensy 4.1 with NativeEthernet
EthernetWebServer v2.1.2
EthernetWebServer v2.1.3
Debug Level = 3
Connected! IP address: 192.168.2.127
[EWS] <html><head><meta http-equiv='refresh' content='5'/><title>AdvancedWebServer Teensy 4.1 with NativeEthernet</title><style>body { background-color: #cccccc; font-family: Arial, Helvetica, Sans-Serif; Color: #000088; }</style></head><body><h2>Hi from EthernetWebServer!</h2><h3>on Teensy 4.1 with NativeEthernet</h3><p>Uptime: 0 d 00:00:05</p></body></html>
Expand Down Expand Up @@ -1765,7 +1759,7 @@ The following are debug terminal output and screen shot when running example [Ad

```
Starting AdvancedWebServer on MBED RASPBERRY_PI_PICO with W5x00 using Ethernet_Generic Library
EthernetWebServer v2.1.2
EthernetWebServer v2.1.3
[EWS] =========== USE_ETHERNET_GENERIC ===========
[EWS] Default SPI pinout:
[EWS] MOSI: 19
Expand Down Expand Up @@ -1797,7 +1791,7 @@ The following are debug terminal output when running example [MQTTClient_Auth](e

```
Start MQTTClient_Auth on MBED RASPBERRY_PI_PICO with W5x00 using Ethernet_Generic Library
EthernetWebServer v2.1.2
EthernetWebServer v2.1.3
[EWS] =========== USE_ETHERNET_GENERIC ===========
[EWS] Default SPI pinout:
[EWS] MOSI: 19
Expand Down Expand Up @@ -1832,7 +1826,7 @@ The following are debug terminal output and screen shot when running example [Ad

```
Starting AdvancedWebServer on RASPBERRY_PI_PICO with W5x00 using Ethernet_Generic Library
EthernetWebServer v2.1.2
EthernetWebServer v2.1.3
[EWS] =========== USE_ETHERNET_GENERIC ===========
[EWS] Default SPI pinout:
[EWS] MOSI: 19
Expand Down Expand Up @@ -1863,7 +1857,7 @@ The following are debug terminal output and screen shot when running example [Ud

```
Start UdpNTPClient on RASPBERRY_PI_PICO with W5x00 using Ethernet_Generic Library
EthernetWebServer v2.1.2
EthernetWebServer v2.1.3
[EWS] =========== USE_ETHERNET_GENERIC ===========
[EWS] Default SPI pinout:
[EWS] MOSI: 19
Expand Down Expand Up @@ -1905,7 +1899,7 @@ The following are debug terminal output and screen shot when running example [Ad

```
Starting AdvancedWebServer on TEENSY 4.1 using QNEthernet
EthernetWebServer v2.1.2
EthernetWebServer v2.1.3
[EWS] =========== USE_QN_ETHERNET ===========
Initialize Ethernet using static IP => IP Address = 192.168.2.222
HTTP EthernetWebServer is @ IP : 192.168.2.222
Expand All @@ -1927,7 +1921,7 @@ The following are debug terminal output and screen shot when running example [Ad

```
Starting AdvancedWebServer on TEENSY 4.1 using QNEthernet
EthernetWebServer v2.1.2
EthernetWebServer v2.1.3
[EWS] =========== USE_QN_ETHERNET ===========
Initialize Ethernet using static IP => IP Address = 192.168.2.222
HTTP EthernetWebServer is @ IP : 192.168.2.222
Expand All @@ -1945,7 +1939,7 @@ The following is the debug terminal output when running example [MQTTClient_Auth

```
Start MQTTClient_Auth on TEENSY 4.1 using QNEthernet
EthernetWebServer v2.1.2
EthernetWebServer v2.1.3
[EWS] =========== USE_QN_ETHERNET ===========
Initialize Ethernet using static IP => IP Address = 192.168.2.222
Attempting MQTT connection to broker.emqx.io...connected
Expand All @@ -1968,7 +1962,7 @@ The following are debug terminal output and screen shot when running example [Ad

```
Starting AdvancedWebServer on PORTENTA_H7_M7 with Ethernet using Portenta_Ethernet Library
EthernetWebServer v2.1.2
EthernetWebServer v2.1.3
[EWS] ======== USE_PORTENTA_H7_ETHERNET ========
Using mac index = 6
Connected! IP address: 192.168.2.222
Expand All @@ -1987,7 +1981,7 @@ The following is the debug terminal output when running example [MQTTClient_Auth

```
Starting SimpleWebSocket on PORTENTA_H7_M7 with Ethernet using Portenta_Ethernet Library
EthernetWebServer v2.1.2
EthernetWebServer v2.1.3
[EWS] ======== USE_PORTENTA_H7_ETHERNET ========
Using mac index = 4
Connected! IP address: 192.168.2.132
Expand Down Expand Up @@ -2035,7 +2029,7 @@ The following is the debug terminal output when running example [MQTTClient_Auth

```
Start MQTTClient_Auth on PORTENTA_H7_M7 with Ethernet using Portenta_Ethernet Library
EthernetWebServer v2.1.2
EthernetWebServer v2.1.3
[EWS] ======== USE_PORTENTA_H7_ETHERNET ========
Using mac index = 7
Connected! IP address: 192.168.2.132
Expand Down Expand Up @@ -2115,7 +2109,7 @@ The following are debug terminal output and screen shot when running example [Ad

```
Starting AdvancedWebServer_ESP32_SPI2 on ESP32_DEV with W5x00 using Ethernet_Generic Library on SPI2
EthernetWebServer v2.1.2
EthernetWebServer v2.1.3
=========================
Currently Used SPI pinout:
MOSI:13
Expand Down Expand Up @@ -2144,7 +2138,7 @@ The following are debug terminal output and screen shot when running example [Ad

```
Starting AdvancedWebServer on RASPBERRY_PI_PICO with W5x00 using Ethernet_Generic Library on SPI1
EthernetWebServer v2.1.2
EthernetWebServer v2.1.3
[EWS] =========== USE_ETHERNET_GENERIC ===========
[EWS] Default SPI pinout:
[EWS] MOSI: 15
Expand Down Expand Up @@ -2235,7 +2229,7 @@ Submit issues to: [EthernetWebServer issues](https://github.com/khoih-prog/Ether
26. Add support to SPI1 for RP2040 using [arduino-pico core](https://github.com/earlephilhower/arduino-pico)
27. Drop `EthernetWrapper`
28. Add example [multiFileProject](examples/multiFileProject) to demo how to avoid `multiple-definitions` linker error for multiple-file project

29. Change from `arduino.cc` to `arduino.tips` in examples

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


* [Changelog](#changelog)
* [Releases v2.1.3](#releases-v213)
* [Releases v2.1.2](#releases-v212)
* [Releases v2.1.1](#releases-v211)
* [Releases v2.1.0](#releases-v210)
Expand Down Expand Up @@ -52,6 +53,10 @@

## Changelog

### Releases v2.1.3

1. Change from `arduino.cc` to `arduino.tips` in examples

### Releases v2.1.2

1. Add support to SPI1 for RP2040 using [arduino-pico core](https://github.com/earlephilhower/arduino-pico)
Expand Down
4 changes: 2 additions & 2 deletions library.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "EthernetWebServer",
"version": "2.1.2",
"version": "2.1.3",
"keywords": "WebServer, Ethernet, Ethernet2, Ethernet3, EthernetLarge, EthernetENC, UIPEthernet, NativeEthernet, QNEthernet, Portenta-H7, Teensy, SAMD21, SAMD51, SAM DUE, nRF52, ESP32, ESP8266, rpi-pico, rp2040, W5x00, W5500, ENC28J60, HTTP-Client, WebSocket-Client, server, client, websocket, LittleFS, SPIFFS, Arduino, Mega, AVR",
"description": "Simple Ethernet WebServer, HTTP Client and WebSocket Client library for AVR, Portenta_H7, Teensy, SAM DUE, SAMD21, SAMD51, ESP, nRF52, ESP32, ESP8266 and RASPBERRY_PI_PICO boards using Ethernet shields W5100, W5200, W5500, ENC28J60 or Teensy 4.1 NativeEthernet/QNEthernet. The WebServer supports HTTP GET and POST requests, provides argument parsing, handles one client at a time. It now provides HTTP Client and WebSocket Client. It supports Arduino boards (Atmel AVR-s, SAM DUE, Atmel SAM3X8E ARM Cortex-M3, SAMD21, SAMD51, ESP8266, ESP32, Adafruit nRF52, Teensy boards, Realtek Ameba(RTL8195A,RTL8710)) using Wiznet W5x00 or ENC28J60 network shields. It now supports WebServer serving from LittleFS/SPIFFS for ESP8266/ESP32. Ethernet_Generic library is used as default for W5x00.",
"authors":
Expand Down Expand Up @@ -32,7 +32,7 @@
{
"owner": "khoih-prog",
"name": "Ethernet_Generic",
"version": "^2.0.1"
"version": "^2.1.0"
},
{
"owner": "ssilverman",
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
version=2.1.2
version=2.1.3
author=Khoi Hoang
license=MIT
maintainer=Khoi Hoang <khoih.prog@gmail.com>
Expand Down
11 changes: 7 additions & 4 deletions platformio/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -42,20 +42,23 @@ upload_speed = 921600

; Checks for the compatibility with frameworks and dev/platforms
lib_compat_mode = strict
lib_ldf_mode = chain+
;lib_ldf_mode = deep+


lib_deps =
; PlatformIO 4.x
; Functional-Vlpp@~1.0.2
; Ethernet_Generic>=2.0.1
; Ethernet_Generic@>=2.1.0
; EthernetENC@~2.0.2
; UIPEthernet@~2.0.9
; UIPEthernet@~2.0.11
; QNEthernet@>=0.14.0

; PlatformIO 5.x
khoih-prog/Functional-Vlpp@~1.0.2
khoih-prog/Ethernet_Generic@~2.0.1
khoih-prog/Ethernet_Generic@~2.1.0
jandrassy/EthernetENC@~2.0.2
UIPEthernet/UIPEthernet@~2.0.9
uipethernet/UIPEthernet@~2.0.11
ssilverman/QNEthernet@>=0.14.0

build_flags =
Expand Down
13 changes: 2 additions & 11 deletions src/EthernetHttpClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,19 @@
@file Esp8266WebServer.h
@author Ivan Grokhotkov
Version: 2.1.2
Version: 2.1.3
Version Modified By Date Comments
------- ----------- ---------- -----------
1.0.0 K Hoang 13/02/2020 Initial coding for Arduino Mega, Teensy, etc to support Ethernetx libraries
...
1.6.0 K Hoang 04/09/2021 Add support to QNEthernet Library for Teensy 4.1
1.7.0 K Hoang 09/09/2021 Add support to Portenta H7 Ethernet
1.7.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
1.8.0 K Hoang 19/12/2021 Reduce usage of Arduino String with std::string
1.8.1 K Hoang 24/12/2021 Fix bug
1.8.2 K Hoang 27/12/2021 Fix wrong http status header bug
1.8.3 K Hoang 28/12/2021 Fix authenticate issue caused by libb64
1.8.4 K Hoang 11/01/2022 Fix libb64 compile error for ESP8266
1.8.5 K Hoang 11/01/2022 Restore support to AVR Mega2560 and add megaAVR boards. Fix libb64 fallthrough compile warning
1.8.6 K Hoang 12/01/2022 Fix bug not supporting boards
2.0.0 K Hoang 16/01/2022 To coexist with ESP32 WebServer and ESP8266 ESP8266WebServer
2.0.1 K Hoang 02/03/2022 Fix decoding error bug
2.0.2 K Hoang 14/03/2022 Fix bug when using QNEthernet staticIP. Add staticIP option to NativeEthernet
2.1.0 K Hoang 03/04/2022 Use Ethernet_Generic library as default. Support SPI2 for ESP32
2.1.1 K Hoang 04/04/2022 Fix compiler error for Portenta_H7 using Portenta Ethernet
2.1.2 K Hoang 08/04/2022 Add support to SPI1 for RP2040 using arduino-pico core
2.1.3 K Hoang 27/04/2022 Change from `arduino.cc` to `arduino.tips` in examples
*************************************************************************************************************************************/

// Library to simplify HTTP fetching on Arduino
Expand Down
13 changes: 2 additions & 11 deletions src/EthernetWebServer-impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,19 @@
@file Esp8266WebServer.h
@author Ivan Grokhotkov
Version: 2.1.2
Version: 2.1.3
Version Modified By Date Comments
------- ----------- ---------- -----------
1.0.0 K Hoang 13/02/2020 Initial coding for Arduino Mega, Teensy, etc to support Ethernetx libraries
...
1.6.0 K Hoang 04/09/2021 Add support to QNEthernet Library for Teensy 4.1
1.7.0 K Hoang 09/09/2021 Add support to Portenta H7 Ethernet
1.7.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
1.8.0 K Hoang 19/12/2021 Reduce usage of Arduino String with std::string
1.8.1 K Hoang 24/12/2021 Fix bug
1.8.2 K Hoang 27/12/2021 Fix wrong http status header bug
1.8.3 K Hoang 28/12/2021 Fix authenticate issue caused by libb64
1.8.4 K Hoang 11/01/2022 Fix libb64 compile error for ESP8266
1.8.5 K Hoang 11/01/2022 Restore support to AVR Mega2560 and add megaAVR boards. Fix libb64 fallthrough compile warning
1.8.6 K Hoang 12/01/2022 Fix bug not supporting boards
2.0.0 K Hoang 16/01/2022 To coexist with ESP32 WebServer and ESP8266 ESP8266WebServer
2.0.1 K Hoang 02/03/2022 Fix decoding error bug
2.0.2 K Hoang 14/03/2022 Fix bug when using QNEthernet staticIP. Add staticIP option to NativeEthernet
2.1.0 K Hoang 03/04/2022 Use Ethernet_Generic library as default. Support SPI2 for ESP32
2.1.1 K Hoang 04/04/2022 Fix compiler error for Portenta_H7 using Portenta Ethernet
2.1.2 K Hoang 08/04/2022 Add support to SPI1 for RP2040 using arduino-pico core
2.1.3 K Hoang 27/04/2022 Change from `arduino.cc` to `arduino.tips` in examples
*************************************************************************************************************************************/

#pragma once
Expand Down
Loading

0 comments on commit 35d6397

Please sign in to comment.