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

Commit

Permalink
v1.8.14-4 to fix bugs
Browse files Browse the repository at this point in the history
### Releases v1.8.14-4

1. Fix bugs by using some unmerged PRs from original WiFiNINA, such as:

 - [WiFi.config - setting defaults as the Ethernet library #219](arduino-libraries/WiFiNINA#219)
 - [Fix WiFiClient watchdog usage #211](arduino-libraries/WiFiNINA#211)
 - [Watchdog trigger changes #208](arduino-libraries/WiFiNINA#208)
 - [added server.accept() #204](arduino-libraries/WiFiNINA#204)
 - [Fix PinStatus error on some platforms #185](arduino-libraries/WiFiNINA#185)
 
2. Add many WiFiMulti-related examples in [WiFiMulti](https://github.com/khoih-prog/WiFiNINA_Generic/tree/master/examples/WiFiMulti)
3. Update examples
4. Update `Packages' Patches`
  • Loading branch information
khoih-prog authored May 2, 2022
1 parent 4833e19 commit 9a77b89
Show file tree
Hide file tree
Showing 34 changed files with 377 additions and 1,142 deletions.
7 changes: 4 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ If you don't find anything, please [open a new issue](https://github.com/khoih-p
Please ensure to specify the following:

* Arduino IDE version (e.g. 1.8.19) or Platform.io version
* Core Version (e.g. Arduino SAMD core v1.8.12, Adafruit SAMD core v1.7.5, Arduino-mbed RP2040 v2.6.1)
* Core Version (e.g. Arduino SAMD core v1.8.13, Adafruit SAMD core v1.7.10, Arduino-mbed RP2040 v3.0.1)
* Board type (e.g. NANO_RP2040_CONNECT, RASPBERRY_PI_PICO, ADAFRUIT_FEATHER_RP2040, GENERIC_RP2040, etc.)
* Contextual information (e.g. what you were trying to achieve)
* Simplest possible steps to reproduce
Expand All @@ -28,10 +28,10 @@ Please ensure to specify the following:

```
Arduino IDE version: 1.8.19
Arduino-mbed RP2040 v2.6.1
Arduino-mbed RP2040 v3.0.1
NANO_RP2040_CONNECT Module
OS: Ubuntu 20.04 LTS
Linux xy-Inspiron-3593 5.4.0-90-generic #101-Ubuntu SMP Fri Oct 15 20:00:55 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Linux xy-Inspiron-3593 5.13.0-40-generic #45~20.04.1-Ubuntu SMP Mon Apr 4 09:38:31 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Context:
I encountered an endless loop while trying to connect to Local WiFi.
Expand All @@ -53,3 +53,4 @@ There are usually some outstanding feature requests in the [existing issues list
### Sending Pull Requests

Pull Requests with changes and fixes are also welcome!

752 changes: 164 additions & 588 deletions README.md

Large diffs are not rendered by default.

17 changes: 17 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
## Table of Contents

* [Changelog](#changelog)
* [Releases v1.8.14-4](#releases-v1814-4)
* [Releases v1.8.14-3](#releases-v1814-3)
* [Releases v1.8.14-2](#releases-v1814-2)
* [Releases v1.8.14-1](#releases-v1814-1)
Expand Down Expand Up @@ -39,6 +40,22 @@

## Changelog

### Releases v1.8.14-4

1. Fix bugs by using some unmerged PRs from original WiFiNINA, such as:

- [WiFi.config - setting defaults as the Ethernet library #219](https://github.com/arduino-libraries/WiFiNINA/pull/219)
- [Fix WiFiClient watchdog usage #211](https://github.com/arduino-libraries/WiFiNINA/pull/211)
- [Watchdog trigger changes #208](https://github.com/arduino-libraries/WiFiNINA/pull/208)
- [added server.accept() #204](https://github.com/arduino-libraries/WiFiNINA/pull/204)
- [Fix PinStatus error on some platforms #185](https://github.com/arduino-libraries/WiFiNINA/pull/185)

2. Add many WiFiMulti-related examples in [WiFiMulti](https://github.com/khoih-prog/WiFiNINA_Generic/tree/master/examples/WiFiMulti)
3. Update examples
4. Update `Packages' Patches`



### Releases v1.8.14-3

1. Fix issue with UDP for Nano_RP2040_Connect using arduino-pico core. Check [UDP not running with WiFiNINA library (Example WiFiUdpSendReceiveString) #376](https://github.com/earlephilhower/arduino-pico/issues/376)
Expand Down
10 changes: 10 additions & 0 deletions keywords.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,16 @@ noLowPowerMode KEYWORD2
ping KEYWORD2
setTimeout KEYWORD2

#############
# WiFiServer
#############

available KEYWORD2
accept KEYWORD2
begin KEYWORD2
write KEYWORD2
status KEYWORD2

################
# WiFiSSLClient
################
Expand Down
11 changes: 10 additions & 1 deletion library.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "WiFiNINA_Generic",
"version": "1.8.14-3",
"version": "1.8.14-4",
"keywords": "wifi, wi-fi, WiFiNINA, NINA-B302-ublox, W101, W102, shield, Teensy, SAM DUE, SAMD, STM32, nRF52, rpi-pico, rp2040, Credentials, Manager, nano-rp2040-connect, raspberry-pi-pico, mega, 32u4",
"description": "Enables network connection (local and Internet) and WiFiStorage for SAM DUE, SAMD21, SAMD51, Teensy, AVR (328P, 32u4, 16u4, etc.), Mega, STM32F/L/H/G/WB/MP1, nRF52, NINA_B302_ublox, NINA_B112_ublox, RP2040-based boards, etc. in addition to Arduino MKR WiFi 1010, Arduino MKR VIDOR 4000, Arduino UNO WiFi Rev.2, Nano 33 IoT, Nano RP2040 Connect",
"authors": [
Expand Down Expand Up @@ -29,6 +29,15 @@
"tests"
]
},
"dependencies":
[
{
"owner": "khoih-prog",
"name": "WiFiMulti_Generic",
"version": ">=1.1.1",
"platforms": ["*"]
}
],
"frameworks": "*",
"platforms": "*",
"examples": "examples/*/*/*.ino",
Expand Down
3 changes: 2 additions & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
name=WiFiNINA_Generic
version=1.8.14-3
version=1.8.14-4
author=Arduino, Khoi Hoang <[email protected]>
maintainer=Khoi Hoang <[email protected]>
sentence=Enables network connection (local and Internet) and WiFiStorage for SAM DUE, SAMD21, SAMD51, Teensy, AVR (328P, 32u4, 16u4, etc.), Mega, STM32F/L/H/G/WB/MP1, nRF52, NINA_B302_ublox, NINA_B112_ublox, RP2040-based boards, etc. in addition to Arduino MKR WiFi 1010, Arduino MKR VIDOR 4000, Arduino UNO WiFi Rev.2, Nano 33 IoT, Nano RP2040 Connect
paragraph=With this library you can instantiate Servers, Clients and send/receive TCP/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.
category=Communication
url=https://github.com/khoih-prog/WiFiNINA_Generic
architectures=*
depends=WiFiMulti_Generic
includes=WiFiNINA_Generic.h
7 changes: 7 additions & 0 deletions platformio/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,15 @@ upload_speed = 921600

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

lib_deps =
; PlatformIO 4.x
; WiFiMulti_Generic@>=1.1.1

; PlatformIO 5.x
khoih-prog/WiFiMulti_Generic@>=1.1.1

build_flags =
; set your debug output (default=Serial)
Expand Down
50 changes: 26 additions & 24 deletions src/WiFiClient_Generic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,34 +24,18 @@
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.8.14-3
Version: 1.8.14-4
Version Modified By Date Comments
------- ----------- ---------- -----------
1.5.0 K Hoang 27/03/2020 Initial coding to support other boards besides Nano-33 IoT, MKRWIFI1010, MKRVIDOR4000, etc.
such as Arduino Mega, Teensy, SAMD21, SAMD51, STM32, etc
1.5.1 K Hoang 22/04/2020 Add support to nRF52 boards, such as AdaFruit Feather nRF52832, nRF52840 Express, BlueFruit Sense,
Itsy-Bitsy nRF52840 Express, Metro nRF52840 Express, etc.
1.5.2 K Hoang 09/05/2020 Port FirmwareUpdater to permit nRF52, Teensy, SAMD21, SAMD51, etc. boards to update WiFiNINA
W101/W102 firmware and SSL certs on IDE. Update default pin-outs.
1.5.3 K Hoang 14/07/2020 Add function to support new WebSockets2_Generic Library
1.6.0 K Hoang 19/07/2020 Sync with Arduino WiFiNINA Library v1.6.0 (new Firmware 1.4.0 and WiFiStorage)
1.6.1 K Hoang 24/07/2020 Add support to all STM32F/L/H/G/WB/MP1 and Seeeduino SAMD21/SAMD51 boards
1.6.2 K Hoang 28/07/2020 Fix WiFiStorage bug from v1.6.0
1.7.0 K Hoang 06/08/2020 Sync with Arduino WiFiNINA Library v1.7.0 : Add downloadOTA() and verify length/CRC
1.7.1 K Hoang 27/08/2020 Sync with Arduino WiFiNINA Library v1.7.1 : new Firmware 1.4.1
1.7.2 K Hoang 05/11/2020 Add support to Adafruit Airlift M4 boards: METRO_M4_AIRLIFT_LITE, PYBADGE_AIRLIFT_M4
1.8.0 K Hoang 19/11/2020 Sync with Arduino WiFiNINA Library v1.8.0 : new Firmware 1.4.2. Add WiFiBearSSLClient.
1.8.2 K Hoang 02/02/2021 Sync with WiFiNINA v1.8.2 : new Firmware 1.4.3. Add possibility to resend data if lwip_send fails
1.8.5 K Hoang 20/03/2021 Sync with WiFiNINA v1.8.5 : Feed watchdog within busy-wait-loop within connectBearSSL
1.8.10 K Hoang 25/05/2021 Sync with WiFiNINA v1.8.10 : Support RP2040, new FW v1.4.5
1.8.10-1 K Hoang 29/05/2021 Fix PinStatus compile error for some platforms
1.8.11 K Hoang 14/06/2021 Sync with WiFiNINA v1.8.11 : Support RP2040, new FW v1.4.6
1.8.12 K Hoang 30/06/2021 Sync with WiFiNINA v1.8.12 : new FW v1.4.7. Add support to most AVR boards.
...
1.8.13 K Hoang 03/08/2021 Sync with WiFiNINA v1.8.13 : new FW v1.4.8. Add support to ADAFRUIT_MATRIXPORTAL_M4_EXPRESS
1.8.14-1 K Hoang 25/11/2021 Fix examples to support ATmega4809 such as UNO_WIFI_REV2 and NANO_EVERY
1.8.14-2 K Hoang 31/12/2021 Add support to Nano_RP2040_Connect using arduino-pico core
1.8.14-3 K Hoang 31/12/2021 Fix issue with UDP for Nano_RP2040_Connect using arduino-pico core
1.8.14-4 K Hoang 01/05/2022 Fix bugs by using some PRs from original WiFiNINA. Add WiFiMulti-related examples
***********************************************************************************************************************************/

#define _WIFININA_LOGLEVEL_ 1
Expand Down Expand Up @@ -109,9 +93,12 @@ int WiFiClient::connect(IPAddress ip, uint16_t port)

unsigned long start = millis();

// wait 4 second for the connection to close
// wait 10 second for the connection to close
while (!connected() && millis() - start < 10000)
{
delay(1);
WiFi.feedWatchdog();
}

if (!connected())
{
Expand Down Expand Up @@ -144,9 +131,12 @@ int WiFiClient::connectSSL(IPAddress ip, uint16_t port)

unsigned long start = millis();

// wait 4 second for the connection to close
// wait 10 second for the connection to close
while (!connected() && millis() - start < 10000)
{
delay(1);
WiFi.feedWatchdog();
}

if (!connected())
{
Expand Down Expand Up @@ -178,9 +168,12 @@ int WiFiClient::connectSSL(const char *host, uint16_t port)

unsigned long start = millis();

// wait 4 second for the connection to close
// wait 10 second for the connection to close
while (!connected() && millis() - start < 10000)
{
delay(1);
WiFi.feedWatchdog();
}

if (!connected())
{
Expand Down Expand Up @@ -214,9 +207,12 @@ int WiFiClient::connectBearSSL(IPAddress ip, uint16_t port)

unsigned long start = millis();

// wait 4 second for the connection to close
// wait 10 second for the connection to close
while (!connected() && millis() - start < 10000)
{
delay(1);
WiFi.feedWatchdog();
}

if (!connected())
{
Expand Down Expand Up @@ -249,9 +245,12 @@ int WiFiClient::connectBearSSL(const char *host, uint16_t port)

unsigned long start = millis();

// wait 4 second for the connection to close
// wait 10 second for the connection to close
while (!connected() && millis() - start < 10000)
{
delay(1);
WiFi.feedWatchdog();
}

if (!connected())
{
Expand Down Expand Up @@ -395,7 +394,10 @@ void WiFiClient::stop()

// wait maximum 5 secs for the connection to close
while (status() != CLOSED && ++count < 50)
{
delay(100);
WiFi.feedWatchdog();
}

WiFiSocketBuffer.close(_sock);
_sock = 255;
Expand Down
22 changes: 3 additions & 19 deletions src/WiFiClient_Generic.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,34 +24,18 @@
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.8.14-3
Version: 1.8.14-4
Version Modified By Date Comments
------- ----------- ---------- -----------
1.5.0 K Hoang 27/03/2020 Initial coding to support other boards besides Nano-33 IoT, MKRWIFI1010, MKRVIDOR4000, etc.
such as Arduino Mega, Teensy, SAMD21, SAMD51, STM32, etc
1.5.1 K Hoang 22/04/2020 Add support to nRF52 boards, such as AdaFruit Feather nRF52832, nRF52840 Express, BlueFruit Sense,
Itsy-Bitsy nRF52840 Express, Metro nRF52840 Express, etc.
1.5.2 K Hoang 09/05/2020 Port FirmwareUpdater to permit nRF52, Teensy, SAMD21, SAMD51, etc. boards to update WiFiNINA
W101/W102 firmware and SSL certs on IDE. Update default pin-outs.
1.5.3 K Hoang 14/07/2020 Add function to support new WebSockets2_Generic Library
1.6.0 K Hoang 19/07/2020 Sync with Arduino WiFiNINA Library v1.6.0 (new Firmware 1.4.0 and WiFiStorage)
1.6.1 K Hoang 24/07/2020 Add support to all STM32F/L/H/G/WB/MP1 and Seeeduino SAMD21/SAMD51 boards
1.6.2 K Hoang 28/07/2020 Fix WiFiStorage bug from v1.6.0
1.7.0 K Hoang 06/08/2020 Sync with Arduino WiFiNINA Library v1.7.0 : Add downloadOTA() and verify length/CRC
1.7.1 K Hoang 27/08/2020 Sync with Arduino WiFiNINA Library v1.7.1 : new Firmware 1.4.1
1.7.2 K Hoang 05/11/2020 Add support to Adafruit Airlift M4 boards: METRO_M4_AIRLIFT_LITE, PYBADGE_AIRLIFT_M4
1.8.0 K Hoang 19/11/2020 Sync with Arduino WiFiNINA Library v1.8.0 : new Firmware 1.4.2. Add WiFiBearSSLClient.
1.8.2 K Hoang 02/02/2021 Sync with WiFiNINA v1.8.2 : new Firmware 1.4.3. Add possibility to resend data if lwip_send fails
1.8.5 K Hoang 20/03/2021 Sync with WiFiNINA v1.8.5 : Feed watchdog within busy-wait-loop within connectBearSSL
1.8.10 K Hoang 25/05/2021 Sync with WiFiNINA v1.8.10 : Support RP2040, new FW v1.4.5
1.8.10-1 K Hoang 29/05/2021 Fix PinStatus compile error for some platforms
1.8.11 K Hoang 14/06/2021 Sync with WiFiNINA v1.8.11 : Support RP2040, new FW v1.4.6
1.8.12 K Hoang 30/06/2021 Sync with WiFiNINA v1.8.12 : new FW v1.4.7. Add support to most AVR boards.
...
1.8.13 K Hoang 03/08/2021 Sync with WiFiNINA v1.8.13 : new FW v1.4.8. Add support to ADAFRUIT_MATRIXPORTAL_M4_EXPRESS
1.8.14-1 K Hoang 25/11/2021 Fix examples to support ATmega4809 such as UNO_WIFI_REV2 and NANO_EVERY
1.8.14-2 K Hoang 31/12/2021 Add support to Nano_RP2040_Connect using arduino-pico core
1.8.14-3 K Hoang 31/12/2021 Fix issue with UDP for Nano_RP2040_Connect using arduino-pico core
1.8.14-4 K Hoang 01/05/2022 Fix bugs by using some PRs from original WiFiNINA. Add WiFiMulti-related examples
***********************************************************************************************************************************/

#pragma once
Expand Down
22 changes: 3 additions & 19 deletions src/WiFiNINA_Generic.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,34 +24,18 @@
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.8.14-3
Version: 1.8.14-4
Version Modified By Date Comments
------- ----------- ---------- -----------
1.5.0 K Hoang 27/03/2020 Initial coding to support other boards besides Nano-33 IoT, MKRWIFI1010, MKRVIDOR4000, etc.
such as Arduino Mega, Teensy, SAMD21, SAMD51, STM32, etc
1.5.1 K Hoang 22/04/2020 Add support to nRF52 boards, such as AdaFruit Feather nRF52832, nRF52840 Express, BlueFruit Sense,
Itsy-Bitsy nRF52840 Express, Metro nRF52840 Express, etc.
1.5.2 K Hoang 09/05/2020 Port FirmwareUpdater to permit nRF52, Teensy, SAMD21, SAMD51, etc. boards to update WiFiNINA
W101/W102 firmware and SSL certs on IDE. Update default pin-outs.
1.5.3 K Hoang 14/07/2020 Add function to support new WebSockets2_Generic Library
1.6.0 K Hoang 19/07/2020 Sync with Arduino WiFiNINA Library v1.6.0 (new Firmware 1.4.0 and WiFiStorage)
1.6.1 K Hoang 24/07/2020 Add support to all STM32F/L/H/G/WB/MP1 and Seeeduino SAMD21/SAMD51 boards
1.6.2 K Hoang 28/07/2020 Fix WiFiStorage bug from v1.6.0
1.7.0 K Hoang 06/08/2020 Sync with Arduino WiFiNINA Library v1.7.0 : Add downloadOTA() and verify length/CRC
1.7.1 K Hoang 27/08/2020 Sync with Arduino WiFiNINA Library v1.7.1 : new Firmware 1.4.1
1.7.2 K Hoang 05/11/2020 Add support to Adafruit Airlift M4 boards: METRO_M4_AIRLIFT_LITE, PYBADGE_AIRLIFT_M4
1.8.0 K Hoang 19/11/2020 Sync with Arduino WiFiNINA Library v1.8.0 : new Firmware 1.4.2. Add WiFiBearSSLClient.
1.8.2 K Hoang 02/02/2021 Sync with WiFiNINA v1.8.2 : new Firmware 1.4.3. Add possibility to resend data if lwip_send fails
1.8.5 K Hoang 20/03/2021 Sync with WiFiNINA v1.8.5 : Feed watchdog within busy-wait-loop within connectBearSSL
1.8.10 K Hoang 25/05/2021 Sync with WiFiNINA v1.8.10 : Support RP2040, new FW v1.4.5
1.8.10-1 K Hoang 29/05/2021 Fix PinStatus compile error for some platforms
1.8.11 K Hoang 14/06/2021 Sync with WiFiNINA v1.8.11 : Support RP2040, new FW v1.4.6
1.8.12 K Hoang 30/06/2021 Sync with WiFiNINA v1.8.12 : new FW v1.4.7. Add support to most AVR boards.
...
1.8.13 K Hoang 03/08/2021 Sync with WiFiNINA v1.8.13 : new FW v1.4.8. Add support to ADAFRUIT_MATRIXPORTAL_M4_EXPRESS
1.8.14-1 K Hoang 25/11/2021 Fix examples to support ATmega4809 such as UNO_WIFI_REV2 and NANO_EVERY
1.8.14-2 K Hoang 31/12/2021 Add support to Nano_RP2040_Connect using arduino-pico core
1.8.14-3 K Hoang 31/12/2021 Fix issue with UDP for Nano_RP2040_Connect using arduino-pico core
1.8.14-4 K Hoang 01/05/2022 Fix bugs by using some PRs from original WiFiNINA. Add WiFiMulti-related examples
***********************************************************************************************************************************/

#pragma once
Expand Down
Loading

0 comments on commit 9a77b89

Please sign in to comment.