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

Commit df0f974

Browse files
authored
v1.10.1 to use new WiFi101_Generic library
### Releases v1.10.1 1. Using new [`WiFi101_Generic library`](https://github.com/khoih-prog/WiFi101_Generic) for sending larger data 2. Update `Packages' Patches`
1 parent 9094e54 commit df0f974

27 files changed

+167
-95
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Arduino IDE version: 1.8.19
3030
RASPBERRY_PI_PICO board
3131
ArduinoCore-mbed v3.4.1
3232
OS: Ubuntu 20.04 LTS
33-
Linux xy-Inspiron-3593 5.15.0-52-generic #58~20.04.1-Ubuntu SMP Thu Oct 13 13:09:46 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
33+
Linux xy-Inspiron-3593 5.15.0-53-generic #59~20.04.1-Ubuntu SMP Thu Oct 20 15:10:22 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
3434
3535
Context:
3636
I encountered a crash while using this library

README.md

Lines changed: 83 additions & 56 deletions
Large diffs are not rendered by default.

changelog.md

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

1919
* [Changelog](#changelog)
20+
* [Releases v1.10.1](#releases-v1101)
2021
* [Releases v1.10.0](#releases-v1100)
2122
* [Releases v1.9.5](#releases-v195)
2223
* [Releases v1.9.4](#releases-v194)
@@ -57,6 +58,11 @@
5758

5859
## Changelog
5960

61+
### Releases v1.10.1
62+
63+
1. Using new [`WiFi101_Generic library`](https://github.com/khoih-prog/WiFi101_Generic) for sending larger data
64+
2. Update `Packages' Patches`
65+
6066
### Releases v1.10.0
6167

6268
1. Add new features, such as `CORS`, etc.

library.json

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "WiFiWebServer",
3-
"version": "1.10.0",
3+
"version": "1.10.1",
44
"keywords": "wifi, wi-fi, WebServer, WiFiNINA, WiFi101, ESP32, Portenta-H7, SAM-DUE, SAMD, STM32, nRF52, rpi-pico, rp2040, HTTP-Client, WebSocket-Client, server, client, websocket, wifi-multi, mega-avr",
55
"description": "Simple WiFiWebServer, HTTP Client and WebSocket Client library for AVR Mega, megaAVR, Portenta_H7, Teensy, SAM DUE, SAMD21, SAMD51, STM32F/L/H/G/WB/MP1, nRF52, RP2040-based (Nano-RP2040-Connect, RASPBERRY_PI_PICO, RASPBERRY_PI_PICO_W, ESP32/ESP8266, etc.) boards using WiFi, such as WiFiNINA, WiFi101, CYW43439, U-Blox W101, W102, ESP8266/ESP32-AT modules/shields, with functions similar to those of ESP8266/ESP32 WebServer libraries",
66
"authors":
@@ -27,7 +27,13 @@
2727
{
2828
"owner": "khoih-prog",
2929
"name": "WiFiNINA_Generic",
30-
"version": ">=1.8.14-7",
30+
"version": ">=1.8.15-1",
31+
"platforms": ["*"]
32+
},
33+
{
34+
"owner": "khoih-prog",
35+
"name": "WiFi101_Generic",
36+
"version": ">=1.0.0",
3137
"platforms": ["*"]
3238
},
3339
{
@@ -48,10 +54,6 @@
4854
"version": ">=1.4.1",
4955
"platforms": ["*"]
5056
},
51-
{
52-
"name": "WiFi101",
53-
"version": "https://github.com/khoih-prog/WiFi101"
54-
},
5557
{
5658
"owner": "jandrassy",
5759
"name": "WiFiEspAT",

library.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=WiFiWebServer
2-
version=1.10.0
2+
version=1.10.1
33
author=Khoi Hoang
44
license=MIT
55
maintainer=Khoi Hoang <[email protected]>
@@ -8,5 +8,5 @@ paragraph=The WebServer supports HTTP GET and POST requests, provides argument p
88
category=Communication
99
url=https://github.com/khoih-prog/WiFiWebServer
1010
architectures=*
11-
depends=Functional-Vlpp, WiFiNINA_Generic, ESP_AT_Lib, WiFiEspAT, WiFiMulti_Generic
11+
depends=Functional-Vlpp, WiFiNINA_Generic, WiFi101_Generic, ESP_AT_Lib, WiFiEspAT, WiFiMulti_Generic
1212
includes=WiFiWebServer.h, WiFiWebServer.hpp, WiFiHttpClient.h

platformio/platformio.ini

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,14 @@ lib_ldf_mode = chain+
4444
lib_deps =
4545
; PlatformIO 4.x
4646
; Functional-Vlpp@>=1.0.2
47-
; WiFiNINA_Generic@>=1.8.14-7
47+
; WiFiNINA_Generic@>=1.8.15-1
48+
; WiFi101_Generic@>=1.0.0
4849
; WiFiMulti_Generic@>=1.2.2
4950
; ESP_AT_Lib@>=1.4.1
5051
; PlatformIO 5.x
5152
khoih-prog/Functional-Vlpp@>=1.0.2
52-
khoih-prog/WiFiNINA_Generic@>=1.8.14-7
53+
khoih-prog/WiFiNINA_Generic@>=1.8.15-1
54+
khoih-prog/WiFi101_Generic@>=1.0.0
5355
khoih-prog/WiFiMulti_Generic@>=1.2.2
5456
khoih-prog/ESP_AT_Lib@>=1.4.1
5557

src/Parsing-impl.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
@file Esp8266WebServer.h
1313
@author Ivan Grokhotkov
1414
15-
Version: 1.10.0
15+
Version: 1.10.1
1616
1717
Version Modified By Date Comments
1818
------- ----------- ---------- -----------
@@ -31,6 +31,7 @@
3131
1.9.4 K Hoang 06/09/2022 Restore support to ESP32 and ESP8266
3232
1.9.5 K Hoang 10/09/2022 Restore support to Teensy, etc. Fix bug in examples
3333
1.10.0 K Hoang 13/11/2022 Add new features, such as CORS. Update code and examples
34+
1.10.1 K Hoang 24/11/2022 Using new WiFi101_Generic library to send larger data
3435
**********************************************************************************************************************************/
3536

3637
#pragma once

src/Uri.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
@file Esp8266WebServer.h
1313
@author Ivan Grokhotkov
1414
15-
Version: 1.10.0
15+
Version: 1.10.1
1616
1717
Version Modified By Date Comments
1818
------- ----------- ---------- -----------
@@ -31,6 +31,7 @@
3131
1.9.4 K Hoang 06/09/2022 Restore support to ESP32 and ESP8266
3232
1.9.5 K Hoang 10/09/2022 Restore support to Teensy, etc. Fix bug in examples
3333
1.10.0 K Hoang 13/11/2022 Add new features, such as CORS. Update code and examples
34+
1.10.1 K Hoang 24/11/2022 Using new WiFi101_Generic library to send larger data
3435
*****************************************************************************************************************************/
3536

3637
#ifndef URI_H

src/WiFiHttpClient.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
@file Esp8266WebServer.h
1313
@author Ivan Grokhotkov
1414
15-
Version: 1.10.0
15+
Version: 1.10.1
1616
1717
Version Modified By Date Comments
1818
------- ----------- ---------- -----------
@@ -31,6 +31,7 @@
3131
1.9.4 K Hoang 06/09/2022 Restore support to ESP32 and ESP8266
3232
1.9.5 K Hoang 10/09/2022 Restore support to Teensy, etc. Fix bug in examples
3333
1.10.0 K Hoang 13/11/2022 Add new features, such as CORS. Update code and examples
34+
1.10.1 K Hoang 24/11/2022 Using new WiFi101_Generic library to send larger data
3435
*****************************************************************************************************************************/
3536

3637
// Library to simplify HTTP fetching on Arduino

src/WiFiWebServer-impl.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
@file Esp8266WebServer.h
1313
@author Ivan Grokhotkov
1414
15-
Version: 1.10.0
15+
Version: 1.10.1
1616
1717
Version Modified By Date Comments
1818
------- ----------- ---------- -----------
@@ -31,6 +31,7 @@
3131
1.9.4 K Hoang 06/09/2022 Restore support to ESP32 and ESP8266
3232
1.9.5 K Hoang 10/09/2022 Restore support to Teensy, etc. Fix bug in examples
3333
1.10.0 K Hoang 13/11/2022 Add new features, such as CORS. Update code and examples
34+
1.10.1 K Hoang 24/11/2022 Using new WiFi101_Generic library to send larger data
3435
**********************************************************************************************************************************/
3536

3637
#pragma once

src/WiFiWebServer.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
@file Esp8266WebServer.h
1313
@author Ivan Grokhotkov
1414
15-
Version: 1.10.0
15+
Version: 1.10.1
1616
1717
Version Modified By Date Comments
1818
------- ----------- ---------- -----------
@@ -31,6 +31,7 @@
3131
1.9.4 K Hoang 06/09/2022 Restore support to ESP32 and ESP8266
3232
1.9.5 K Hoang 10/09/2022 Restore support to Teensy, etc. Fix bug in examples
3333
1.10.0 K Hoang 13/11/2022 Add new features, such as CORS. Update code and examples
34+
1.10.1 K Hoang 24/11/2022 Using new WiFi101_Generic library to send larger data
3435
**********************************************************************************************************************************/
3536

3637
#pragma once
@@ -39,13 +40,13 @@
3940
#define WiFiWebServer_H
4041

4142
#ifndef WIFI_WEBSERVER_VERSION
42-
#define WIFI_WEBSERVER_VERSION "WiFiWebServer v1.10.0"
43+
#define WIFI_WEBSERVER_VERSION "WiFiWebServer v1.10.1"
4344

4445
#define WIFI_WEBSERVER_VERSION_MAJOR 1
4546
#define WIFI_WEBSERVER_VERSION_MINOR 10
46-
#define WIFI_WEBSERVER_VERSION_PATCH 0
47+
#define WIFI_WEBSERVER_VERSION_PATCH 1
4748

48-
#define WIFI_WEBSERVER_VERSION_INT 1010000
49+
#define WIFI_WEBSERVER_VERSION_INT 1010001
4950
#endif
5051

5152
#include "WiFiWebServer.hpp"

src/WiFiWebServer.hpp

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
@file Esp8266WebServer.h
1313
@author Ivan Grokhotkov
1414
15-
Version: 1.10.0
15+
Version: 1.10.1
1616
1717
Version Modified By Date Comments
1818
------- ----------- ---------- -----------
@@ -31,6 +31,7 @@
3131
1.9.4 K Hoang 06/09/2022 Restore support to ESP32 and ESP8266
3232
1.9.5 K Hoang 10/09/2022 Restore support to Teensy, etc. Fix bug in examples
3333
1.10.0 K Hoang 13/11/2022 Add new features, such as CORS. Update code and examples
34+
1.10.1 K Hoang 24/11/2022 Using new WiFi101_Generic library to send larger data
3435
**********************************************************************************************************************************/
3536

3637
#pragma once
@@ -216,6 +217,11 @@
216217

217218
////////////////////////////////////////
218219

220+
// Default to use
221+
#if !defined(USE_WIFI101_GENERIC)
222+
#define USE_WIFI101_GENERIC true
223+
#endif
224+
219225
// Modify to use new WiFiNINA_Generic library to support boards besides Nano-33 IoT, MKRWiFi1010, Adafruit MetroM4, etc.
220226
#if USE_WIFI_NINA
221227
#include <WiFiNINA_Generic.h>
@@ -224,11 +230,20 @@
224230
#warning Use WiFiNINA_Generic from WiFiWebServer
225231
#endif
226232
#elif USE_WIFI101
227-
#include <WiFi101.h>
228-
229-
#if (_WIFI_LOGLEVEL_ > 2)
230-
#warning Use WiFi101 from WiFiWebServer
233+
#if USE_WIFI101_GENERIC
234+
#include <WiFi101_Generic.h>
235+
236+
#if (_WIFI_LOGLEVEL_ > 2)
237+
#warning Use WiFi101_Generic from WiFiWebServer
238+
#endif
239+
#else
240+
#include <WiFi101.h>
241+
242+
#if (_WIFI_LOGLEVEL_ > 2)
243+
#warning Use WiFi101 from WiFiWebServer
244+
#endif
231245
#endif
246+
232247
#elif USE_WIFI_CUSTOM
233248

234249
#if (_WIFI_LOGLEVEL_ > 2)

src/WiFi_HTTPClient/WiFi_HttpClient.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
@file Esp8266WebServer.h
1313
@author Ivan Grokhotkov
1414
15-
Version: 1.10.0
15+
Version: 1.10.1
1616
1717
Version Modified By Date Comments
1818
------- ----------- ---------- -----------
@@ -31,6 +31,7 @@
3131
1.9.4 K Hoang 06/09/2022 Restore support to ESP32 and ESP8266
3232
1.9.5 K Hoang 10/09/2022 Restore support to Teensy, etc. Fix bug in examples
3333
1.10.0 K Hoang 13/11/2022 Add new features, such as CORS. Update code and examples
34+
1.10.1 K Hoang 24/11/2022 Using new WiFi101_Generic library to send larger data
3435
*****************************************************************************************************************************/
3536

3637
// Class to simplify HTTP fetching on Arduino

src/WiFi_HTTPClient/WiFi_HttpClient.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
@file Esp8266WebServer.h
1313
@author Ivan Grokhotkov
1414
15-
Version: 1.10.0
15+
Version: 1.10.1
1616
1717
Version Modified By Date Comments
1818
------- ----------- ---------- -----------
@@ -31,6 +31,7 @@
3131
1.9.4 K Hoang 06/09/2022 Restore support to ESP32 and ESP8266
3232
1.9.5 K Hoang 10/09/2022 Restore support to Teensy, etc. Fix bug in examples
3333
1.10.0 K Hoang 13/11/2022 Add new features, such as CORS. Update code and examples
34+
1.10.1 K Hoang 24/11/2022 Using new WiFi101_Generic library to send larger data
3435
*****************************************************************************************************************************/
3536

3637
// Class to simplify HTTP fetching on Arduino

src/WiFi_HTTPClient/WiFi_URLEncoder.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
@file Esp8266WebServer.h
1313
@author Ivan Grokhotkov
1414
15-
Version: 1.10.0
15+
Version: 1.10.1
1616
1717
Version Modified By Date Comments
1818
------- ----------- ---------- -----------
@@ -31,6 +31,7 @@
3131
1.9.4 K Hoang 06/09/2022 Restore support to ESP32 and ESP8266
3232
1.9.5 K Hoang 10/09/2022 Restore support to Teensy, etc. Fix bug in examples
3333
1.10.0 K Hoang 13/11/2022 Add new features, such as CORS. Update code and examples
34+
1.10.1 K Hoang 24/11/2022 Using new WiFi101_Generic library to send larger data
3435
*****************************************************************************************************************************/
3536

3637
// Library to simplify HTTP fetching on Arduino

src/WiFi_HTTPClient/WiFi_URLEncoder.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
@file Esp8266WebServer.h
1313
@author Ivan Grokhotkov
1414
15-
Version: 1.10.0
15+
Version: 1.10.1
1616
1717
Version Modified By Date Comments
1818
------- ----------- ---------- -----------
@@ -31,6 +31,7 @@
3131
1.9.4 K Hoang 06/09/2022 Restore support to ESP32 and ESP8266
3232
1.9.5 K Hoang 10/09/2022 Restore support to Teensy, etc. Fix bug in examples
3333
1.10.0 K Hoang 13/11/2022 Add new features, such as CORS. Update code and examples
34+
1.10.1 K Hoang 24/11/2022 Using new WiFi101_Generic library to send larger data
3435
*****************************************************************************************************************************/
3536

3637
// Library to simplify HTTP fetching on Arduino

src/WiFi_HTTPClient/WiFi_WebSocketClient.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
@file Esp8266WebServer.h
1313
@author Ivan Grokhotkov
1414
15-
Version: 1.10.0
15+
Version: 1.10.1
1616
1717
Version Modified By Date Comments
1818
------- ----------- ---------- -----------
@@ -31,6 +31,7 @@
3131
1.9.4 K Hoang 06/09/2022 Restore support to ESP32 and ESP8266
3232
1.9.5 K Hoang 10/09/2022 Restore support to Teensy, etc. Fix bug in examples
3333
1.10.0 K Hoang 13/11/2022 Add new features, such as CORS. Update code and examples
34+
1.10.1 K Hoang 24/11/2022 Using new WiFi101_Generic library to send larger data
3435
*****************************************************************************************************************************/
3536

3637
// (c) Copyright Arduino. 2016

src/WiFi_HTTPClient/WiFi_WebSocketClient.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
@file Esp8266WebServer.h
1313
@author Ivan Grokhotkov
1414
15-
Version: 1.10.0
15+
Version: 1.10.1
1616
1717
Version Modified By Date Comments
1818
------- ----------- ---------- -----------
@@ -31,6 +31,7 @@
3131
1.9.4 K Hoang 06/09/2022 Restore support to ESP32 and ESP8266
3232
1.9.5 K Hoang 10/09/2022 Restore support to Teensy, etc. Fix bug in examples
3333
1.10.0 K Hoang 13/11/2022 Add new features, such as CORS. Update code and examples
34+
1.10.1 K Hoang 24/11/2022 Using new WiFi101_Generic library to send larger data
3435
*****************************************************************************************************************************/
3536

3637
// (c) Copyright Arduino. 2016

src/utility/ESP_RequestHandlersImpl.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
@file Esp8266WebServer.h
1313
@author Ivan Grokhotkov
1414
15-
Version: 1.10.0
15+
Version: 1.10.1
1616
1717
Version Modified By Date Comments
1818
------- ----------- ---------- -----------
@@ -31,6 +31,7 @@
3131
1.9.4 K Hoang 06/09/2022 Restore support to ESP32 and ESP8266
3232
1.9.5 K Hoang 10/09/2022 Restore support to Teensy, etc. Fix bug in examples
3333
1.10.0 K Hoang 13/11/2022 Add new features, such as CORS. Update code and examples
34+
1.10.1 K Hoang 24/11/2022 Using new WiFi101_Generic library to send larger data
3435
*****************************************************************************************************************************/
3536

3637
#pragma once

src/utility/RequestHandler.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
@file Esp8266WebServer.h
1313
@author Ivan Grokhotkov
1414
15-
Version: 1.10.0
15+
Version: 1.10.1
1616
1717
Version Modified By Date Comments
1818
------- ----------- ---------- -----------
@@ -31,6 +31,7 @@
3131
1.9.4 K Hoang 06/09/2022 Restore support to ESP32 and ESP8266
3232
1.9.5 K Hoang 10/09/2022 Restore support to Teensy, etc. Fix bug in examples
3333
1.10.0 K Hoang 13/11/2022 Add new features, such as CORS. Update code and examples
34+
1.10.1 K Hoang 24/11/2022 Using new WiFi101_Generic library to send larger data
3435
*****************************************************************************************************************************/
3536

3637
#pragma once

0 commit comments

Comments
 (0)