diff --git a/README.md b/README.md index f5d5df1d..df9a9722 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,12 @@ --- -### New in v1.6.2 +### New in v1.7.0 + +1. Sync with [Arduino WiFiNINA Library v1.7.0](https://github.com/arduino-libraries/WiFiNINA/releases/tag/1.7.0). See [Add 'downloadOTA' command to download OTA file and verify length/CRC](https://github.com/arduino-libraries/WiFiNINA/pull/124) +2. Add Arduino SAMD Packages_Patches to fix Arduino SAMD compiler error when using STL. See [Improve Arduino compatibility with the STL (min and max macro)](https://github.com/arduino/ArduinoCore-samd/pull/399) + +#### New in v1.6.2 1. Fix WiFiStorage bug introduced from v1.6.0 resulting compile error. 2. Add example for WiFiStorage. @@ -46,6 +51,8 @@ Again with credits of [Miguel Alexandre Wisintainer](https://github.com/tcpipchi 1. The original [Arduino WiFiNINA library](http://www.arduino.cc/en/Reference/WiFiNINA) only supports very limited boards, such as: the Arduino MKR WiFi 1010, Arduino MKR VIDOR 4000 and Arduino UNO WiFi Rev.2. This library is based on and modified from [Arduino WiFiNINA library](http://www.arduino.cc/en/Reference/WiFiNINA) to provide support for many more boards, such as SAM DUE, SAMD21, SAMD51, Teensy, AVR Mega, STM32, etc. +--- + ## Features With this library you can instantiate Servers, Clients and send/receive UDP packets through WiFiNINA. The board can connect either to open or encrypted networks (WEP, WPA). The IP address can be assigned statically or through a DHCP. The library can also manage DNS. @@ -92,7 +99,9 @@ To install: ### Packages' Patches - 1. ***To be able to compile, run and automatically detect and display BOARD_NAME on nRF52840/nRF52832 boards***, you have to copy the whole [nRF52 0.20.5](Packages_Patches/adafruit/hardware/nrf52/0.20.5) directory into Adafruit nRF52 directory (~/.arduino15/packages/adafruit/hardware/nrf52/0.20.5). +#### 1. Adafruit nRF52 + + ***To be able to compile, run and automatically detect and display BOARD_NAME on nRF52840/nRF52832 boards***, you have to copy the whole [nRF52 0.20.5](Packages_Patches/adafruit/hardware/nrf52/0.20.5) directory into Adafruit nRF52 directory (~/.arduino15/packages/adafruit/hardware/nrf52/0.20.5). Supposing the Adafruit nRF52 version is 0.20.5. These files must be copied into the directory: - `~/.arduino15/packages/adafruit/hardware/nrf52/0.20.5/platform.txt` @@ -114,7 +123,9 @@ These files must be copied into the directory: - `~/.arduino15/packages/adafruit/hardware/nrf52/x.yy.z/variants/NINA_B112_ublox/variant.cpp` - ***`~/.arduino15/packages/adafruit/hardware/nrf52/x.yy.z/cores/nRF5/Udp.h`*** - 2. ***To be able to compile and run on Teensy boards***, you have to copy the file [Teensy boards.txt](Packages_Patches/hardware/teensy/avr/boards.txt) into Teensy hardware directory (./arduino-1.8.12/hardware/teensy/avr/boards.txt). +#### 2. Teensy + + ***To be able to compile and run on Teensy boards***, you have to copy the file [Teensy boards.txt](Packages_Patches/hardware/teensy/avr/boards.txt) into Teensy hardware directory (./arduino-1.8.12/hardware/teensy/avr/boards.txt). Supposing the Arduino version is 1.8.12. This file must be copied into the directory: @@ -125,7 +136,9 @@ This file must be copied into the directory: - `./arduino-x.yy.zz/hardware/teensy/avr/boards.txt` - 3. ***To be able to compile and run on SAM DUE boards***, you have to copy the whole [SAM DUE](Packages_Patches/arduino/hardware/sam/1.6.12) directory into Arduino sam directory (~/.arduino15/packages/arduino/hardware/sam/1.6.12). +#### 3. Arduino SAM DUE + + ***To be able to compile and run on SAM DUE boards***, you have to copy the whole [SAM DUE](Packages_Patches/arduino/hardware/sam/1.6.12) directory into Arduino sam directory (~/.arduino15/packages/arduino/hardware/sam/1.6.12). Supposing the Arduino SAM core version is 1.6.12. This file must be copied into the directory: @@ -136,7 +149,9 @@ This file must be copied into the directory: - `~/.arduino15/packages/arduino/hardware/sam/x.yy.zz/platform.txt` - 4. ***To be able to compile without error and automatically detect and display BOARD_NAME on Arduino SAMD (Nano-33-IoT, etc) boards***, you have to copy the whole [Arduino SAMD cores 1.8.7](Packages_Patches/arduino/hardware/samd/1.8.7) directory into Arduino SAMD directory (~/.arduino15/packages/arduino/hardware/samd/1.8.7). +#### 4. Arduino SAMD + +***To be able to compile without error and automatically detect and display BOARD_NAME on Arduino SAMD (Nano-33-IoT, etc) boards***, you have to copy the whole [Arduino SAMD cores 1.8.7](Packages_Patches/arduino/hardware/samd/1.8.7) directory into Arduino SAMD directory (~/.arduino15/packages/arduino/hardware/samd/1.8.7). Supposing the Arduino SAMD version is 1.8.7. These files must be copied into the directory: - `~/.arduino15/packages/arduino/hardware/samd/1.8.7/platform.txt` @@ -156,9 +171,11 @@ These files must be copied into the directory: min(const _Tp& __a, const _Tp& __b, _Compare __comp) ``` -Whenever the above-mentioned compiler error issue is fixed with the new Arduino SAMD releas, you don't need to copy the `Arduino.h` file anymore. +Whenever the above-mentioned compiler error issue is fixed with the new Arduino SAMD release, you don't need to copy the `Arduino.h` file anymore. - 5. ***To be able to automatically detect and display BOARD_NAME on Adafruit SAMD (Itsy-Bitsy M4, etc) boards***, you have to copy the file [Adafruit SAMD platform.txt](Packages_Patches/adafruit/hardware/samd/1.6.0) into Adafruit samd directory (~/.arduino15/packages/adafruit/hardware/samd/1.6.0). +#### 5. Adafruit SAMD + + ***To be able to automatically detect and display BOARD_NAME on Adafruit SAMD (Itsy-Bitsy M4, etc) boards***, you have to copy the file [Adafruit SAMD platform.txt](Packages_Patches/adafruit/hardware/samd/1.6.0) into Adafruit samd directory (~/.arduino15/packages/adafruit/hardware/samd/1.6.0). Supposing the Adafruit SAMD core version is 1.6.0. This file must be copied into the directory: @@ -169,7 +186,9 @@ This file must be copied into the directory: - `~/.arduino15/packages/adafruit/hardware/samd/x.yy.zz/platform.txt` - 6. ***To be able to automatically detect and display BOARD_NAME on Seeeduino SAMD (XIAO M0, Wio Terminal, etc) boards***, you have to copy the file [Seeeduino SAMD platform.txt](Packages_Patches/Seeeduino/hardware/samd/1.7.7) into Adafruit samd directory (~/.arduino15/packages/Seeeduino/hardware/samd/1.7.7). +#### 6. Seeeduino SAMD + + ***To be able to automatically detect and display BOARD_NAME on Seeeduino SAMD (XIAO M0, Wio Terminal, etc) boards***, you have to copy the file [Seeeduino SAMD platform.txt](Packages_Patches/Seeeduino/hardware/samd/1.7.7) into Adafruit samd directory (~/.arduino15/packages/Seeeduino/hardware/samd/1.7.7). Supposing the Seeeduino SAMD core version is 1.7.7. This file must be copied into the directory: @@ -180,7 +199,9 @@ This file must be copied into the directory: - `~/.arduino15/packages/Seeeduino/hardware/samd/x.yy.zz/platform.txt` -7. ***To use Serial1 on some STM32 boards without Serial1 definition (Nucleo-144 NUCLEO_F767ZI, Nucleo-64 NUCLEO_L053R8, etc.) boards***, you have to copy the files [STM32 variant.h](Packages_Patches/STM32/hardware/stm32/1.9.0) into STM32 stm32 directory (~/.arduino15/packages/STM32/hardware/stm32/1.9.0). You have to modify the files corresponding to your boards, this is just an illustration how to do. +#### 7. STM32 stm32 + +***To use Serial1 on some STM32 boards without Serial1 definition (Nucleo-144 NUCLEO_F767ZI, Nucleo-64 NUCLEO_L053R8, etc.) boards***, you have to copy the files [STM32 variant.h](Packages_Patches/STM32/hardware/stm32/1.9.0) into STM32 stm32 directory (~/.arduino15/packages/STM32/hardware/stm32/1.9.0). You have to modify the files corresponding to your boards, this is just an illustration how to do. Supposing the STM32 stm32 core version is 1.9.0. These files must be copied into the directory: @@ -347,7 +368,7 @@ See examples : ## Example [WiFiWebServer](examples/WiFiWebServer) -### File [WiFiWebServer.ino](examples/WiFiWebServer/WiFiWebServer.ino) +### 1. File [WiFiWebServer.ino](examples/WiFiWebServer/WiFiWebServer.ino) ```cpp #include "defines.h" @@ -490,7 +511,7 @@ void printWifiStatus() } ``` -### File [defines.h](examples/WiFiWebServer/defines.h) +### 2. File [defines.h](examples/WiFiWebServer/defines.h) ```cpp #ifndef defines_h @@ -776,12 +797,159 @@ void printWifiStatus() ``` -The following are debug terminal output and screen shot when running example [AdvancedWebServer](https://github.com/khoih-prog/WiFiWebServer/tree/master/examples/AdvancedWebServer) on Arduino Nano 33 IoT board using this [WiFiNINA_Generic Library](https://github.com/khoih-prog/WiFiNINA_Generic) +The following are screen shot and debug terminal output when running example [AdvancedWebServer](https://github.com/khoih-prog/WiFiWebServer/tree/master/examples/AdvancedWebServer) on Arduino SAMD21 Nano-33-IoT board using this [WiFiNINA_Generic Library](https://github.com/khoih-prog/WiFiNINA_Generic)

+ +``` +Starting AdvancedServer on SAMD_NANO_33_IOT +[NN] =============================== +[NN] +Used/default SPI pinout: +[NN] MOSI: 11 +[NN] MISO: 12 +[NN] SCK: 13 +[NN] SS: 10 +[NN] =============================== +[NN] +Used/default NINA pinout: +[NN] NINA_GPIO0: 26 +[NN] NINA_RESETN/SPIWIFI_RESET: 27 +[NN] NINA_ACK: 28 +[NN] SS: 10 +[NN] =============================== +[NN] +Actual final pinout to used: +[NN] SPIWIFI_SS: 24 +[NN] SLAVESELECT/SPIWIFI_SS: 24 +[NN] SLAVEREADY/SPIWIFI_ACK/NINA_ACK: 28 +[NN] SLAVERESET/SPIWIFI_RESET/NINA_RESETN: 27 +[NN] =============================== + +Connecting to WPA SSID: HueNet1 +HTTP server started @ 192.168.2.118 +WiFiWebServer::handleClient: New Client +method: GET +url: / +search: +headerName: Host +headerValue: 192.168.2.118 +headerName: Connection +headerValue: keep-alive +headerName: Cache-Control +headerValue: max-age=0 +headerName: DNT +headerValue: 1 +headerName: Upgrade-Insecure-Requests +headerValue: 1 +headerName: User-Agent +headerValue: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36 +headerName: Accept +headerValue: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9 +headerName: Accept-Encoding +headerValue: gzip, deflate +headerName: Accept-Language +headerValue: en-GB,en-US;q=0.9,en;q=0.8 +headerName: Cookie +headerValue: NINASESSIONID=0 +args: +args count: 0 +args: +args count: 0 +Request: / +Arguments: +Final list of key/value pairs: +WiFiWebServer::_handleRequest handle +WiFiWebServer::send1: len = 330 +content = WiFiNINA SAMD_NANO_33_IOT

Hello from WiFiNINA

on SAMD_NANO_33_IOT

Uptime: 00:00:20

+WiFiWebServer::_prepareHeader sendHeader Conn close +WiFiWebServer::send1: write header = HTTP/1.1 200 OK +Content-Type: text/html +Content-Length: 330 +Connection: close + + +WiFiWebServer::sendContent: Client.write content: WiFiNINA SAMD_NANO_33_IOT

Hello from WiFiNINA

on SAMD_NANO_33_IOT

Uptime: 00:00:20

+WiFiWebServer::_handleRequest OK +WiFiWebServer::handleClient: Client disconnected +WiFiWebServer::handleClient: Don't keepCurrentClient +WiFiWebServer::handleClient: Client disconnected +WiFiWebServer::handleClient: New Client +method: GET +url: /test.svg +search: +headerName: Host +headerValue: 192.168.2.118 +headerName: Connection +headerValue: keep-alive +headerName: User-Agent +headerValue: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36 +headerName: DNT +headerValue: 1 +headerName: Accept +headerValue: image/webp,image/apng,image/*,*/*;q=0.8 +headerName: Referer +headerValue: http://192.168.2.118/ +headerName: Accept-Encoding +headerValue: gzip, deflate +headerName: Accept-Language +headerValue: en-GB,en-US;q=0.9,en;q=0.8 +headerName: Cookie +headerValue: NINASESSIONID=0 +args: +args count: 0 +args: +args count: 0 +Request: /test.svg +Arguments: +Final list of key/value pairs: +WiFiWebServer::_handleRequest handle +WiFiWebServer::send1: len = 1946 +content = + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +WiFiWebServer::_prepareHeader sendHeader Conn close +WiFiWebServer::send1: write header = HTTP/1.1 200 OK +Content-Type: image/svg+xml +Content-Length: 1946 +Connection: close +``` + --- ### Debug @@ -803,6 +971,11 @@ Sometimes, the library will only work if you update the `WiFiNINA module/shield` --- +### New in v1.7.0 + +1. Sync with [Arduino WiFiNINA Library v1.7.0](https://github.com/arduino-libraries/WiFiNINA/releases/tag/1.7.0). See [Add 'downloadOTA' command to download OTA file and verify length/CRC](https://github.com/arduino-libraries/WiFiNINA/pull/124) +2. Add Arduino SAMD Packages_Patches to fix Arduino SAMD compiler error when using STL. See [Improve Arduino compatibility with the STL (min and max macro)](https://github.com/arduino/ArduinoCore-samd/pull/399) + #### New in v1.6.2 1. Fix WiFiStorage bug introduced from v1.6.0 resulting compile error. @@ -865,8 +1038,8 @@ Again with credits of [Miguel Alexandre Wisintainer](https://github.com/tcpipchi ### Contributions and Thanks -1. Based on and modified from from [Arduino WiFiNINA library](http://www.arduino.cc/en/Reference/WiFiNINA) -2. Thanks to great work of [Miguel Alexandre Wisintainer](https://github.com/tcpipchip) for initiating, inspriring, working with, developing, debugging and testing. Without that, support to nRF52, especially ***U-Box B302 running as nRF52840 and U-Box B112 running as nRF52832***, has never been started and finished. See [u-blox nina b](https://github.com/khoih-prog/WiFiNINA_Generic/issues/1) +1. Based on and modified from from [Arduino WiFiNINA library](http://www.arduino.cc/en/Reference/WiFiNINA).Thanks to the great works of these [WiFiNINA Library's Contributors](https://github.com/arduino-libraries/WiFiNINA/graphs/contributors) +2. Thanks to good work of [Miguel Alexandre Wisintainer](https://github.com/tcpipchip) for initiating, inspriring, working with, developing, debugging and testing. Without that, support to nRF52, especially ***U-Box B302 running as nRF52840 and U-Box B112 running as nRF52832***, has never been started and finished. See [u-blox nina b](https://github.com/khoih-prog/WiFiNINA_Generic/issues/1) 3. Thanks to [AppsByDavideV](https://github.com/AppsByDavideV) to report [WiFiStorage Bug](https://github.com/khoih-prog/WiFiNINA_Generic/issues/4) @@ -884,6 +1057,8 @@ If you want to contribute to this project: - Create issues and pull requests - Tell other people about this library +--- + ### Copyright 1. Copyright (c) 2018 Arduino SA. All rights reserved. diff --git a/examples/AP_SimpleWebServer/AP_SimpleWebServer.ino b/examples/AP_SimpleWebServer/AP_SimpleWebServer.ino index 4eed8818..4594b2c6 100644 --- a/examples/AP_SimpleWebServer/AP_SimpleWebServer.ino +++ b/examples/AP_SimpleWebServer/AP_SimpleWebServer.ino @@ -41,7 +41,7 @@ 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.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -52,9 +52,10 @@ 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 Aruino 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.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 *****************************************************************************************************************************/ #include "defines.h" diff --git a/examples/AP_SimpleWebServer/defines.h b/examples/AP_SimpleWebServer/defines.h index d33c5359..b068d556 100644 --- a/examples/AP_SimpleWebServer/defines.h +++ b/examples/AP_SimpleWebServer/defines.h @@ -25,7 +25,7 @@ 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.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -36,9 +36,10 @@ 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 Aruino 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.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 *****************************************************************************************************************************/ #ifndef defines_h diff --git a/examples/ConnectNoEncryption/ConnectNoEncryption.ino b/examples/ConnectNoEncryption/ConnectNoEncryption.ino index bcaabc51..84a4b794 100644 --- a/examples/ConnectNoEncryption/ConnectNoEncryption.ino +++ b/examples/ConnectNoEncryption/ConnectNoEncryption.ino @@ -34,7 +34,7 @@ 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.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -45,9 +45,10 @@ 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 Aruino 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.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 *****************************************************************************************************************************/ #include "defines.h" diff --git a/examples/ConnectNoEncryption/defines.h b/examples/ConnectNoEncryption/defines.h index d33c5359..b068d556 100644 --- a/examples/ConnectNoEncryption/defines.h +++ b/examples/ConnectNoEncryption/defines.h @@ -25,7 +25,7 @@ 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.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -36,9 +36,10 @@ 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 Aruino 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.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 *****************************************************************************************************************************/ #ifndef defines_h diff --git a/examples/ConnectWithWEP/ConnectWithWEP.ino b/examples/ConnectWithWEP/ConnectWithWEP.ino index 43538d2b..7b1bb433 100644 --- a/examples/ConnectWithWEP/ConnectWithWEP.ino +++ b/examples/ConnectWithWEP/ConnectWithWEP.ino @@ -43,7 +43,7 @@ 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.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -54,9 +54,10 @@ 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 Aruino 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.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 *****************************************************************************************************************************/ #include "defines.h" diff --git a/examples/ConnectWithWEP/defines.h b/examples/ConnectWithWEP/defines.h index d33c5359..b068d556 100644 --- a/examples/ConnectWithWEP/defines.h +++ b/examples/ConnectWithWEP/defines.h @@ -25,7 +25,7 @@ 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.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -36,9 +36,10 @@ 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 Aruino 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.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 *****************************************************************************************************************************/ #ifndef defines_h diff --git a/examples/ConnectWithWPA/ConnectWithWPA.ino b/examples/ConnectWithWPA/ConnectWithWPA.ino index 1a60cfd9..49c5b2df 100644 --- a/examples/ConnectWithWPA/ConnectWithWPA.ino +++ b/examples/ConnectWithWPA/ConnectWithWPA.ino @@ -33,7 +33,7 @@ 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.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -44,9 +44,10 @@ 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 Aruino 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.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 *****************************************************************************************************************************/ #include "defines.h" #include "arduino_secrets.h" diff --git a/examples/ConnectWithWPA/defines.h b/examples/ConnectWithWPA/defines.h index d33c5359..24145375 100644 --- a/examples/ConnectWithWPA/defines.h +++ b/examples/ConnectWithWPA/defines.h @@ -25,7 +25,7 @@ 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.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -36,9 +36,10 @@ 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 Aruino 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.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 *****************************************************************************************************************************/ #ifndef defines_h diff --git a/examples/ConnectWithWPA2Enterprise/ConnectWithWPA2Enterprise.ino b/examples/ConnectWithWPA2Enterprise/ConnectWithWPA2Enterprise.ino index f7b0f7b4..a130b9d0 100644 --- a/examples/ConnectWithWPA2Enterprise/ConnectWithWPA2Enterprise.ino +++ b/examples/ConnectWithWPA2Enterprise/ConnectWithWPA2Enterprise.ino @@ -30,7 +30,7 @@ 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.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -41,9 +41,10 @@ 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 Aruino 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.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 *****************************************************************************************************************************/ #include "defines.h" #include "arduino_secrets.h" diff --git a/examples/ConnectWithWPA2Enterprise/defines.h b/examples/ConnectWithWPA2Enterprise/defines.h index d33c5359..24145375 100644 --- a/examples/ConnectWithWPA2Enterprise/defines.h +++ b/examples/ConnectWithWPA2Enterprise/defines.h @@ -25,7 +25,7 @@ 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.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -36,9 +36,10 @@ 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 Aruino 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.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 *****************************************************************************************************************************/ #ifndef defines_h diff --git a/examples/ScanNetworks/ScanNetworks.ino b/examples/ScanNetworks/ScanNetworks.ino index f443976f..2c189de5 100644 --- a/examples/ScanNetworks/ScanNetworks.ino +++ b/examples/ScanNetworks/ScanNetworks.ino @@ -37,7 +37,7 @@ 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.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -48,9 +48,10 @@ 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 Aruino 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.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 *****************************************************************************************************************************/ #include "defines.h" diff --git a/examples/ScanNetworks/defines.h b/examples/ScanNetworks/defines.h index d33c5359..24145375 100644 --- a/examples/ScanNetworks/defines.h +++ b/examples/ScanNetworks/defines.h @@ -25,7 +25,7 @@ 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.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -36,9 +36,10 @@ 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 Aruino 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.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 *****************************************************************************************************************************/ #ifndef defines_h diff --git a/examples/ScanNetworksAdvanced/ScanNetworksAdvanced.ino b/examples/ScanNetworksAdvanced/ScanNetworksAdvanced.ino index 75a883c0..eab93223 100644 --- a/examples/ScanNetworksAdvanced/ScanNetworksAdvanced.ino +++ b/examples/ScanNetworksAdvanced/ScanNetworksAdvanced.ino @@ -38,7 +38,7 @@ 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.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -49,9 +49,10 @@ 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 Aruino 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.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 *****************************************************************************************************************************/ #include "defines.h" diff --git a/examples/ScanNetworksAdvanced/defines.h b/examples/ScanNetworksAdvanced/defines.h index d33c5359..24145375 100644 --- a/examples/ScanNetworksAdvanced/defines.h +++ b/examples/ScanNetworksAdvanced/defines.h @@ -25,7 +25,7 @@ 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.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -36,9 +36,10 @@ 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 Aruino 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.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 *****************************************************************************************************************************/ #ifndef defines_h diff --git a/examples/SimpleWebServerWiFi/SimpleWebServerWiFi.ino b/examples/SimpleWebServerWiFi/SimpleWebServerWiFi.ino index db881697..ec801875 100644 --- a/examples/SimpleWebServerWiFi/SimpleWebServerWiFi.ino +++ b/examples/SimpleWebServerWiFi/SimpleWebServerWiFi.ino @@ -45,7 +45,7 @@ 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.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -56,9 +56,10 @@ 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 Aruino 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.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 *****************************************************************************************************************************/ #include "defines.h" #include "arduino_secrets.h" diff --git a/examples/SimpleWebServerWiFi/defines.h b/examples/SimpleWebServerWiFi/defines.h index d33c5359..24145375 100644 --- a/examples/SimpleWebServerWiFi/defines.h +++ b/examples/SimpleWebServerWiFi/defines.h @@ -25,7 +25,7 @@ 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.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -36,9 +36,10 @@ 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 Aruino 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.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 *****************************************************************************************************************************/ #ifndef defines_h diff --git a/examples/Tools/CheckFirmwareVersion/CheckFirmwareVersion.ino b/examples/Tools/CheckFirmwareVersion/CheckFirmwareVersion.ino index 918137dc..b24dd837 100644 --- a/examples/Tools/CheckFirmwareVersion/CheckFirmwareVersion.ino +++ b/examples/Tools/CheckFirmwareVersion/CheckFirmwareVersion.ino @@ -25,7 +25,7 @@ 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.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -36,9 +36,10 @@ 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 Aruino 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.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 *****************************************************************************************************************************/ /* diff --git a/examples/Tools/FirmwareUpdater/ESP32BootROM.cpp b/examples/Tools/FirmwareUpdater/ESP32BootROM.cpp index 76042909..e4b94b9c 100644 --- a/examples/Tools/FirmwareUpdater/ESP32BootROM.cpp +++ b/examples/Tools/FirmwareUpdater/ESP32BootROM.cpp @@ -25,7 +25,7 @@ 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.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -36,9 +36,10 @@ 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 Aruino 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.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 *****************************************************************************************************************************/ #ifdef ARDUINO_SAMD_MKRVIDOR4000 #include diff --git a/examples/Tools/FirmwareUpdater/ESP32BootROM.h b/examples/Tools/FirmwareUpdater/ESP32BootROM.h index 4b50c25e..5f09b902 100644 --- a/examples/Tools/FirmwareUpdater/ESP32BootROM.h +++ b/examples/Tools/FirmwareUpdater/ESP32BootROM.h @@ -25,7 +25,7 @@ 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.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -36,9 +36,10 @@ 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 Aruino 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.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 *****************************************************************************************************************************/ #include diff --git a/examples/Tools/FirmwareUpdater/Endianess.ino b/examples/Tools/FirmwareUpdater/Endianess.ino index 6c1373bb..4c8862ad 100644 --- a/examples/Tools/FirmwareUpdater/Endianess.ino +++ b/examples/Tools/FirmwareUpdater/Endianess.ino @@ -25,7 +25,7 @@ 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.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -36,9 +36,10 @@ 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 Aruino 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.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 *****************************************************************************************************************************/ bool isBigEndian() diff --git a/examples/Tools/FirmwareUpdater/FirmwareUpdater.ino b/examples/Tools/FirmwareUpdater/FirmwareUpdater.ino index 8855a56f..129a7f0b 100644 --- a/examples/Tools/FirmwareUpdater/FirmwareUpdater.ino +++ b/examples/Tools/FirmwareUpdater/FirmwareUpdater.ino @@ -25,7 +25,7 @@ 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.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -36,9 +36,10 @@ 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 Aruino 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.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 *****************************************************************************************************************************/ #include "ESP32BootROM.h" diff --git a/examples/Tools/SerialNINAPassthrough/SerialNINAPassthrough.ino b/examples/Tools/SerialNINAPassthrough/SerialNINAPassthrough.ino index 55e2810b..52ffc78d 100644 --- a/examples/Tools/SerialNINAPassthrough/SerialNINAPassthrough.ino +++ b/examples/Tools/SerialNINAPassthrough/SerialNINAPassthrough.ino @@ -25,7 +25,7 @@ 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.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -36,9 +36,10 @@ 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 Aruino 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.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 *****************************************************************************************************************************/ #ifdef ARDUINO_SAMD_MKRVIDOR4000 diff --git a/examples/WiFiChatServer/WiFiChatServer.ino b/examples/WiFiChatServer/WiFiChatServer.ino index 389fffca..5feb9fbb 100644 --- a/examples/WiFiChatServer/WiFiChatServer.ino +++ b/examples/WiFiChatServer/WiFiChatServer.ino @@ -39,7 +39,7 @@ 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.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -50,9 +50,10 @@ 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 Aruino 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.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 *****************************************************************************************************************************/ #include "defines.h" #include "arduino_secrets.h" diff --git a/examples/WiFiChatServer/defines.h b/examples/WiFiChatServer/defines.h index d33c5359..24145375 100644 --- a/examples/WiFiChatServer/defines.h +++ b/examples/WiFiChatServer/defines.h @@ -25,7 +25,7 @@ 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.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -36,9 +36,10 @@ 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 Aruino 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.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 *****************************************************************************************************************************/ #ifndef defines_h diff --git a/examples/WiFiNINA_SSL_Test/WiFiNINA_SSL_Test.ino b/examples/WiFiNINA_SSL_Test/WiFiNINA_SSL_Test.ino index e34d3ec9..e0e5506f 100644 --- a/examples/WiFiNINA_SSL_Test/WiFiNINA_SSL_Test.ino +++ b/examples/WiFiNINA_SSL_Test/WiFiNINA_SSL_Test.ino @@ -33,7 +33,7 @@ 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.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -44,9 +44,10 @@ 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 Aruino 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.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 *****************************************************************************************************************************/ #include "defines.h" diff --git a/examples/WiFiNINA_SSL_Test/defines.h b/examples/WiFiNINA_SSL_Test/defines.h index d33c5359..24145375 100644 --- a/examples/WiFiNINA_SSL_Test/defines.h +++ b/examples/WiFiNINA_SSL_Test/defines.h @@ -25,7 +25,7 @@ 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.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -36,9 +36,10 @@ 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 Aruino 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.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 *****************************************************************************************************************************/ #ifndef defines_h diff --git a/examples/WiFiPing/WiFiPing.ino b/examples/WiFiPing/WiFiPing.ino index 174e11f7..8107b676 100644 --- a/examples/WiFiPing/WiFiPing.ino +++ b/examples/WiFiPing/WiFiPing.ino @@ -37,7 +37,7 @@ 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.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -48,9 +48,10 @@ 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 Aruino 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.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 *****************************************************************************************************************************/ #include "defines.h" diff --git a/examples/WiFiPing/defines.h b/examples/WiFiPing/defines.h index d33c5359..24145375 100644 --- a/examples/WiFiPing/defines.h +++ b/examples/WiFiPing/defines.h @@ -25,7 +25,7 @@ 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.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -36,9 +36,10 @@ 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 Aruino 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.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 *****************************************************************************************************************************/ #ifndef defines_h diff --git a/examples/WiFiSSLClient/WiFiSSLClient.ino b/examples/WiFiSSLClient/WiFiSSLClient.ino index ad0a028a..45fad39c 100644 --- a/examples/WiFiSSLClient/WiFiSSLClient.ino +++ b/examples/WiFiSSLClient/WiFiSSLClient.ino @@ -33,7 +33,7 @@ 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.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -44,9 +44,10 @@ 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 Aruino 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.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 *****************************************************************************************************************************/ #include "defines.h" diff --git a/examples/WiFiSSLClient/defines.h b/examples/WiFiSSLClient/defines.h index d33c5359..24145375 100644 --- a/examples/WiFiSSLClient/defines.h +++ b/examples/WiFiSSLClient/defines.h @@ -25,7 +25,7 @@ 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.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -36,9 +36,10 @@ 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 Aruino 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.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 *****************************************************************************************************************************/ #ifndef defines_h diff --git a/examples/WiFiStorage/WiFiStorage.ino b/examples/WiFiStorage/WiFiStorage.ino index b848c43c..851da21b 100644 --- a/examples/WiFiStorage/WiFiStorage.ino +++ b/examples/WiFiStorage/WiFiStorage.ino @@ -25,7 +25,7 @@ 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.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -36,9 +36,10 @@ 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 Aruino 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.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 *****************************************************************************************************************************/ /* This example shows how to interact with NiNa internal memory partition diff --git a/examples/WiFiUdpNtpClient/WiFiUdpNtpClient.ino b/examples/WiFiUdpNtpClient/WiFiUdpNtpClient.ino index 09d0479c..6f4d7a27 100644 --- a/examples/WiFiUdpNtpClient/WiFiUdpNtpClient.ino +++ b/examples/WiFiUdpNtpClient/WiFiUdpNtpClient.ino @@ -38,7 +38,7 @@ 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.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -49,9 +49,10 @@ 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 Aruino 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.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 *****************************************************************************************************************************/ #include "defines.h" diff --git a/examples/WiFiUdpNtpClient/defines.h b/examples/WiFiUdpNtpClient/defines.h index d33c5359..24145375 100644 --- a/examples/WiFiUdpNtpClient/defines.h +++ b/examples/WiFiUdpNtpClient/defines.h @@ -25,7 +25,7 @@ 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.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -36,9 +36,10 @@ 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 Aruino 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.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 *****************************************************************************************************************************/ #ifndef defines_h diff --git a/examples/WiFiUdpSendReceiveString/WiFiUdpSendReceiveString.ino b/examples/WiFiUdpSendReceiveString/WiFiUdpSendReceiveString.ino index b45c91a4..fb4ed017 100644 --- a/examples/WiFiUdpSendReceiveString/WiFiUdpSendReceiveString.ino +++ b/examples/WiFiUdpSendReceiveString/WiFiUdpSendReceiveString.ino @@ -32,7 +32,7 @@ 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.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -43,9 +43,10 @@ 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 Aruino 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.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 *****************************************************************************************************************************/ #include "defines.h" diff --git a/examples/WiFiUdpSendReceiveString/defines.h b/examples/WiFiUdpSendReceiveString/defines.h index d33c5359..24145375 100644 --- a/examples/WiFiUdpSendReceiveString/defines.h +++ b/examples/WiFiUdpSendReceiveString/defines.h @@ -25,7 +25,7 @@ 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.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -36,9 +36,10 @@ 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 Aruino 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.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 *****************************************************************************************************************************/ #ifndef defines_h diff --git a/examples/WiFiWebClient/WiFiWebClient.ino b/examples/WiFiWebClient/WiFiWebClient.ino index c0b620bc..1ba89c00 100644 --- a/examples/WiFiWebClient/WiFiWebClient.ino +++ b/examples/WiFiWebClient/WiFiWebClient.ino @@ -41,7 +41,7 @@ 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.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -52,9 +52,10 @@ 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 Aruino 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.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 *****************************************************************************************************************************/ #include "defines.h" diff --git a/examples/WiFiWebClient/defines.h b/examples/WiFiWebClient/defines.h index d33c5359..24145375 100644 --- a/examples/WiFiWebClient/defines.h +++ b/examples/WiFiWebClient/defines.h @@ -25,7 +25,7 @@ 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.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -36,9 +36,10 @@ 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 Aruino 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.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 *****************************************************************************************************************************/ #ifndef defines_h diff --git a/examples/WiFiWebClientRepeating/WiFiWebClientRepeating.ino b/examples/WiFiWebClientRepeating/WiFiWebClientRepeating.ino index 21ffbcdb..7d879d3e 100644 --- a/examples/WiFiWebClientRepeating/WiFiWebClientRepeating.ino +++ b/examples/WiFiWebClientRepeating/WiFiWebClientRepeating.ino @@ -36,7 +36,7 @@ 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.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -47,9 +47,10 @@ 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 Aruino 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.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 *****************************************************************************************************************************/ #include "defines.h" diff --git a/examples/WiFiWebClientRepeating/defines.h b/examples/WiFiWebClientRepeating/defines.h index d33c5359..24145375 100644 --- a/examples/WiFiWebClientRepeating/defines.h +++ b/examples/WiFiWebClientRepeating/defines.h @@ -25,7 +25,7 @@ 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.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -36,9 +36,10 @@ 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 Aruino 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.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 *****************************************************************************************************************************/ #ifndef defines_h diff --git a/examples/WiFiWebServer/WiFiWebServer.ino b/examples/WiFiWebServer/WiFiWebServer.ino index 072e9449..d67095a5 100644 --- a/examples/WiFiWebServer/WiFiWebServer.ino +++ b/examples/WiFiWebServer/WiFiWebServer.ino @@ -37,7 +37,7 @@ 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.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -48,9 +48,10 @@ 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 Aruino 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.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 *****************************************************************************************************************************/ #include "defines.h" diff --git a/examples/WiFiWebServer/defines.h b/examples/WiFiWebServer/defines.h index d33c5359..24145375 100644 --- a/examples/WiFiWebServer/defines.h +++ b/examples/WiFiWebServer/defines.h @@ -25,7 +25,7 @@ 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.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -36,9 +36,10 @@ 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 Aruino 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.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 *****************************************************************************************************************************/ #ifndef defines_h diff --git a/keywords.txt b/keywords.txt index 9b2a9964..44b145af 100644 --- a/keywords.txt +++ b/keywords.txt @@ -96,6 +96,7 @@ rename KEYWORD2 read KEYWORD2 write KEYWORD2 download KEYWORD2 +downloadOTA KEYWORD2 remove KEYWORD2 ################### diff --git a/library.json b/library.json index e6b15f01..a03c7b30 100644 --- a/library.json +++ b/library.json @@ -9,5 +9,5 @@ }, "frameworks": "arduino", "platforms": "*", - "version": "1.6.2" + "version": "1.7.0" } diff --git a/library.properties b/library.properties index 37db7726..7a31ed53 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=WiFiNINA_Generic -version=1.6.2 +version=1.7.0 author=Arduino maintainer=Khoi Hoang sentence=Enables network connection (local and Internet) and WiFiStorage for SAM DUE, SAMD21, SAMD51, Teensy, AVR Mega, STM32F/L/H/G/WB/MP1, nRF52, NINA_B302_ublox, NINA_B112_ublox, etc., in addition to Arduino MKR WiFi 1010, Arduino MKR VIDOR 4000, Arduino UNO WiFi Rev.2 , Nano 33 IoT. diff --git a/src/WiFiClient_Generic.cpp b/src/WiFiClient_Generic.cpp index c1c7d3e7..efef74cf 100644 --- a/src/WiFiClient_Generic.cpp +++ b/src/WiFiClient_Generic.cpp @@ -24,7 +24,7 @@ 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.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -35,9 +35,10 @@ 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 Aruino WiFiNINA Library v1.6.0 (new Firmware 1.4.0 and WiFiStorage) + 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.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 *****************************************************************************************************************************/ #define _WIFININA_LOGLEVEL_ 1 diff --git a/src/WiFiClient_Generic.h b/src/WiFiClient_Generic.h index 3a74ebbd..cb10ba76 100644 --- a/src/WiFiClient_Generic.h +++ b/src/WiFiClient_Generic.h @@ -24,7 +24,7 @@ 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.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -35,9 +35,10 @@ 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 Aruino WiFiNINA Library v1.6.0 (new Firmware 1.4.0 and WiFiStorage) + 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.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 *****************************************************************************************************************************/ #ifndef WiFiClient_Generic_h diff --git a/src/WiFiNINA_Generic.h b/src/WiFiNINA_Generic.h index eeda5423..d4360227 100644 --- a/src/WiFiNINA_Generic.h +++ b/src/WiFiNINA_Generic.h @@ -24,7 +24,7 @@ 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.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -35,9 +35,10 @@ 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 Aruino WiFiNINA Library v1.6.0 (new Firmware 1.4.0 and WiFiStorage) + 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.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 *****************************************************************************************************************************/ diff --git a/src/WiFiNINA_Pinout_Generic.h b/src/WiFiNINA_Pinout_Generic.h index 5329eb37..b72c43e8 100644 --- a/src/WiFiNINA_Pinout_Generic.h +++ b/src/WiFiNINA_Pinout_Generic.h @@ -24,7 +24,7 @@ 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.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -35,9 +35,10 @@ 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 Aruino WiFiNINA Library v1.6.0 (new Firmware 1.4.0 and WiFiStorage) + 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.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 *****************************************************************************************************************************/ #ifndef WiFiNINA_Pinout_Generic_h diff --git a/src/WiFiSSLClient_Generic.cpp b/src/WiFiSSLClient_Generic.cpp index de9244d4..757d543a 100644 --- a/src/WiFiSSLClient_Generic.cpp +++ b/src/WiFiSSLClient_Generic.cpp @@ -24,7 +24,7 @@ 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.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -35,9 +35,10 @@ 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 Aruino WiFiNINA Library v1.6.0 (new Firmware 1.4.0 and WiFiStorage) + 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.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 *****************************************************************************************************************************/ #include "WiFiSSLClient_Generic.h" diff --git a/src/WiFiSSLClient_Generic.h b/src/WiFiSSLClient_Generic.h index 0b7bb496..5b8b3800 100644 --- a/src/WiFiSSLClient_Generic.h +++ b/src/WiFiSSLClient_Generic.h @@ -24,7 +24,7 @@ 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.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -35,9 +35,10 @@ 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 Aruino WiFiNINA Library v1.6.0 (new Firmware 1.4.0 and WiFiStorage) + 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.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 *****************************************************************************************************************************/ #ifndef WiFiSSLClient_Generic_h diff --git a/src/WiFiServer_Generic.cpp b/src/WiFiServer_Generic.cpp index 7b7bd083..ac7fbc6e 100644 --- a/src/WiFiServer_Generic.cpp +++ b/src/WiFiServer_Generic.cpp @@ -24,7 +24,7 @@ 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.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -35,9 +35,10 @@ 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 Aruino WiFiNINA Library v1.6.0 (new Firmware 1.4.0 and WiFiStorage) + 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.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 *****************************************************************************************************************************/ #include diff --git a/src/WiFiServer_Generic.h b/src/WiFiServer_Generic.h index 2189f5a1..f5648854 100644 --- a/src/WiFiServer_Generic.h +++ b/src/WiFiServer_Generic.h @@ -24,7 +24,7 @@ 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.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -35,9 +35,10 @@ 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 Aruino WiFiNINA Library v1.6.0 (new Firmware 1.4.0 and WiFiStorage) + 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.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 *****************************************************************************************************************************/ #ifndef WiFiServer_Generic_h diff --git a/src/WiFiStorage_Generic.cpp b/src/WiFiStorage_Generic.cpp index a0b2c4a3..086a3f98 100644 --- a/src/WiFiStorage_Generic.cpp +++ b/src/WiFiStorage_Generic.cpp @@ -24,7 +24,7 @@ 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.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -35,9 +35,10 @@ 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 Aruino WiFiNINA Library v1.6.0 (new Firmware 1.4.0 and WiFiStorage) + 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.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 *****************************************************************************************************************************/ #include "WiFiStorage_Generic.h" diff --git a/src/WiFiStorage_Generic.h b/src/WiFiStorage_Generic.h index 6291e9a7..da3ba2a8 100644 --- a/src/WiFiStorage_Generic.h +++ b/src/WiFiStorage_Generic.h @@ -24,7 +24,7 @@ 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.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -35,9 +35,10 @@ 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 Aruino WiFiNINA Library v1.6.0 (new Firmware 1.4.0 and WiFiStorage) + 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.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 *****************************************************************************************************************************/ #ifndef WiFiStorage_Generic_h @@ -94,6 +95,19 @@ class WiFiStorageClass WiFiDrv::downloadFile(url, strlen(url), filename, strlen(filename)); return true; } + + // From v1.7.0 + static bool downloadOTA(const char * url, uint8_t * res_ota_download = NULL) + { + uint8_t const res = WiFiDrv::downloadOTA(url, strlen(url)); + + if (res_ota_download) + *res_ota_download = res; + + bool const success = (res == 0); + return success; + } + ////// static bool remove(String filename) { @@ -119,6 +133,13 @@ class WiFiStorageClass { return download(url.c_str(), filename.c_str()); } + + // From v1.7.0 + static bool download(String url, uint8_t * res_ota_download = NULL) + { + return downloadOTA(url.c_str(), res_ota_download); + } + ////// }; extern WiFiStorageClass WiFiStorage; diff --git a/src/WiFiUdp_Generic.cpp b/src/WiFiUdp_Generic.cpp index 9c8782e8..408717fc 100644 --- a/src/WiFiUdp_Generic.cpp +++ b/src/WiFiUdp_Generic.cpp @@ -24,7 +24,7 @@ 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.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -35,13 +35,19 @@ 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 Aruino WiFiNINA Library v1.6.0 (new Firmware 1.4.0 and WiFiStorage) + 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.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 *****************************************************************************************************************************/ #include +#ifdef KH_WIFININA_DEBUG + #undef KH_WIFININA_DEBUG +#endif +#define KH_WIFININA_DEBUG 3 + extern "C" { #include "utility/debug.h" @@ -94,11 +100,25 @@ uint8_t WiFiUDP::beginMulticast(IPAddress ip, uint16_t port) if (sock != NO_SOCKET_AVAIL) { - ServerDrv::startServer(ip, port, sock, UDP_MULTICAST_MODE); + // KH, Debug test. Original is Server + //ServerDrv::startServer(ip, port, sock, UDP_MULTICAST_MODE); + ServerDrv::startServer(port, sock, UDP_MULTICAST_MODE); + //ServerDrv::startClient(ip, port, sock, UDP_MULTICAST_MODE); + +#if (KH_WIFININA_DEBUG > 2) + Serial.print("WiFiUDP::beginMulticast: Start Client(Server) on port "); + Serial.println(port); +#endif + _sock = sock; _port = port; _parsed = 0; + // KH +#if (KH_WIFININA_DEBUG > 2) + Serial.println("WiFiUDP::beginMulticast: Start Client(Server) OK"); +#endif + return 1; } @@ -146,6 +166,14 @@ int WiFiUDP::beginPacket(IPAddress ip, uint16_t port) if (_sock != NO_SOCKET_AVAIL) { ServerDrv::startClient(uint32_t(ip), port, _sock, UDP_MODE); + +#if (KH_WIFININA_DEBUG > 2) + Serial.print("WiFiUDP::beginPacket: startClient, ip="); + Serial.print(ip); + Serial.print(", port="); + Serial.println(port); +#endif + return 1; } @@ -180,6 +208,14 @@ int WiFiUDP::parsePacket() _parsed = ServerDrv::availData(_sock); +#if (KH_WIFININA_DEBUG > 2) + if (_parsed > 0) + { + Serial.print("WiFiUDP::parsePacket: len="); + Serial.println(_parsed); + } +#endif + return _parsed; } diff --git a/src/WiFiUdp_Generic.h b/src/WiFiUdp_Generic.h index ee784815..f1a8ae38 100644 --- a/src/WiFiUdp_Generic.h +++ b/src/WiFiUdp_Generic.h @@ -24,7 +24,7 @@ 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.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -35,9 +35,10 @@ 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 Aruino WiFiNINA Library v1.6.0 (new Firmware 1.4.0 and WiFiStorage) + 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.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 *****************************************************************************************************************************/ #ifndef WiFiUDP_Generic_h diff --git a/src/WiFi_Generic.cpp b/src/WiFi_Generic.cpp index 69101a55..907e7af2 100644 --- a/src/WiFi_Generic.cpp +++ b/src/WiFi_Generic.cpp @@ -24,7 +24,7 @@ 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.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -35,9 +35,10 @@ 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 Aruino WiFiNINA Library v1.6.0 (new Firmware 1.4.0 and WiFiStorage) + 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.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 *****************************************************************************************************************************/ #include "utility/wifi_drv.h" diff --git a/src/WiFi_Generic.h b/src/WiFi_Generic.h index bff4532b..8ff9242a 100644 --- a/src/WiFi_Generic.h +++ b/src/WiFi_Generic.h @@ -24,7 +24,7 @@ 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.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -35,9 +35,10 @@ 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 Aruino WiFiNINA Library v1.6.0 (new Firmware 1.4.0 and WiFiStorage) + 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.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 *****************************************************************************************************************************/ #ifndef WiFi_Generic_h @@ -56,6 +57,7 @@ extern "C" } #include "IPAddress.h" + #include "WiFiClient_Generic.h" #include "WiFiSSLClient_Generic.h" #include "WiFiServer_Generic.h" diff --git a/src/utility/WiFiSocketBuffer.cpp b/src/utility/WiFiSocketBuffer.cpp index dfd4d0fb..fd60497f 100644 --- a/src/utility/WiFiSocketBuffer.cpp +++ b/src/utility/WiFiSocketBuffer.cpp @@ -24,7 +24,7 @@ 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.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -35,9 +35,10 @@ 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 Aruino WiFiNINA Library v1.6.0 (new Firmware 1.4.0 and WiFiStorage) + 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.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 *****************************************************************************************************************************/ #include diff --git a/src/utility/WiFiSocketBuffer.h b/src/utility/WiFiSocketBuffer.h index 8407e77d..339226f8 100644 --- a/src/utility/WiFiSocketBuffer.h +++ b/src/utility/WiFiSocketBuffer.h @@ -24,7 +24,7 @@ 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.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -35,9 +35,10 @@ 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 Aruino WiFiNINA Library v1.6.0 (new Firmware 1.4.0 and WiFiStorage) + 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.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 *****************************************************************************************************************************/ #ifndef WiFiSocketBuffer_h diff --git a/src/utility/debug.h b/src/utility/debug.h index 43561d8f..47d80200 100644 --- a/src/utility/debug.h +++ b/src/utility/debug.h @@ -24,7 +24,7 @@ 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.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -35,9 +35,10 @@ 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 Aruino WiFiNINA Library v1.6.0 (new Firmware 1.4.0 and WiFiStorage) + 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.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 *****************************************************************************************************************************/ //*********************************************/ diff --git a/src/utility/server_drv.cpp b/src/utility/server_drv.cpp index 6989127f..51f53649 100644 --- a/src/utility/server_drv.cpp +++ b/src/utility/server_drv.cpp @@ -24,7 +24,7 @@ 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.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -35,13 +35,19 @@ 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 Aruino WiFiNINA Library v1.6.0 (new Firmware 1.4.0 and WiFiStorage) + 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.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 *****************************************************************************************************************************/ #define _DEBUG_ +#if defined(KH_WIFININA_DEBUG) +#undef KH_WIFININA_DEBUG +#endif +#define KH_WIFININA_DEBUG 1 + #include "server_drv.h" #include "Arduino.h" @@ -265,9 +271,19 @@ uint8_t ServerDrv::getClientState(uint8_t sock) uint16_t ServerDrv::availData(uint8_t sock) { - if (!SpiDrv::available()) { + if (!SpiDrv::available()) + { + // KH +#if (KH_WIFININA_DEBUG > 2) + Serial.println("ServerDrv::availData: SpiDrv not available"); +#endif return 0; } + + // KH +#if (KH_WIFININA_DEBUG > 2) + Serial.println("ServerDrv::availData: SpiDrv OK"); +#endif WAIT_FOR_SLAVE_SELECT(); // Send Command @@ -290,6 +306,12 @@ uint16_t ServerDrv::availData(uint8_t sock) SpiDrv::waitResponseCmd(AVAIL_DATA_TCP_CMD, PARAM_NUMS_1, (uint8_t*)&len, &_dataLen); SpiDrv::spiSlaveDeselect(); + + // KH +#if (KH_WIFININA_DEBUG > 2) + Serial.print("ServerDrv::availData: len ="); + Serial.println(len); +#endif return len; } diff --git a/src/utility/server_drv.h b/src/utility/server_drv.h index fd736872..49eaddd6 100644 --- a/src/utility/server_drv.h +++ b/src/utility/server_drv.h @@ -24,7 +24,7 @@ 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.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -35,9 +35,10 @@ 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 Aruino WiFiNINA Library v1.6.0 (new Firmware 1.4.0 and WiFiStorage) + 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.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 *****************************************************************************************************************************/ #ifndef Server_Drv_h diff --git a/src/utility/spi_drv.cpp b/src/utility/spi_drv.cpp index a56d1fc3..fa2641ca 100644 --- a/src/utility/spi_drv.cpp +++ b/src/utility/spi_drv.cpp @@ -24,7 +24,7 @@ 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.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -35,9 +35,10 @@ 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 Aruino WiFiNINA Library v1.6.0 (new Firmware 1.4.0 and WiFiStorage) + 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.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 *****************************************************************************************************************************/ #include "Arduino.h" @@ -49,7 +50,7 @@ #include "WiFiNINA_Pinout_Generic.h" #if defined(KH_WIFININA_DEBUG) -#undef KH_WIFININA_DEBUG + #undef KH_WIFININA_DEBUG #endif #define KH_WIFININA_DEBUG 0 diff --git a/src/utility/spi_drv.h b/src/utility/spi_drv.h index 62bc10cc..463cf63e 100644 --- a/src/utility/spi_drv.h +++ b/src/utility/spi_drv.h @@ -24,7 +24,7 @@ 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.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -35,9 +35,10 @@ 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 Aruino WiFiNINA Library v1.6.0 (new Firmware 1.4.0 and WiFiStorage) + 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.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 *****************************************************************************************************************************/ #ifndef SPI_Drv_h diff --git a/src/utility/wifi_drv.cpp b/src/utility/wifi_drv.cpp index 19d04bd1..1c0f20ba 100644 --- a/src/utility/wifi_drv.cpp +++ b/src/utility/wifi_drv.cpp @@ -24,7 +24,7 @@ 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.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -35,9 +35,10 @@ 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 Aruino WiFiNINA Library v1.6.0 (new Firmware 1.4.0 and WiFiStorage) + 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.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 *****************************************************************************************************************************/ #include @@ -986,17 +987,21 @@ int8_t WiFiDrv::wifiSetApNetwork(const char* ssid, uint8_t ssid_len, uint8_t cha { WARN("error waitResponse"); - //KH +//KH +#if (KH_WIFININA_DEBUG > 0) Serial.println("WiFiDrv-wifiSetApNetwork: waitResponseCmd = WL_FAILURE"); +#endif _data = WL_FAILURE; } SpiDrv::spiSlaveDeselect(); - //KH +//KH +#if (KH_WIFININA_DEBUG > 0) Serial.print("WiFiDrv-wifiSetApNetwork: _data = "); Serial.println(_data); +#endif return (_data == WIFI_SPI_ACK) ? WL_SUCCESS : WL_FAILURE; } @@ -1288,6 +1293,45 @@ int8_t WiFiDrv::downloadFile(const char* url, uint8_t url_len, const char *filen return _data; } +// New from v1.7.0 +int8_t WiFiDrv::downloadOTA(const char* url, uint8_t url_len) +{ + WAIT_FOR_SLAVE_SELECT(); + // Send Command + SpiDrv::sendCmd(DOWNLOAD_OTA, PARAM_NUMS_1); + SpiDrv::sendParam((uint8_t*)url, url_len, LAST_PARAM); + + // pad to multiple of 4 + int commandSize = 5 + url_len; + + while (commandSize % 4) + { + SpiDrv::readChar(); + commandSize++; + } + + SpiDrv::spiSlaveDeselect(); + //Wait the reply elaboration + SpiDrv::waitForSlaveReady(); + SpiDrv::spiSlaveSelect(); + + // Wait for reply + uint8_t _data = 0; + uint8_t _dataLen = 0; + + if (!SpiDrv::waitResponseCmd(DOWNLOAD_OTA, PARAM_NUMS_1, &_data, &_dataLen)) + { + WARN("error waitResponse"); + _data = WL_FAILURE; + } + + SpiDrv::spiSlaveDeselect(); + + return _data; +} + +////// + int8_t WiFiDrv::renameFile(const char * old_file_name, uint8_t const old_file_name_len, const char * new_file_name, uint8_t const new_file_name_len) { WAIT_FOR_SLAVE_SELECT(); diff --git a/src/utility/wifi_drv.h b/src/utility/wifi_drv.h index 5cfa7885..6df3359a 100644 --- a/src/utility/wifi_drv.h +++ b/src/utility/wifi_drv.h @@ -24,7 +24,7 @@ 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.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -35,9 +35,10 @@ 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 Aruino WiFiNINA Library v1.6.0 (new Firmware 1.4.0 and WiFiStorage) + 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.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 *****************************************************************************************************************************/ #ifndef WiFi_Drv_h @@ -320,6 +321,11 @@ class WiFiDrv // New from v1.6.0 static int8_t downloadFile(const char* url, uint8_t url_len, const char *filename, uint8_t filename_len); + + // New from v1.7.0 + static int8_t downloadOTA(const char* url, uint8_t url_len); + ////// + static int8_t renameFile(const char * old_file_name, uint8_t const old_file_name_len, const char * new_file_name, uint8_t const new_file_name_len); static int8_t fileOperation(uint8_t operation, const char *filename, uint8_t filename_len, uint32_t offset, uint8_t* buffer, uint32_t len); diff --git a/src/utility/wifi_spi.h b/src/utility/wifi_spi.h index bb6fc64d..dd77c170 100644 --- a/src/utility/wifi_spi.h +++ b/src/utility/wifi_spi.h @@ -24,7 +24,7 @@ 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.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -35,9 +35,10 @@ 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 Aruino WiFiNINA Library v1.6.0 (new Firmware 1.4.0 and WiFiStorage) + 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.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 *****************************************************************************************************************************/ #ifndef WiFi_Spi_h @@ -55,7 +56,7 @@ #define TIMEOUT_CHAR 1000 -//#define MAX_SOCK_NUM 4 /**< Maxmium number of socket */ +//#define MAX_SOCK_NUM 4 /**< Maxmimum number of socket */ #define NO_SOCKET_AVAIL 255 #define START_CMD 0xE0 @@ -134,6 +135,10 @@ enum DOWNLOAD_FILE = 0x64, APPLY_OTA_COMMAND = 0x65, RENAME_FILE = 0x66, + + // New from v1.7.0 + DOWNLOAD_OTA = 0x67, + ////// }; diff --git a/src/utility/wl_definitions.h b/src/utility/wl_definitions.h index 6f566f69..f794596e 100644 --- a/src/utility/wl_definitions.h +++ b/src/utility/wl_definitions.h @@ -24,7 +24,7 @@ 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.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -35,9 +35,10 @@ 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 Aruino WiFiNINA Library v1.6.0 (new Firmware 1.4.0 and WiFiStorage) + 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.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 *****************************************************************************************************************************/ /***************************** wl_definitions.h diff --git a/src/utility/wl_types.h b/src/utility/wl_types.h index 5097d965..7aa0b601 100644 --- a/src/utility/wl_types.h +++ b/src/utility/wl_types.h @@ -24,7 +24,7 @@ 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.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -35,9 +35,10 @@ 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 Aruino WiFiNINA Library v1.6.0 (new Firmware 1.4.0 and WiFiStorage) + 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.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 *****************************************************************************************************************************/ /******************************* * wl_types.h