|
24 | 24 | License along with this library; if not, write to the Free Software |
25 | 25 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
26 | 26 | |
27 | | - Version: 1.8.14-3 |
| 27 | + Version: 1.8.14-4 |
28 | 28 |
|
29 | 29 | Version Modified By Date Comments |
30 | 30 | ------- ----------- ---------- ----------- |
31 | 31 | 1.5.0 K Hoang 27/03/2020 Initial coding to support other boards besides Nano-33 IoT, MKRWIFI1010, MKRVIDOR4000, etc. |
32 | 32 | 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 | + ... |
51 | 34 | 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 |
52 | 35 | 1.8.14-1 K Hoang 25/11/2021 Fix examples to support ATmega4809 such as UNO_WIFI_REV2 and NANO_EVERY |
53 | 36 | 1.8.14-2 K Hoang 31/12/2021 Add support to Nano_RP2040_Connect using arduino-pico core |
54 | 37 | 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 |
55 | 39 | ***********************************************************************************************************************************/ |
56 | 40 |
|
57 | 41 | #define _WIFININA_LOGLEVEL_ 1 |
@@ -109,9 +93,12 @@ int WiFiClient::connect(IPAddress ip, uint16_t port) |
109 | 93 |
|
110 | 94 | unsigned long start = millis(); |
111 | 95 |
|
112 | | - // wait 4 second for the connection to close |
| 96 | + // wait 10 second for the connection to close |
113 | 97 | while (!connected() && millis() - start < 10000) |
| 98 | + { |
114 | 99 | delay(1); |
| 100 | + WiFi.feedWatchdog(); |
| 101 | + } |
115 | 102 |
|
116 | 103 | if (!connected()) |
117 | 104 | { |
@@ -144,9 +131,12 @@ int WiFiClient::connectSSL(IPAddress ip, uint16_t port) |
144 | 131 |
|
145 | 132 | unsigned long start = millis(); |
146 | 133 |
|
147 | | - // wait 4 second for the connection to close |
| 134 | + // wait 10 second for the connection to close |
148 | 135 | while (!connected() && millis() - start < 10000) |
| 136 | + { |
149 | 137 | delay(1); |
| 138 | + WiFi.feedWatchdog(); |
| 139 | + } |
150 | 140 |
|
151 | 141 | if (!connected()) |
152 | 142 | { |
@@ -178,9 +168,12 @@ int WiFiClient::connectSSL(const char *host, uint16_t port) |
178 | 168 |
|
179 | 169 | unsigned long start = millis(); |
180 | 170 |
|
181 | | - // wait 4 second for the connection to close |
| 171 | + // wait 10 second for the connection to close |
182 | 172 | while (!connected() && millis() - start < 10000) |
| 173 | + { |
183 | 174 | delay(1); |
| 175 | + WiFi.feedWatchdog(); |
| 176 | + } |
184 | 177 |
|
185 | 178 | if (!connected()) |
186 | 179 | { |
@@ -214,9 +207,12 @@ int WiFiClient::connectBearSSL(IPAddress ip, uint16_t port) |
214 | 207 |
|
215 | 208 | unsigned long start = millis(); |
216 | 209 |
|
217 | | - // wait 4 second for the connection to close |
| 210 | + // wait 10 second for the connection to close |
218 | 211 | while (!connected() && millis() - start < 10000) |
| 212 | + { |
219 | 213 | delay(1); |
| 214 | + WiFi.feedWatchdog(); |
| 215 | + } |
220 | 216 |
|
221 | 217 | if (!connected()) |
222 | 218 | { |
@@ -249,9 +245,12 @@ int WiFiClient::connectBearSSL(const char *host, uint16_t port) |
249 | 245 |
|
250 | 246 | unsigned long start = millis(); |
251 | 247 |
|
252 | | - // wait 4 second for the connection to close |
| 248 | + // wait 10 second for the connection to close |
253 | 249 | while (!connected() && millis() - start < 10000) |
| 250 | + { |
254 | 251 | delay(1); |
| 252 | + WiFi.feedWatchdog(); |
| 253 | + } |
255 | 254 |
|
256 | 255 | if (!connected()) |
257 | 256 | { |
@@ -395,7 +394,10 @@ void WiFiClient::stop() |
395 | 394 |
|
396 | 395 | // wait maximum 5 secs for the connection to close |
397 | 396 | while (status() != CLOSED && ++count < 50) |
| 397 | + { |
398 | 398 | delay(100); |
| 399 | + WiFi.feedWatchdog(); |
| 400 | + } |
399 | 401 |
|
400 | 402 | WiFiSocketBuffer.close(_sock); |
401 | 403 | _sock = 255; |
|
0 commit comments