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

Commit c65cffc

Browse files
authored
v1.8.15-0 to permit sending data larger than 4K
### Releases v1.8.15-0 1. Fix severe limitation to permit sending much larger data than total 4K. Check [server.send buffer size limited to 4k #23](khoih-prog/WiFiWebServer#23) 2. Add examples [WiFiWebServer_BigData](https://github.com/khoih-prog/WiFiNINA_Generic/tree/main/examples/WiFiWebServer_BigData) to demo how to send much larger data than total 4K 3. Optimize code 4. Clean up
1 parent 873c799 commit c65cffc

31 files changed

+1054
-248
lines changed

README.md

Lines changed: 101 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
* [18. WiFiNINA_SSL_Test](examples/WiFiNINA_SSL_Test)
7575
* [19. WiFiStorage](examples/WiFiStorage)
7676
* [20. WiFiAdvancedChatServer](examples/WiFiAdvancedChatServer)
77+
* [21. WiFiWebServer_BigData](examples/WiFiWebServer_BigData) **New**
7778
* [Tools](#tools)
7879
* [ 1. CheckFirmwareVersion](examples/Tools/CheckFirmwareVersion)
7980
* [ 2. FirmwareUpdater](examples/Tools/FirmwareUpdater)
@@ -92,6 +93,8 @@
9293
* [3. WiFiWebClientRepeating on ARDUINO_NANO_RP2040_CONNECT](#3-wifiwebclientrepeating-on-arduino_nano_rp2040_connect)
9394
* [4. WiFiUdpNtpClient on MBED NANO_RP2040_CONNECT](#4-wifiudpntpclient-on-arduino_nano_rp2040_connect)
9495
* [5. WiFiUdpNtpClient on ARDUINO_NANO_RP2040_CONNECT](#5-wifiudpntpclient-on-mbed-nano_rp2040_connect)
96+
* [6. WiFiWebServer_BigData on SAMD_NANO_33_IOT](#6-WiFiWebServer_BigData-on-SAMD_NANO_33_IOT)
97+
* [7. WiFiWebServer_BigData on NANO_RP2040_CONNECT](#7-WiFiWebServer_BigData-on-NANO_RP2040_CONNECT)
9598
* [Debug](#debug)
9699
* [Troubleshooting](#troubleshooting)
97100
* [TO DO](#to-do)
@@ -106,6 +109,8 @@
106109

107110
### Important Notes
108111

112+
The new [WiFiNINA_Generic v1.8.15-0+](https://github.com/khoih-prog/WiFiNINA_Generic/releases/tag/v1.8.15-0) fixes severe limitation to permit sending much larger data than total 4K.
113+
109114
The new [WiFiNINA_Generic v1.8.14-5+](https://github.com/khoih-prog/WiFiNINA_Generic/releases/tag/v1.8.14-5) fixes bug causing data lost when sending large files, such as FTP Client uploading files.
110115

111116
Please use the new firmware `NINA_W102.zip`, modified by [Juraj Andrássy](https://github.com/JAndrassy), from [Using WIFI-NINA with FtpServer; no accept() #31](https://forum.arduino.cc/t/using-wifi-nina-with-ftpserver-no-accept/933690/31) to use with new version [WiFiNINA_Generic v1.8.14-4+](https://github.com/khoih-prog/WiFiNINA_Generic/releases/tag/v1.8.14-4) to fix some issues, such as FTPServer port 23, etc.
@@ -600,7 +605,7 @@ For example
600605
601606
```
602607
Start WiFiNINA CheckFirmwareVersion on SAMD_NANO_33_IOT
603-
WiFiNINA_Generic v1.8.14-7
608+
WiFiNINA_Generic v1.8.15-0
604609
Firmware version installed: aaa.bbb.ccc
605610
Latest firmware version available : aaa.bbb.ccc
606611

@@ -650,6 +655,7 @@ This is the screen to demonstrate the SSL certificates have been loaded successf
650655
18. [WiFiNINA_SSL_Test](examples/WiFiNINA_SSL_Test)
651656
19. [WiFiStorage](examples/WiFiStorage)
652657
20. [WiFiAdvancedChatServer](examples/WiFiAdvancedChatServer) **New**
658+
21. [WiFiWebServer_BigData](examples/WiFiWebServer_BigData) **New**
653659
654660
#### Tools
655661
@@ -694,7 +700,7 @@ The following are screen shot and debug terminal output when running example [Ad
694700
695701
```
696702
Starting AdvancedServer on SAMD_NANO_33_IOT
697-
WiFiNINA_Generic v1.8.14-7
703+
WiFiNINA_Generic v1.8.15-0
698704
[NN] ===============================
699705
[NN]
700706
Used/default SPI pinout:
@@ -847,7 +853,7 @@ The following is debug terminal output when running example [WiFiWebClientRepeat
847853
848854
```
849855
Start WiFiWebClientRepeating on MBED NANO_RP2040_CONNECT
850-
WiFiNINA_Generic v1.8.14-7
856+
WiFiNINA_Generic v1.8.15-0
851857
Attempting to connect to SSID: HueNet1
852858
SSID: HueNet1
853859
IP Address: 192.168.2.86
@@ -940,7 +946,7 @@ The following is debug terminal output when running example [WiFiWebClientRepeat
940946
941947
```
942948
Start WiFiWebClientRepeating on ARDUINO_NANO_RP2040_CONNECT
943-
WiFiNINA_Generic v1.8.14-7
949+
WiFiNINA_Generic v1.8.15-0
944950
Attempting to connect to SSID: HueNet1
945951
SSID: HueNet1
946952
IP Address: 192.168.2.86
@@ -1017,7 +1023,7 @@ The following is debug terminal output when running example [WiFiUdpNtpClient](e
10171023
10181024
```
10191025
Start WiFiUdpNtpClient on ARDUINO_NANO_RP2040_CONNECT
1020-
WiFiNINA_Generic v1.8.14-7
1026+
WiFiNINA_Generic v1.8.15-0
10211027
Attempting to connect to SSID: HueNet1
10221028
Connected to WiFi
10231029
SSID: HueNet1
@@ -1047,7 +1053,7 @@ The following is debug terminal output when running example [WiFiUdpNtpClient](e
10471053
10481054
```
10491055
Start WiFiUdpNtpClient on MBED NANO_RP2040_CONNECT
1050-
WiFiNINA_Generic v1.8.14-7
1056+
WiFiNINA_Generic v1.8.15-0
10511057
Attempting to connect to SSID: HueNet1
10521058
Connected to WiFi
10531059
SSID: HueNet1
@@ -1063,7 +1069,90 @@ Packet received
10631069
Seconds since Jan 1 1900 = 3849967865
10641070
Unix time = 1640979065
10651071
The UTC time is 19:31:05
1072+
```
1073+
1074+
1075+
---
1076+
1077+
#### 6. [WiFiWebServer_BigData](examples/WiFiWebServer_BigData) on SAMD_NANO_33_IOT
1078+
1079+
The following is debug terminal output when running example [WiFiWebServer_BigData](examples/WiFiWebServer_BigData) on `SAMD_NANO_33_IOT` board, using this [WiFiNINA_Generic Library](https://github.com/khoih-prog/WiFiNINA_Generic), to demo how to send much larger data than total 4K
1080+
1081+
##### MULTIPLY_FACTOR = 1.0f
1082+
1083+
```
1084+
Start WiFiWebServer_BigData on SAMD_NANO_33_IOT
1085+
WiFiNINA_Generic v1.8.15-0
1086+
WiFiWebServer v1.10.0
1087+
Attempting to connect to SSID: HueNet
1088+
Attempting to connect to SSID: HueNet
1089+
SSID: HueNet
1090+
IP Address: 192.168.2.107
1091+
Signal strength (RSSI):-15 dBm
1092+
String Len = 8103
1093+
String Len = 8103
1094+
String Len = 8103
1095+
String Len = 8103
1096+
String Len = 8103
1097+
String Len = 8103
1098+
```
1099+
1100+
##### MULTIPLY_FACTOR = 2.0f
1101+
1102+
```
1103+
Start WiFiWebServer_BigData on SAMD_NANO_33_IOT
1104+
WiFiNINA_Generic v1.8.15-0
1105+
WiFiWebServer v1.10.0
1106+
Attempting to connect to SSID: HueNet
1107+
Attempting to connect to SSID: HueNet
1108+
SSID: HueNet
1109+
IP Address: 192.168.2.107
1110+
Signal strength (RSSI):-15 dBm
1111+
String Len = 15903
1112+
String Len = 15903
1113+
String Len = 15903
1114+
String Len = 15903
1115+
String Len = 15903
1116+
```
10661117
1118+
##### MULTIPLY_FACTOR = 2.5f
1119+
1120+
```
1121+
Start WiFiWebServer_BigData on SAMD_NANO_33_IOT
1122+
WiFiNINA_Generic v1.8.15-0
1123+
WiFiWebServer v1.10.0
1124+
Attempting to connect to SSID: HueNet
1125+
Attempting to connect to SSID: HueNet
1126+
SSID: HueNet
1127+
IP Address: 192.168.2.107
1128+
Signal strength (RSSI):-17 dBm
1129+
String Len = 19803
1130+
String Len = 19803
1131+
String Len = 19803
1132+
String Len = 19803
1133+
String Len = 19803
1134+
String Len = 19803
1135+
```
1136+
1137+
---
1138+
1139+
#### 7. [WiFiWebServer_BigData](examples/WiFiWebServer_BigData) on NANO_RP2040_CONNECT
1140+
1141+
The following is debug terminal output when running example [WiFiWebServer_BigData](examples/WiFiWebServer_BigData) on `NANO_RP2040_CONNECT` board, using this [WiFiNINA_Generic Library](https://github.com/khoih-prog/WiFiNINA_Generic), to demo how to send much larger data than total 4K
1142+
1143+
##### MULTIPLY_FACTOR = 3.0f
1144+
1145+
```
1146+
Start WiFiWebServer_BigData on NANO_RP2040_CONNECT
1147+
WiFiNINA_Generic v1.8.15-0
1148+
WiFiWebServer v1.10.0
1149+
Attempting to connect to SSID: HueNet
1150+
Attempting to connect to SSID: HueNet
1151+
SSID: HueNet
1152+
IP Address: 192.168.2.117
1153+
Signal strength (RSSI):-24 dBm
1154+
String Len = 27609
1155+
String Len = 27609
10671156
```
10681157
10691158
---
@@ -1133,6 +1222,8 @@ Sometimes, the library will only work if you update the `WiFiNINA module/shield`
11331222
24. Add support to Teensy 4.x using `Adafruit Airlift Featherwing Co-Processor`
11341223
25. Modify [WiFiWebServer](https://github.com/khoih-prog/WiFiNINA_Generic/tree/master/examples/WiFiWebServer) example to avoid `analogRead()` crash in `arduino-pico` core. Check [WiFi.localIP() hangs in Nano RP2040 Connect with Arduino-Pico core (EarlePhilhower) #24](https://github.com/khoih-prog/WiFiNINA_Generic/discussions/24)
11351224
26. Use `allman astyle` and add `utils`
1225+
27. Fix severe limitation to permit sending much larger data than total 4K. Check [server.send buffer size limited to 4k #23](https://github.com/khoih-prog/WiFiWebServer/issues/23)
1226+
28. Add examples [WiFiWebServer_BigData](https://github.com/khoih-prog/WiFiNINA_Generic/tree/main/examples/WiFiWebServer_BigData) to demo how to send much larger data than total 4K
11361227

11371228

11381229
---
@@ -1163,6 +1254,8 @@ Submit issues to: [WiFiNINA_Generic issues](https://github.com/khoih-prog/WiFiNI
11631254
- [Watchdog trigger changes #208](https://github.com/arduino-libraries/WiFiNINA/pull/208)
11641255
10. Thanks to [NachtRave](https://github.com/NachtRaveVL) to report issue [**Flush method not implemented #22**](https://github.com/khoih-prog/WiFiNINA_Generic/issues/22) leading to version v1.8.14-6
11651256
11. Thanks to [Stefano](https://github.com/stefat) to report issue [**WiFi.localIP() hangs in Nano RP2040 Connect with Arduino-Pico core (EarlePhilhower) #24**](https://github.com/khoih-prog/WiFiNINA_Generic/issues/24) leading to version v1.8.14-7
1257+
12. Thanks to [jlemieux55](https://github.com/jlemieux55) to report issue [**server.send buffer size limited to 4k #23**](https://github.com/khoih-prog/WiFiWebServer/issues/23) leading to version v1.8.15-0
1258+
11661259

11671260

11681261
---
@@ -1181,6 +1274,7 @@ Submit issues to: [WiFiNINA_Generic issues](https://github.com/khoih-prog/WiFiNI
11811274
<td align="center"><a href="https://github.com/pennam"><img src="https://github.com/pennam.png" width="100px;" alt="pennam"/><br /><sub><b>Mattia Pennasilico</b></sub></a><br /></td>
11821275
<td align="center"><a href="https://github.com/NachtRaveVL"><img src="https://github.com/NachtRaveVL.png" width="100px;" alt="NachtRaveVL"/><br /><sub><b>NachtRave</b></sub></a><br /></td>
11831276
<td align="center"><a href="https://github.com/stefat"><img src="https://github.com/stefat.png" width="100px;" alt="stefat"/><br /><sub><b>Stefano</b></sub></a><br /></td>
1277+
<td align="center"><a href="https://github.com/jlemieux55"><img src="https://github.com/jlemieux55.png" width="100px;" alt="jlemieux55"/><br /><sub><b>jlemieux55</b></sub></a><br /></td>
11841278
</tr>
11851279
</table>
11861280

@@ -1207,6 +1301,6 @@ If you want to contribute to this project:
12071301

12081302
1. Copyright (c) 2018 Arduino SA. All rights reserved.
12091303
2. Copyright (c) 2011-2014 Arduino LLC. All right reserved.
1210-
3. Copyright 2020- Khoi Hoang
1304+
3. Copyright (c) 2020- Khoi Hoang
12111305

12121306

changelog.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,13 @@
4949

5050
## Changelog
5151

52+
### Releases v1.8.15-0
53+
54+
1. Fix severe limitation to permit sending much larger data than total 4K. Check [server.send buffer size limited to 4k #23](https://github.com/khoih-prog/WiFiWebServer/issues/23)
55+
2. Add examples [WiFiWebServer_BigData](https://github.com/khoih-prog/WiFiNINA_Generic/tree/main/examples/WiFiWebServer_BigData) to demo how to send much larger data than total 4K
56+
3. Optimize code
57+
4. Clean up
58+
5259
### Releases v1.8.14-7
5360

5461
1. Modify [WiFiWebServer](https://github.com/khoih-prog/WiFiNINA_Generic/tree/master/examples/WiFiWebServer) example to avoid `analogRead()` crash in `arduino-pico` core. Check [WiFi.localIP() hangs in Nano RP2040 Connect with Arduino-Pico core (EarlePhilhower) #24](https://github.com/khoih-prog/WiFiNINA_Generic/discussions/24)

library.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "WiFiNINA_Generic",
3-
"version": "1.8.14-7",
3+
"version": "1.8.15-0",
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",
5-
"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",
5+
"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. Now with fix of severe limitation to permit sending much larger data than total 4K",
66
"authors": [
77
{
88
"name": "Arduino",

library.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name=WiFiNINA_Generic
2-
version=1.8.14-7
2+
version=1.8.15-0
33
author=Arduino, Khoi Hoang <[email protected]>
44
maintainer=Khoi Hoang <[email protected]>
5-
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
5+
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. Now with fix of severe limitation to permit sending much larger data than total 4K
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

0 commit comments

Comments
 (0)