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

Commit 9a77b89

Browse files
authored
v1.8.14-4 to fix bugs
### 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`
1 parent 4833e19 commit 9a77b89

34 files changed

+377
-1142
lines changed

CONTRIBUTING.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ If you don't find anything, please [open a new issue](https://github.com/khoih-p
1515
Please ensure to specify the following:
1616

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

2929
```
3030
Arduino IDE version: 1.8.19
31-
Arduino-mbed RP2040 v2.6.1
31+
Arduino-mbed RP2040 v3.0.1
3232
NANO_RP2040_CONNECT Module
3333
OS: Ubuntu 20.04 LTS
34-
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
34+
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
3535
3636
Context:
3737
I encountered an endless loop while trying to connect to Local WiFi.
@@ -53,3 +53,4 @@ There are usually some outstanding feature requests in the [existing issues list
5353
### Sending Pull Requests
5454

5555
Pull Requests with changes and fixes are also welcome!
56+

README.md

Lines changed: 164 additions & 588 deletions
Large diffs are not rendered by default.

changelog.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
## Table of Contents
1313

1414
* [Changelog](#changelog)
15+
* [Releases v1.8.14-4](#releases-v1814-4)
1516
* [Releases v1.8.14-3](#releases-v1814-3)
1617
* [Releases v1.8.14-2](#releases-v1814-2)
1718
* [Releases v1.8.14-1](#releases-v1814-1)
@@ -39,6 +40,22 @@
3940

4041
## Changelog
4142

43+
### Releases v1.8.14-4
44+
45+
1. Fix bugs by using some unmerged PRs from original WiFiNINA, such as:
46+
47+
- [WiFi.config - setting defaults as the Ethernet library #219](https://github.com/arduino-libraries/WiFiNINA/pull/219)
48+
- [Fix WiFiClient watchdog usage #211](https://github.com/arduino-libraries/WiFiNINA/pull/211)
49+
- [Watchdog trigger changes #208](https://github.com/arduino-libraries/WiFiNINA/pull/208)
50+
- [added server.accept() #204](https://github.com/arduino-libraries/WiFiNINA/pull/204)
51+
- [Fix PinStatus error on some platforms #185](https://github.com/arduino-libraries/WiFiNINA/pull/185)
52+
53+
2. Add many WiFiMulti-related examples in [WiFiMulti](https://github.com/khoih-prog/WiFiNINA_Generic/tree/master/examples/WiFiMulti)
54+
3. Update examples
55+
4. Update `Packages' Patches`
56+
57+
58+
4259
### Releases v1.8.14-3
4360

4461
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)

keywords.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,16 @@ noLowPowerMode KEYWORD2
6464
ping KEYWORD2
6565
setTimeout KEYWORD2
6666

67+
#############
68+
# WiFiServer
69+
#############
70+
71+
available KEYWORD2
72+
accept KEYWORD2
73+
begin KEYWORD2
74+
write KEYWORD2
75+
status KEYWORD2
76+
6777
################
6878
# WiFiSSLClient
6979
################

library.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "WiFiNINA_Generic",
3-
"version": "1.8.14-3",
3+
"version": "1.8.14-4",
44
"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",
55
"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",
66
"authors": [
@@ -29,6 +29,15 @@
2929
"tests"
3030
]
3131
},
32+
"dependencies":
33+
[
34+
{
35+
"owner": "khoih-prog",
36+
"name": "WiFiMulti_Generic",
37+
"version": ">=1.1.1",
38+
"platforms": ["*"]
39+
}
40+
],
3241
"frameworks": "*",
3342
"platforms": "*",
3443
"examples": "examples/*/*/*.ino",

library.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
name=WiFiNINA_Generic
2-
version=1.8.14-3
2+
version=1.8.14-4
33
author=Arduino, Khoi Hoang <[email protected]>
44
maintainer=Khoi Hoang <[email protected]>
55
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
66
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.
77
category=Communication
88
url=https://github.com/khoih-prog/WiFiNINA_Generic
99
architectures=*
10+
depends=WiFiMulti_Generic
1011
includes=WiFiNINA_Generic.h

platformio/platformio.ini

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,15 @@ upload_speed = 921600
4949

5050
; Checks for the compatibility with frameworks and dev/platforms
5151
lib_compat_mode = strict
52+
lib_ldf_mode = chain+
53+
;lib_ldf_mode = deep+
5254

5355
lib_deps =
56+
; PlatformIO 4.x
57+
; WiFiMulti_Generic@>=1.1.1
58+
59+
; PlatformIO 5.x
60+
khoih-prog/WiFiMulti_Generic@>=1.1.1
5461

5562
build_flags =
5663
; set your debug output (default=Serial)

src/WiFiClient_Generic.cpp

Lines changed: 26 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -24,34 +24,18 @@
2424
License along with this library; if not, write to the Free Software
2525
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
2626
27-
Version: 1.8.14-3
27+
Version: 1.8.14-4
2828
2929
Version Modified By Date Comments
3030
------- ----------- ---------- -----------
3131
1.5.0 K Hoang 27/03/2020 Initial coding to support other boards besides Nano-33 IoT, MKRWIFI1010, MKRVIDOR4000, etc.
3232
such as Arduino Mega, Teensy, SAMD21, SAMD51, STM32, etc
33-
1.5.1 K Hoang 22/04/2020 Add support to nRF52 boards, such as AdaFruit Feather nRF52832, nRF52840 Express, BlueFruit Sense,
34-
Itsy-Bitsy nRF52840 Express, Metro nRF52840 Express, etc.
35-
1.5.2 K Hoang 09/05/2020 Port FirmwareUpdater to permit nRF52, Teensy, SAMD21, SAMD51, etc. boards to update WiFiNINA
36-
W101/W102 firmware and SSL certs on IDE. Update default pin-outs.
37-
1.5.3 K Hoang 14/07/2020 Add function to support new WebSockets2_Generic Library
38-
1.6.0 K Hoang 19/07/2020 Sync with Arduino WiFiNINA Library v1.6.0 (new Firmware 1.4.0 and WiFiStorage)
39-
1.6.1 K Hoang 24/07/2020 Add support to all STM32F/L/H/G/WB/MP1 and Seeeduino SAMD21/SAMD51 boards
40-
1.6.2 K Hoang 28/07/2020 Fix WiFiStorage bug from v1.6.0
41-
1.7.0 K Hoang 06/08/2020 Sync with Arduino WiFiNINA Library v1.7.0 : Add downloadOTA() and verify length/CRC
42-
1.7.1 K Hoang 27/08/2020 Sync with Arduino WiFiNINA Library v1.7.1 : new Firmware 1.4.1
43-
1.7.2 K Hoang 05/11/2020 Add support to Adafruit Airlift M4 boards: METRO_M4_AIRLIFT_LITE, PYBADGE_AIRLIFT_M4
44-
1.8.0 K Hoang 19/11/2020 Sync with Arduino WiFiNINA Library v1.8.0 : new Firmware 1.4.2. Add WiFiBearSSLClient.
45-
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
46-
1.8.5 K Hoang 20/03/2021 Sync with WiFiNINA v1.8.5 : Feed watchdog within busy-wait-loop within connectBearSSL
47-
1.8.10 K Hoang 25/05/2021 Sync with WiFiNINA v1.8.10 : Support RP2040, new FW v1.4.5
48-
1.8.10-1 K Hoang 29/05/2021 Fix PinStatus compile error for some platforms
49-
1.8.11 K Hoang 14/06/2021 Sync with WiFiNINA v1.8.11 : Support RP2040, new FW v1.4.6
50-
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.
33+
...
5134
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
5235
1.8.14-1 K Hoang 25/11/2021 Fix examples to support ATmega4809 such as UNO_WIFI_REV2 and NANO_EVERY
5336
1.8.14-2 K Hoang 31/12/2021 Add support to Nano_RP2040_Connect using arduino-pico core
5437
1.8.14-3 K Hoang 31/12/2021 Fix issue with UDP for Nano_RP2040_Connect using arduino-pico core
38+
1.8.14-4 K Hoang 01/05/2022 Fix bugs by using some PRs from original WiFiNINA. Add WiFiMulti-related examples
5539
***********************************************************************************************************************************/
5640

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

11094
unsigned long start = millis();
11195

112-
// wait 4 second for the connection to close
96+
// wait 10 second for the connection to close
11397
while (!connected() && millis() - start < 10000)
98+
{
11499
delay(1);
100+
WiFi.feedWatchdog();
101+
}
115102

116103
if (!connected())
117104
{
@@ -144,9 +131,12 @@ int WiFiClient::connectSSL(IPAddress ip, uint16_t port)
144131

145132
unsigned long start = millis();
146133

147-
// wait 4 second for the connection to close
134+
// wait 10 second for the connection to close
148135
while (!connected() && millis() - start < 10000)
136+
{
149137
delay(1);
138+
WiFi.feedWatchdog();
139+
}
150140

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

179169
unsigned long start = millis();
180170

181-
// wait 4 second for the connection to close
171+
// wait 10 second for the connection to close
182172
while (!connected() && millis() - start < 10000)
173+
{
183174
delay(1);
175+
WiFi.feedWatchdog();
176+
}
184177

185178
if (!connected())
186179
{
@@ -214,9 +207,12 @@ int WiFiClient::connectBearSSL(IPAddress ip, uint16_t port)
214207

215208
unsigned long start = millis();
216209

217-
// wait 4 second for the connection to close
210+
// wait 10 second for the connection to close
218211
while (!connected() && millis() - start < 10000)
212+
{
219213
delay(1);
214+
WiFi.feedWatchdog();
215+
}
220216

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

250246
unsigned long start = millis();
251247

252-
// wait 4 second for the connection to close
248+
// wait 10 second for the connection to close
253249
while (!connected() && millis() - start < 10000)
250+
{
254251
delay(1);
252+
WiFi.feedWatchdog();
253+
}
255254

256255
if (!connected())
257256
{
@@ -395,7 +394,10 @@ void WiFiClient::stop()
395394

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

400402
WiFiSocketBuffer.close(_sock);
401403
_sock = 255;

src/WiFiClient_Generic.h

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -24,34 +24,18 @@
2424
License along with this library; if not, write to the Free Software
2525
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
2626
27-
Version: 1.8.14-3
27+
Version: 1.8.14-4
2828
2929
Version Modified By Date Comments
3030
------- ----------- ---------- -----------
3131
1.5.0 K Hoang 27/03/2020 Initial coding to support other boards besides Nano-33 IoT, MKRWIFI1010, MKRVIDOR4000, etc.
3232
such as Arduino Mega, Teensy, SAMD21, SAMD51, STM32, etc
33-
1.5.1 K Hoang 22/04/2020 Add support to nRF52 boards, such as AdaFruit Feather nRF52832, nRF52840 Express, BlueFruit Sense,
34-
Itsy-Bitsy nRF52840 Express, Metro nRF52840 Express, etc.
35-
1.5.2 K Hoang 09/05/2020 Port FirmwareUpdater to permit nRF52, Teensy, SAMD21, SAMD51, etc. boards to update WiFiNINA
36-
W101/W102 firmware and SSL certs on IDE. Update default pin-outs.
37-
1.5.3 K Hoang 14/07/2020 Add function to support new WebSockets2_Generic Library
38-
1.6.0 K Hoang 19/07/2020 Sync with Arduino WiFiNINA Library v1.6.0 (new Firmware 1.4.0 and WiFiStorage)
39-
1.6.1 K Hoang 24/07/2020 Add support to all STM32F/L/H/G/WB/MP1 and Seeeduino SAMD21/SAMD51 boards
40-
1.6.2 K Hoang 28/07/2020 Fix WiFiStorage bug from v1.6.0
41-
1.7.0 K Hoang 06/08/2020 Sync with Arduino WiFiNINA Library v1.7.0 : Add downloadOTA() and verify length/CRC
42-
1.7.1 K Hoang 27/08/2020 Sync with Arduino WiFiNINA Library v1.7.1 : new Firmware 1.4.1
43-
1.7.2 K Hoang 05/11/2020 Add support to Adafruit Airlift M4 boards: METRO_M4_AIRLIFT_LITE, PYBADGE_AIRLIFT_M4
44-
1.8.0 K Hoang 19/11/2020 Sync with Arduino WiFiNINA Library v1.8.0 : new Firmware 1.4.2. Add WiFiBearSSLClient.
45-
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
46-
1.8.5 K Hoang 20/03/2021 Sync with WiFiNINA v1.8.5 : Feed watchdog within busy-wait-loop within connectBearSSL
47-
1.8.10 K Hoang 25/05/2021 Sync with WiFiNINA v1.8.10 : Support RP2040, new FW v1.4.5
48-
1.8.10-1 K Hoang 29/05/2021 Fix PinStatus compile error for some platforms
49-
1.8.11 K Hoang 14/06/2021 Sync with WiFiNINA v1.8.11 : Support RP2040, new FW v1.4.6
50-
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.
33+
...
5134
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
5235
1.8.14-1 K Hoang 25/11/2021 Fix examples to support ATmega4809 such as UNO_WIFI_REV2 and NANO_EVERY
5336
1.8.14-2 K Hoang 31/12/2021 Add support to Nano_RP2040_Connect using arduino-pico core
5437
1.8.14-3 K Hoang 31/12/2021 Fix issue with UDP for Nano_RP2040_Connect using arduino-pico core
38+
1.8.14-4 K Hoang 01/05/2022 Fix bugs by using some PRs from original WiFiNINA. Add WiFiMulti-related examples
5539
***********************************************************************************************************************************/
5640

5741
#pragma once

src/WiFiNINA_Generic.h

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -24,34 +24,18 @@
2424
License along with this library; if not, write to the Free Software
2525
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
2626
27-
Version: 1.8.14-3
27+
Version: 1.8.14-4
2828
2929
Version Modified By Date Comments
3030
------- ----------- ---------- -----------
3131
1.5.0 K Hoang 27/03/2020 Initial coding to support other boards besides Nano-33 IoT, MKRWIFI1010, MKRVIDOR4000, etc.
3232
such as Arduino Mega, Teensy, SAMD21, SAMD51, STM32, etc
33-
1.5.1 K Hoang 22/04/2020 Add support to nRF52 boards, such as AdaFruit Feather nRF52832, nRF52840 Express, BlueFruit Sense,
34-
Itsy-Bitsy nRF52840 Express, Metro nRF52840 Express, etc.
35-
1.5.2 K Hoang 09/05/2020 Port FirmwareUpdater to permit nRF52, Teensy, SAMD21, SAMD51, etc. boards to update WiFiNINA
36-
W101/W102 firmware and SSL certs on IDE. Update default pin-outs.
37-
1.5.3 K Hoang 14/07/2020 Add function to support new WebSockets2_Generic Library
38-
1.6.0 K Hoang 19/07/2020 Sync with Arduino WiFiNINA Library v1.6.0 (new Firmware 1.4.0 and WiFiStorage)
39-
1.6.1 K Hoang 24/07/2020 Add support to all STM32F/L/H/G/WB/MP1 and Seeeduino SAMD21/SAMD51 boards
40-
1.6.2 K Hoang 28/07/2020 Fix WiFiStorage bug from v1.6.0
41-
1.7.0 K Hoang 06/08/2020 Sync with Arduino WiFiNINA Library v1.7.0 : Add downloadOTA() and verify length/CRC
42-
1.7.1 K Hoang 27/08/2020 Sync with Arduino WiFiNINA Library v1.7.1 : new Firmware 1.4.1
43-
1.7.2 K Hoang 05/11/2020 Add support to Adafruit Airlift M4 boards: METRO_M4_AIRLIFT_LITE, PYBADGE_AIRLIFT_M4
44-
1.8.0 K Hoang 19/11/2020 Sync with Arduino WiFiNINA Library v1.8.0 : new Firmware 1.4.2. Add WiFiBearSSLClient.
45-
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
46-
1.8.5 K Hoang 20/03/2021 Sync with WiFiNINA v1.8.5 : Feed watchdog within busy-wait-loop within connectBearSSL
47-
1.8.10 K Hoang 25/05/2021 Sync with WiFiNINA v1.8.10 : Support RP2040, new FW v1.4.5
48-
1.8.10-1 K Hoang 29/05/2021 Fix PinStatus compile error for some platforms
49-
1.8.11 K Hoang 14/06/2021 Sync with WiFiNINA v1.8.11 : Support RP2040, new FW v1.4.6
50-
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.
33+
...
5134
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
5235
1.8.14-1 K Hoang 25/11/2021 Fix examples to support ATmega4809 such as UNO_WIFI_REV2 and NANO_EVERY
5336
1.8.14-2 K Hoang 31/12/2021 Add support to Nano_RP2040_Connect using arduino-pico core
5437
1.8.14-3 K Hoang 31/12/2021 Fix issue with UDP for Nano_RP2040_Connect using arduino-pico core
38+
1.8.14-4 K Hoang 01/05/2022 Fix bugs by using some PRs from original WiFiNINA. Add WiFiMulti-related examples
5539
***********************************************************************************************************************************/
5640

5741
#pragma once

0 commit comments

Comments
 (0)