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

Commit

Permalink
v1.8.0
Browse files Browse the repository at this point in the history
### New in v1.8.0

1. Sync with [Arduino WiFiNINA Library v1.8.0](https://github.com/arduino-libraries/WiFiNINA/releases/tag/1.8.0). Using the latest WiFiNINA FW v1.4.2 in [WiFi101-FirmwareUpdater-Plugin v0.10.13](https://github.com/arduino/WiFi101-FirmwareUpdater-Plugin/releases/tag/v0.10.13)
2. Limit the maximum length of the download URL for the OTA binary since the receive buffer on the nina firmware can't hold more than 128 bytes.
3. Introduce **WiFiBearSSLClient (offloaded to Nina)**
  • Loading branch information
khoih-prog authored Nov 20, 2020
1 parent ad1bdc2 commit f9639b5
Show file tree
Hide file tree
Showing 75 changed files with 427 additions and 971 deletions.
21 changes: 18 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ With this library you can instantiate Servers, Clients and send/receive UDP pack

---

### New in v1.8.0

1. Sync with [Arduino WiFiNINA Library v1.8.0](https://github.com/arduino-libraries/WiFiNINA/releases/tag/1.8.0). Using the latest WiFiNINA FW v1.4.2 in [WiFi101-FirmwareUpdater-Plugin v0.10.13](https://github.com/arduino/WiFi101-FirmwareUpdater-Plugin/releases/tag/v0.10.13)
2. Limit the maximum length of the download URL for the OTA binary since the receive buffer on the nina firmware can't hold more than 128 bytes.
3. Introduce **WiFiBearSSLClient (offloaded to Nina)**

### New in v1.7.2

1. Add support to **Adafruit Airlift M4 boards: METRO_M4_AIRLIFT_LITE, PYBADGE_AIRLIFT_M4.** Thanks to [Gerard Moorcroft](https://github.com/gmstuff) to report issue [**WiFi Hangs when attempting to start WiFi (Adafruit M4 Express Airlift Lite board)**](https://github.com/khoih-prog/MySQL_MariaDB_Generic/issues/2) leading to this new version.
Expand Down Expand Up @@ -72,7 +78,7 @@ Again with credits of [Miguel Alexandre Wisintainer](https://github.com/tcpipchi
---
---

## Prerequisite
## Prerequisites

1. [`Arduino IDE 1.8.13+`](https://www.arduino.cc/en/Main/Software)
2. [`Arduino AVR core 1.8.3+`](https://github.com/arduino/ArduinoCore-avr) for Arduino AVR boards. Use Arduino Board Manager to install.
Expand Down Expand Up @@ -419,7 +425,10 @@ void setup()
if (fv < WIFI_FIRMWARE_LATEST_VERSION)
{
Serial.println("Please upgrade the firmware");
Serial.print("Your current firmware NINA FW v");
Serial.println(fv);
Serial.print("Please upgrade the firmware to NINA FW v");
Serial.println(WIFI_FIRMWARE_LATEST_VERSION);
}
// attempt to connect to Wifi network:
Expand Down Expand Up @@ -823,7 +832,7 @@ The following are screen shot and debug terminal output when running example [Ad

```
Starting AdvancedServer on SAMD_NANO_33_IOT
Version 1.7.2
Version 1.8.0
[NN] ===============================
[NN]
Used/default SPI pinout:
Expand Down Expand Up @@ -995,6 +1004,12 @@ Sometimes, the library will only work if you update the `WiFiNINA module/shield`

## Releases

### New in v1.8.0

1. Sync with [Arduino WiFiNINA Library v1.8.0](https://github.com/arduino-libraries/WiFiNINA/releases/tag/1.8.0). Using the latest WiFiNINA FW v1.4.2 in [WiFi101-FirmwareUpdater-Plugin v0.10.13](https://github.com/arduino/WiFi101-FirmwareUpdater-Plugin/releases/tag/v0.10.13)
2. Limit the maximum length of the download URL for the OTA binary since the receive buffer on the nina firmware can't hold more than 128 bytes.
3. Introduce **WiFiBearSSLClient (offloaded to Nina)**

### New in v1.7.2

1. Add support to **Adafruit Airlift M4 boards: METRO_M4_AIRLIFT_LITE, PYBADGE_AIRLIFT_M4.** Thanks to [Gerard Moorcroft](https://github.com/gmstuff) to report issue [**WiFi Hangs when attempting to start WiFi (Adafruit M4 Express Airlift Lite board)**](https://github.com/khoih-prog/MySQL_MariaDB_Generic/issues/2) leading to this new version.
Expand Down
23 changes: 4 additions & 19 deletions examples/AP_SimpleWebServer/AP_SimpleWebServer.ino
Original file line number Diff line number Diff line change
Expand Up @@ -40,24 +40,6 @@
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Version: 1.7.2
Version Modified By Date Comments
------- ----------- ---------- -----------
1.5.0 K Hoang 27/03/2020 Initial coding to support other boards besides Nano-33 IoT, MKRWIFI1010, MKRVIDOR4000, etc.
such as Arduino Mega, Teensy, SAMD21, SAMD51, STM32, etc
1.5.1 K Hoang 22/04/2020 Add support to nRF52 boards, such as AdaFruit Feather nRF52832, nRF52840 Express, BlueFruit Sense,
Itsy-Bitsy nRF52840 Express, Metro nRF52840 Express, etc.
1.5.2 K Hoang 09/05/2020 Port FirmwareUpdater to permit nRF52, Teensy, SAMD21, SAMD51, etc. boards to update WiFiNINA
W101/W102 firmware and SSL certs on IDE. Update default pin-outs.
1.5.3 K Hoang 14/07/2020 Add function to support new WebSockets2_Generic Library
1.6.0 K Hoang 19/07/2020 Sync with Arduino WiFiNINA Library v1.6.0 (new Firmware 1.4.0 and WiFiStorage)
1.6.1 K Hoang 24/07/2020 Add support to all STM32F/L/H/G/WB/MP1 and Seeeduino SAMD21/SAMD51 boards
1.6.2 K Hoang 28/07/2020 Fix WiFiStorage bug from v1.6.0
1.7.0 K Hoang 06/08/2020 Sync with Arduino WiFiNINA Library v1.7.0 : Add downloadOTA() and verify length/CRC
1.7.1 K Hoang 27/08/2020 Sync with Arduino WiFiNINA Library v1.7.1 : new Firmware 1.4.1
1.7.2 K Hoang 05/11/2020 Add support to Adafruit Airlift M4 boards: METRO_M4_AIRLIFT_LITE, PYBADGE_AIRLIFT_M4
*****************************************************************************************************************************/

#include "defines.h"
Expand Down Expand Up @@ -101,7 +83,10 @@ void setup()

if (fv < WIFI_FIRMWARE_LATEST_VERSION)
{
Serial.println("Please upgrade the firmware");
Serial.print("Your current firmware NINA FW v");
Serial.println(fv);
Serial.print("Please upgrade the firmware to NINA FW v");
Serial.println(WIFI_FIRMWARE_LATEST_VERSION);
}

// by default the local IP address of will be 192.168.4.1
Expand Down
18 changes: 0 additions & 18 deletions examples/AP_SimpleWebServer/defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,24 +24,6 @@
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Version: 1.7.2
Version Modified By Date Comments
------- ----------- ---------- -----------
1.5.0 K Hoang 27/03/2020 Initial coding to support other boards besides Nano-33 IoT, MKRWIFI1010, MKRVIDOR4000, etc.
such as Arduino Mega, Teensy, SAMD21, SAMD51, STM32, etc
1.5.1 K Hoang 22/04/2020 Add support to nRF52 boards, such as AdaFruit Feather nRF52832, nRF52840 Express, BlueFruit Sense,
Itsy-Bitsy nRF52840 Express, Metro nRF52840 Express, etc.
1.5.2 K Hoang 09/05/2020 Port FirmwareUpdater to permit nRF52, Teensy, SAMD21, SAMD51, etc. boards to update WiFiNINA
W101/W102 firmware and SSL certs on IDE. Update default pin-outs.
1.5.3 K Hoang 14/07/2020 Add function to support new WebSockets2_Generic Library
1.6.0 K Hoang 19/07/2020 Sync with Arduino WiFiNINA Library v1.6.0 (new Firmware 1.4.0 and WiFiStorage)
1.6.1 K Hoang 24/07/2020 Add support to all STM32F/L/H/G/WB/MP1 and Seeeduino SAMD21/SAMD51 boards
1.6.2 K Hoang 28/07/2020 Fix WiFiStorage bug from v1.6.0
1.7.0 K Hoang 06/08/2020 Sync with Arduino WiFiNINA Library v1.7.0 : Add downloadOTA() and verify length/CRC
1.7.1 K Hoang 27/08/2020 Sync with Arduino WiFiNINA Library v1.7.1 : new Firmware 1.4.1
1.7.2 K Hoang 05/11/2020 Add support to Adafruit Airlift M4 boards: METRO_M4_AIRLIFT_LITE, PYBADGE_AIRLIFT_M4
*****************************************************************************************************************************/

#ifndef defines_h
Expand Down
23 changes: 4 additions & 19 deletions examples/ConnectNoEncryption/ConnectNoEncryption.ino
Original file line number Diff line number Diff line change
Expand Up @@ -33,24 +33,6 @@
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Version: 1.7.2
Version Modified By Date Comments
------- ----------- ---------- -----------
1.5.0 K Hoang 27/03/2020 Initial coding to support other boards besides Nano-33 IoT, MKRWIFI1010, MKRVIDOR4000, etc.
such as Arduino Mega, Teensy, SAMD21, SAMD51, STM32, etc
1.5.1 K Hoang 22/04/2020 Add support to nRF52 boards, such as AdaFruit Feather nRF52832, nRF52840 Express, BlueFruit Sense,
Itsy-Bitsy nRF52840 Express, Metro nRF52840 Express, etc.
1.5.2 K Hoang 09/05/2020 Port FirmwareUpdater to permit nRF52, Teensy, SAMD21, SAMD51, etc. boards to update WiFiNINA
W101/W102 firmware and SSL certs on IDE. Update default pin-outs.
1.5.3 K Hoang 14/07/2020 Add function to support new WebSockets2_Generic Library
1.6.0 K Hoang 19/07/2020 Sync with Arduino WiFiNINA Library v1.6.0 (new Firmware 1.4.0 and WiFiStorage)
1.6.1 K Hoang 24/07/2020 Add support to all STM32F/L/H/G/WB/MP1 and Seeeduino SAMD21/SAMD51 boards
1.6.2 K Hoang 28/07/2020 Fix WiFiStorage bug from v1.6.0
1.7.0 K Hoang 06/08/2020 Sync with Arduino WiFiNINA Library v1.7.0 : Add downloadOTA() and verify length/CRC
1.7.1 K Hoang 27/08/2020 Sync with Arduino WiFiNINA Library v1.7.1 : new Firmware 1.4.1
1.7.2 K Hoang 05/11/2020 Add support to Adafruit Airlift M4 boards: METRO_M4_AIRLIFT_LITE, PYBADGE_AIRLIFT_M4
*****************************************************************************************************************************/

#include "defines.h"
Expand Down Expand Up @@ -83,7 +65,10 @@ void setup()
String fv = WiFi.firmwareVersion();
if (fv < WIFI_FIRMWARE_LATEST_VERSION)
{
Serial.println("Please upgrade the firmware");
Serial.print("Your current firmware NINA FW v");
Serial.println(fv);
Serial.print("Please upgrade the firmware to NINA FW v");
Serial.println(WIFI_FIRMWARE_LATEST_VERSION);
}

// attempt to connect to Wifi network:
Expand Down
18 changes: 0 additions & 18 deletions examples/ConnectNoEncryption/defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,24 +24,6 @@
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Version: 1.7.2
Version Modified By Date Comments
------- ----------- ---------- -----------
1.5.0 K Hoang 27/03/2020 Initial coding to support other boards besides Nano-33 IoT, MKRWIFI1010, MKRVIDOR4000, etc.
such as Arduino Mega, Teensy, SAMD21, SAMD51, STM32, etc
1.5.1 K Hoang 22/04/2020 Add support to nRF52 boards, such as AdaFruit Feather nRF52832, nRF52840 Express, BlueFruit Sense,
Itsy-Bitsy nRF52840 Express, Metro nRF52840 Express, etc.
1.5.2 K Hoang 09/05/2020 Port FirmwareUpdater to permit nRF52, Teensy, SAMD21, SAMD51, etc. boards to update WiFiNINA
W101/W102 firmware and SSL certs on IDE. Update default pin-outs.
1.5.3 K Hoang 14/07/2020 Add function to support new WebSockets2_Generic Library
1.6.0 K Hoang 19/07/2020 Sync with Arduino WiFiNINA Library v1.6.0 (new Firmware 1.4.0 and WiFiStorage)
1.6.1 K Hoang 24/07/2020 Add support to all STM32F/L/H/G/WB/MP1 and Seeeduino SAMD21/SAMD51 boards
1.6.2 K Hoang 28/07/2020 Fix WiFiStorage bug from v1.6.0
1.7.0 K Hoang 06/08/2020 Sync with Arduino WiFiNINA Library v1.7.0 : Add downloadOTA() and verify length/CRC
1.7.1 K Hoang 27/08/2020 Sync with Arduino WiFiNINA Library v1.7.1 : new Firmware 1.4.1
1.7.2 K Hoang 05/11/2020 Add support to Adafruit Airlift M4 boards: METRO_M4_AIRLIFT_LITE, PYBADGE_AIRLIFT_M4
*****************************************************************************************************************************/

#ifndef defines_h
Expand Down
23 changes: 4 additions & 19 deletions examples/ConnectWithWEP/ConnectWithWEP.ino
Original file line number Diff line number Diff line change
Expand Up @@ -42,24 +42,6 @@
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Version: 1.7.2
Version Modified By Date Comments
------- ----------- ---------- -----------
1.5.0 K Hoang 27/03/2020 Initial coding to support other boards besides Nano-33 IoT, MKRWIFI1010, MKRVIDOR4000, etc.
such as Arduino Mega, Teensy, SAMD21, SAMD51, STM32, etc
1.5.1 K Hoang 22/04/2020 Add support to nRF52 boards, such as AdaFruit Feather nRF52832, nRF52840 Express, BlueFruit Sense,
Itsy-Bitsy nRF52840 Express, Metro nRF52840 Express, etc.
1.5.2 K Hoang 09/05/2020 Port FirmwareUpdater to permit nRF52, Teensy, SAMD21, SAMD51, etc. boards to update WiFiNINA
W101/W102 firmware and SSL certs on IDE. Update default pin-outs.
1.5.3 K Hoang 14/07/2020 Add function to support new WebSockets2_Generic Library
1.6.0 K Hoang 19/07/2020 Sync with Arduino WiFiNINA Library v1.6.0 (new Firmware 1.4.0 and WiFiStorage)
1.6.1 K Hoang 24/07/2020 Add support to all STM32F/L/H/G/WB/MP1 and Seeeduino SAMD21/SAMD51 boards
1.6.2 K Hoang 28/07/2020 Fix WiFiStorage bug from v1.6.0
1.7.0 K Hoang 06/08/2020 Sync with Arduino WiFiNINA Library v1.7.0 : Add downloadOTA() and verify length/CRC
1.7.1 K Hoang 27/08/2020 Sync with Arduino WiFiNINA Library v1.7.1 : new Firmware 1.4.1
1.7.2 K Hoang 05/11/2020 Add support to Adafruit Airlift M4 boards: METRO_M4_AIRLIFT_LITE, PYBADGE_AIRLIFT_M4
*****************************************************************************************************************************/

#include "defines.h"
Expand Down Expand Up @@ -96,7 +78,10 @@ void setup()
String fv = WiFi.firmwareVersion();
if (fv < WIFI_FIRMWARE_LATEST_VERSION)
{
Serial.println("Please upgrade the firmware");
Serial.print("Your current firmware NINA FW v");
Serial.println(fv);
Serial.print("Please upgrade the firmware to NINA FW v");
Serial.println(WIFI_FIRMWARE_LATEST_VERSION);
}

// attempt to connect to Wifi network:
Expand Down
18 changes: 0 additions & 18 deletions examples/ConnectWithWEP/defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,24 +24,6 @@
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Version: 1.7.2
Version Modified By Date Comments
------- ----------- ---------- -----------
1.5.0 K Hoang 27/03/2020 Initial coding to support other boards besides Nano-33 IoT, MKRWIFI1010, MKRVIDOR4000, etc.
such as Arduino Mega, Teensy, SAMD21, SAMD51, STM32, etc
1.5.1 K Hoang 22/04/2020 Add support to nRF52 boards, such as AdaFruit Feather nRF52832, nRF52840 Express, BlueFruit Sense,
Itsy-Bitsy nRF52840 Express, Metro nRF52840 Express, etc.
1.5.2 K Hoang 09/05/2020 Port FirmwareUpdater to permit nRF52, Teensy, SAMD21, SAMD51, etc. boards to update WiFiNINA
W101/W102 firmware and SSL certs on IDE. Update default pin-outs.
1.5.3 K Hoang 14/07/2020 Add function to support new WebSockets2_Generic Library
1.6.0 K Hoang 19/07/2020 Sync with Arduino WiFiNINA Library v1.6.0 (new Firmware 1.4.0 and WiFiStorage)
1.6.1 K Hoang 24/07/2020 Add support to all STM32F/L/H/G/WB/MP1 and Seeeduino SAMD21/SAMD51 boards
1.6.2 K Hoang 28/07/2020 Fix WiFiStorage bug from v1.6.0
1.7.0 K Hoang 06/08/2020 Sync with Arduino WiFiNINA Library v1.7.0 : Add downloadOTA() and verify length/CRC
1.7.1 K Hoang 27/08/2020 Sync with Arduino WiFiNINA Library v1.7.1 : new Firmware 1.4.1
1.7.2 K Hoang 05/11/2020 Add support to Adafruit Airlift M4 boards: METRO_M4_AIRLIFT_LITE, PYBADGE_AIRLIFT_M4
*****************************************************************************************************************************/

#ifndef defines_h
Expand Down
23 changes: 4 additions & 19 deletions examples/ConnectWithWPA/ConnectWithWPA.ino
Original file line number Diff line number Diff line change
Expand Up @@ -32,24 +32,6 @@
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Version: 1.7.2
Version Modified By Date Comments
------- ----------- ---------- -----------
1.5.0 K Hoang 27/03/2020 Initial coding to support other boards besides Nano-33 IoT, MKRWIFI1010, MKRVIDOR4000, etc.
such as Arduino Mega, Teensy, SAMD21, SAMD51, STM32, etc
1.5.1 K Hoang 22/04/2020 Add support to nRF52 boards, such as AdaFruit Feather nRF52832, nRF52840 Express, BlueFruit Sense,
Itsy-Bitsy nRF52840 Express, Metro nRF52840 Express, etc.
1.5.2 K Hoang 09/05/2020 Port FirmwareUpdater to permit nRF52, Teensy, SAMD21, SAMD51, etc. boards to update WiFiNINA
W101/W102 firmware and SSL certs on IDE. Update default pin-outs.
1.5.3 K Hoang 14/07/2020 Add function to support new WebSockets2_Generic Library
1.6.0 K Hoang 19/07/2020 Sync with Arduino WiFiNINA Library v1.6.0 (new Firmware 1.4.0 and WiFiStorage)
1.6.1 K Hoang 24/07/2020 Add support to all STM32F/L/H/G/WB/MP1 and Seeeduino SAMD21/SAMD51 boards
1.6.2 K Hoang 28/07/2020 Fix WiFiStorage bug from v1.6.0
1.7.0 K Hoang 06/08/2020 Sync with Arduino WiFiNINA Library v1.7.0 : Add downloadOTA() and verify length/CRC
1.7.1 K Hoang 27/08/2020 Sync with Arduino WiFiNINA Library v1.7.1 : new Firmware 1.4.1
1.7.2 K Hoang 05/11/2020 Add support to Adafruit Airlift M4 boards: METRO_M4_AIRLIFT_LITE, PYBADGE_AIRLIFT_M4
*****************************************************************************************************************************/
#include "defines.h"
#include "arduino_secrets.h"
Expand Down Expand Up @@ -84,7 +66,10 @@ void setup()

if (fv < WIFI_FIRMWARE_LATEST_VERSION)
{
Serial.println("Please upgrade the firmware");
Serial.print("Your current firmware NINA FW v");
Serial.println(fv);
Serial.print("Please upgrade the firmware to NINA FW v");
Serial.println(WIFI_FIRMWARE_LATEST_VERSION);
}

// attempt to connect to Wifi network:
Expand Down
18 changes: 0 additions & 18 deletions examples/ConnectWithWPA/defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,24 +24,6 @@
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Version: 1.7.2
Version Modified By Date Comments
------- ----------- ---------- -----------
1.5.0 K Hoang 27/03/2020 Initial coding to support other boards besides Nano-33 IoT, MKRWIFI1010, MKRVIDOR4000, etc.
such as Arduino Mega, Teensy, SAMD21, SAMD51, STM32, etc
1.5.1 K Hoang 22/04/2020 Add support to nRF52 boards, such as AdaFruit Feather nRF52832, nRF52840 Express, BlueFruit Sense,
Itsy-Bitsy nRF52840 Express, Metro nRF52840 Express, etc.
1.5.2 K Hoang 09/05/2020 Port FirmwareUpdater to permit nRF52, Teensy, SAMD21, SAMD51, etc. boards to update WiFiNINA
W101/W102 firmware and SSL certs on IDE. Update default pin-outs.
1.5.3 K Hoang 14/07/2020 Add function to support new WebSockets2_Generic Library
1.6.0 K Hoang 19/07/2020 Sync with Arduino WiFiNINA Library v1.6.0 (new Firmware 1.4.0 and WiFiStorage)
1.6.1 K Hoang 24/07/2020 Add support to all STM32F/L/H/G/WB/MP1 and Seeeduino SAMD21/SAMD51 boards
1.6.2 K Hoang 28/07/2020 Fix WiFiStorage bug from v1.6.0
1.7.0 K Hoang 06/08/2020 Sync with Arduino WiFiNINA Library v1.7.0 : Add downloadOTA() and verify length/CRC
1.7.1 K Hoang 27/08/2020 Sync with Arduino WiFiNINA Library v1.7.1 : new Firmware 1.4.1
1.7.2 K Hoang 05/11/2020 Add support to Adafruit Airlift M4 boards: METRO_M4_AIRLIFT_LITE, PYBADGE_AIRLIFT_M4
*****************************************************************************************************************************/

#ifndef defines_h
Expand Down
Loading

0 comments on commit f9639b5

Please sign in to comment.