You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 29, 2023. It is now read-only.
### Releases v1.9.2
1. Slow SPI clock for old `W5100` shield or `SAMD Zero`
2. Use correct Debug Terminal `Serial` for so-called **SAMD21 Zero** boards from Arduino as well as Adafruit
3. Update `Packages' Patches`
*[16. AdvancedWebServer on RASPBERRY_PI_PICO with W5x00 using Ethernet_Generic Library on SPI1](#16-AdvancedWebServer-on-RASPBERRY_PI_PICO-with-W5x00-using-Ethernet_Generic-Library-on-SPI1)
165
166
*[17. AdvancedWebServer_RP2040_SPI1 on MBED RASPBERRY_PI_PICO with W5x00 using Ethernet_Generic Library on SPI1](#17-AdvancedWebServer_RP2040_SPI1-on-MBED-RASPBERRY_PI_PICO-with-W5x00-using-Ethernet_Generic-Library-on-SPI1)
166
167
*[18. AdvancedWebServer_Teensy4x_SPI1 on TEENSY 4.1 with W5x00 using Ethernet_Generic Library on SPI1](#18-AdvancedWebServer_Teensy4x_SPI1-on-TEENSY-41-with-W5x00-using-Ethernet_Generic-Library-on-SPI1)
168
+
*[19. MQTTClient_SSL on SAMD_ZERO with W5x00 using Ethernet_Generic Library](#19-MQTTClient_SSL-on-SAMD_ZERO-with-W5x00-using-Ethernet_Generic-Library)
167
169
*[Debug](#debug)
168
170
*[Troubleshooting](#troubleshooting)
169
171
*[Issues](#issues)
@@ -177,6 +179,38 @@
177
179
---
178
180
---
179
181
182
+
### Important Note from v1.9.2
183
+
184
+
To be safe for systems using old `W5100` shields, the **examples** are using `optional` conservative values for SPI clock speed of 14MHz and `SPI_MODE0`
185
+
186
+
For `SAMD21 M0`, such as `SAMD Zero`, SPI clock speed of 8MHz and `SPI_MODE0` are used.
187
+
188
+
189
+
```
190
+
// Default to use W5100. Must change to false for W5500, W5100S, for faster SPI clock
191
+
// Must use true for SAMD21, such as Zero, SAMD_FEATHER_M0_EXPRESS, etc.
192
+
#define USE_W5100 true
193
+
```
194
+
195
+
To use with shields different from `W5100`, such as `W5200, W5500, W5100S`, change to
196
+
197
+
```
198
+
// Default to use W5100. Must change to false for W5500, W5100S, for faster SPI clock
199
+
#define USE_W5100 false
200
+
```
201
+
202
+
For Arduino SAMD21 Zero, in order to print to Terminal, use `SERIAL_PORT_USBVIRTUAL` == `SerialUSB`
203
+
204
+
```
205
+
// Use this for ARDUINO_SAMD_ZERO, etc. if can't print to terminal with Serial.print
206
+
#if defined(SERIAL_PORT_USBVIRTUAL)
207
+
#define Serial SERIAL_PORT_USBVIRTUAL
208
+
#warning Using SAMD Zero SerialUSB
209
+
#endif
210
+
```
211
+
212
+
---
213
+
180
214
### Why do we need this [EthernetWebServer_SSL library](https://github.com/khoih-prog/EthernetWebServer_SSL)
181
215
182
216
#### Features
@@ -258,11 +292,11 @@ This [**EthernetWebServer_SSL** library](https://github.com/khoih-prog/EthernetW
258
292
9.[`ESP32 Core 2.0.4+`](https://github.com/espressif/arduino-esp32) for ESP32-based boards. [](https://github.com/espressif/arduino-esp32/releases/latest/)
259
293
10.[`ESP8266 Core 3.0.2+`](https://github.com/esp8266/Arduino) for ESP8266-based boards. [](https://github.com/esp8266/Arduino/releases/latest/). To use ESP8266 core 2.7.1+ for LittleFS.
260
294
11.[`ArduinoCore-mbed mbed_rp2040, mbed_nano, mbed_portenta core 3.1.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**. [](https://github.com/arduino/ArduinoCore-mbed/releases/latest)
261
-
12.[`Earle Philhower's arduino-pico core v2.4.1+`](https://github.com/earlephilhower/arduino-pico) for RP2040-based boards such as **RASPBERRY_PI_PICO, ADAFRUIT_FEATHER_RP2040 and GENERIC_RP2040**, etc. [](https://github.com/earlephilhower/arduino-pico/releases/latest)
295
+
12.[`Earle Philhower's arduino-pico core v2.5.2+`](https://github.com/earlephilhower/arduino-pico) for RP2040-based boards such as **RASPBERRY_PI_PICO, ADAFRUIT_FEATHER_RP2040 and GENERIC_RP2040**, etc. [](https://github.com/earlephilhower/arduino-pico/releases/latest)
262
296
13.[`ArduinoCore-fab-sam core v1.7.0+`](https://github.com/qbolsee/ArduinoCore-fab-sam) for SAMD21/SAMD51-based boards. [](https://github.com/qbolsee/ArduinoCore-fab-sam/releases/latest)
263
297
14.[`Functional-VLPP library v1.0.2+`](https://github.com/khoih-prog/functional-vlpp) to use server's lambda function. To install. check [](https://www.ardu-badge.com/Functional-Vlpp)
264
298
15. Depending on which Ethernet card you're using:
265
-
-[`Ethernet_Generic library v2.5.0+`](https://github.com/khoih-prog/Ethernet_Generic) for W5100, W5200 and W5500/WIZ550io/WIZ850io/USR-ES1 with Wiznet W5500 chip. [](https://github.com/khoih-prog/Ethernet_Generic/releases/latest)
299
+
-[`Ethernet_Generic library v2.5.2+`](https://github.com/khoih-prog/Ethernet_Generic) for W5100, W5200 and W5500/WIZ550io/WIZ850io/USR-ES1 with Wiznet W5500 chip. [](https://github.com/khoih-prog/Ethernet_Generic/releases/latest)
266
300
-[`EthernetENC library v2.0.3+`](https://github.com/jandrassy/EthernetENC) for ENC28J60. [](https://github.com/jandrassy/EthernetENC/releases/latest). **New and Better**
267
301
-[`UIPEthernet library v2.0.12+`](https://github.com/UIPEthernet/UIPEthernet) for ENC28J60. [](https://github.com/UIPEthernet/UIPEthernet/releases/latest)
268
302
-[`NativeEthernet Library version stable111+`](https://github.com/vjmuzik/NativeEthernet) for Teensy 4.1 built-in Ethernet.
@@ -553,11 +587,11 @@ This file must be copied into the directory:
553
587
554
588
#### 11. For SAMD21 and SAMD51 boards using ArduinoCore-fab-sam core
555
589
556
-
To avoid compile error relating to SAMD21/SAMD51, you have to copy the file [ArduinoCore-fab-sam core pgmspace.h](Packages_Patches/Fab_SAM_Arduino/hardware/samd/1.6.18-alpha2/boards.txt) into `ArduinoCore-fab-sam` samd directory (~/.arduino15/packages/Fab_SAM_Arduino/hardware/samd/1.6.18-alpha2/boards.txt).
590
+
To avoid compile error relating to SAMD21/SAMD51, you have to copy the file [ArduinoCore-fab-sam core pgmspace.h](Packages_Patches/Fab_SAM_Arduino/hardware/samd/1.7.0/boards.txt) into `ArduinoCore-fab-sam` samd directory (~/.arduino15/packages/Fab_SAM_Arduino/hardware/samd/1.7.0/boards.txt).
557
591
558
-
Supposing the `ArduinoCore-fab-sam` samd core version is 1.6.18-alpha2. This file must be copied into the directory:
592
+
Supposing the `ArduinoCore-fab-sam` samd core version is 1.7.0. This file must be copied into the directory:
@@ -2485,6 +2519,39 @@ HTTP EthernetWebServer is @ IP : 192.168.2.95
2485
2519
```
2486
2520
2487
2521
2522
+
---
2523
+
2524
+
#### 19. MQTTClient_SSL on SAMD_ZERO with W5x00 using Ethernet_Generic Library
2525
+
2526
+
The following are debug terminal output and screen shot when running example [MQTTClient_SSL](examples/MQTTClient_SSL) on **SAMD_ZERO** with W5100 using Ethernet_Generic Library on SPI
2527
+
2528
+
2529
+
```
2530
+
Start MQTTClient_SSL on SAMD_ZERO with W5x00 using Ethernet_Generic Library on SPI0/SPI
Attempting MQTTS connection to broker.emqx.io...connected
2550
+
Message Send : MQTT_Pub => Hello from MQTTClient_SSL on SAMD_ZERO
2551
+
Message arrived [MQTT_Pub] Hello from MQTTClient_SSL on SAMD_ZERO
2552
+
```
2553
+
2554
+
2488
2555
2489
2556
---
2490
2557
---
@@ -2561,6 +2628,9 @@ Submit issues to: [EthernetWebServer_SSL issues](https://github.com/khoih-prog/E
2561
2628
32. Add support to custom SPI for Mbed RP2040, Portenta-H7, etc. using W5x00 with [Ethernet_Generic library](https://github.com/khoih-prog/Ethernet_Generic)
2562
2629
33. Add examples [AdvancedWebServer_Teensy4x_SPI1](examples/AdvancedWebServer_Teensy4x_SPI1) and [AdvancedWebServer_RP2040_SPI1](examples/AdvancedWebServer_RP2040_SPI1) to demo new features
2563
2630
34. Auto-select SPI(s) `SS/CS` pins according to board package if available
2631
+
35. Slow SPI clock for old W5100 shield or SAMD Zero
2632
+
36. Use correct Debug Terminal `Serial` for so-called **SAMD21 Zero** boards from Arduino as well as Adafruit
"description": "Simple TLS/SSL Ethernet WebServer, HTTP Client and WebSocket Client library for for AVR, Portenta_H7, Teensy, SAM DUE, SAMD21, SAMD51, STM32F/L/H/G/WB/MP1, nRF52 and RASPBERRY_PI_PICO boards using Ethernet shields W5100, W5200, W5500, ENC28J60 or Teensy 4.1 NativeEthernet/QNEthernet. It now supports Ethernet TLS/SSL Client. The WebServer supports HTTP/HTTPS 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 (SAM DUE, Atmel SAM3X8E ARM Cortex-M3, SAMD21, SAMD51, ESP8266, ESP32, Adafruit nRF52, Teensy and RASPBERRY_PI_PICO boards) using Wiznet W5x00, ENC28J60 network shields or Teensy 4.1 built-in NativeEthernet/QNEthernet. Ethernet_Generic library is used as default for W5x00 with custom SPI",
0 commit comments