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

Commit

Permalink
v1.10.1 to use new WiFi101_Generic library
Browse files Browse the repository at this point in the history
### 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`
  • Loading branch information
khoih-prog authored Nov 24, 2022
1 parent 9094e54 commit df0f974
Show file tree
Hide file tree
Showing 27 changed files with 167 additions and 95 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Arduino IDE version: 1.8.19
RASPBERRY_PI_PICO board
ArduinoCore-mbed v3.4.1
OS: Ubuntu 20.04 LTS
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
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
Context:
I encountered a crash while using this library
Expand Down
139 changes: 83 additions & 56 deletions README.md

Large diffs are not rendered by default.

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

* [Changelog](#changelog)
* [Releases v1.10.1](#releases-v1101)
* [Releases v1.10.0](#releases-v1100)
* [Releases v1.9.5](#releases-v195)
* [Releases v1.9.4](#releases-v194)
Expand Down Expand Up @@ -57,6 +58,11 @@

## Changelog

### 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`

### Releases v1.10.0

1. Add new features, such as `CORS`, etc.
Expand Down
14 changes: 8 additions & 6 deletions library.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "WiFiWebServer",
"version": "1.10.0",
"version": "1.10.1",
"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",
"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",
"authors":
Expand All @@ -27,7 +27,13 @@
{
"owner": "khoih-prog",
"name": "WiFiNINA_Generic",
"version": ">=1.8.14-7",
"version": ">=1.8.15-1",
"platforms": ["*"]
},
{
"owner": "khoih-prog",
"name": "WiFi101_Generic",
"version": ">=1.0.0",
"platforms": ["*"]
},
{
Expand All @@ -48,10 +54,6 @@
"version": ">=1.4.1",
"platforms": ["*"]
},
{
"name": "WiFi101",
"version": "https://github.com/khoih-prog/WiFi101"
},
{
"owner": "jandrassy",
"name": "WiFiEspAT",
Expand Down
4 changes: 2 additions & 2 deletions library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=WiFiWebServer
version=1.10.0
version=1.10.1
author=Khoi Hoang
license=MIT
maintainer=Khoi Hoang <khoih.prog@gmail.com>
Expand All @@ -8,5 +8,5 @@ paragraph=The WebServer supports HTTP GET and POST requests, provides argument p
category=Communication
url=https://github.com/khoih-prog/WiFiWebServer
architectures=*
depends=Functional-Vlpp, WiFiNINA_Generic, ESP_AT_Lib, WiFiEspAT, WiFiMulti_Generic
depends=Functional-Vlpp, WiFiNINA_Generic, WiFi101_Generic, ESP_AT_Lib, WiFiEspAT, WiFiMulti_Generic
includes=WiFiWebServer.h, WiFiWebServer.hpp, WiFiHttpClient.h
6 changes: 4 additions & 2 deletions platformio/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,14 @@ lib_ldf_mode = chain+
lib_deps =
; PlatformIO 4.x
; Functional-Vlpp@>=1.0.2
; WiFiNINA_Generic@>=1.8.14-7
; WiFiNINA_Generic@>=1.8.15-1
; WiFi101_Generic@>=1.0.0
; WiFiMulti_Generic@>=1.2.2
; ESP_AT_Lib@>=1.4.1
; PlatformIO 5.x
khoih-prog/Functional-Vlpp@>=1.0.2
khoih-prog/WiFiNINA_Generic@>=1.8.14-7
khoih-prog/WiFiNINA_Generic@>=1.8.15-1
khoih-prog/WiFi101_Generic@>=1.0.0
khoih-prog/WiFiMulti_Generic@>=1.2.2
khoih-prog/ESP_AT_Lib@>=1.4.1

Expand Down
3 changes: 2 additions & 1 deletion src/Parsing-impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
@file Esp8266WebServer.h
@author Ivan Grokhotkov
Version: 1.10.0
Version: 1.10.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -31,6 +31,7 @@
1.9.4 K Hoang 06/09/2022 Restore support to ESP32 and ESP8266
1.9.5 K Hoang 10/09/2022 Restore support to Teensy, etc. Fix bug in examples
1.10.0 K Hoang 13/11/2022 Add new features, such as CORS. Update code and examples
1.10.1 K Hoang 24/11/2022 Using new WiFi101_Generic library to send larger data
**********************************************************************************************************************************/

#pragma once
Expand Down
3 changes: 2 additions & 1 deletion src/Uri.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
@file Esp8266WebServer.h
@author Ivan Grokhotkov
Version: 1.10.0
Version: 1.10.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -31,6 +31,7 @@
1.9.4 K Hoang 06/09/2022 Restore support to ESP32 and ESP8266
1.9.5 K Hoang 10/09/2022 Restore support to Teensy, etc. Fix bug in examples
1.10.0 K Hoang 13/11/2022 Add new features, such as CORS. Update code and examples
1.10.1 K Hoang 24/11/2022 Using new WiFi101_Generic library to send larger data
*****************************************************************************************************************************/

#ifndef URI_H
Expand Down
3 changes: 2 additions & 1 deletion src/WiFiHttpClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
@file Esp8266WebServer.h
@author Ivan Grokhotkov
Version: 1.10.0
Version: 1.10.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -31,6 +31,7 @@
1.9.4 K Hoang 06/09/2022 Restore support to ESP32 and ESP8266
1.9.5 K Hoang 10/09/2022 Restore support to Teensy, etc. Fix bug in examples
1.10.0 K Hoang 13/11/2022 Add new features, such as CORS. Update code and examples
1.10.1 K Hoang 24/11/2022 Using new WiFi101_Generic library to send larger data
*****************************************************************************************************************************/

// Library to simplify HTTP fetching on Arduino
Expand Down
3 changes: 2 additions & 1 deletion src/WiFiWebServer-impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
@file Esp8266WebServer.h
@author Ivan Grokhotkov
Version: 1.10.0
Version: 1.10.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -31,6 +31,7 @@
1.9.4 K Hoang 06/09/2022 Restore support to ESP32 and ESP8266
1.9.5 K Hoang 10/09/2022 Restore support to Teensy, etc. Fix bug in examples
1.10.0 K Hoang 13/11/2022 Add new features, such as CORS. Update code and examples
1.10.1 K Hoang 24/11/2022 Using new WiFi101_Generic library to send larger data
**********************************************************************************************************************************/

#pragma once
Expand Down
9 changes: 5 additions & 4 deletions src/WiFiWebServer.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
@file Esp8266WebServer.h
@author Ivan Grokhotkov
Version: 1.10.0
Version: 1.10.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -31,6 +31,7 @@
1.9.4 K Hoang 06/09/2022 Restore support to ESP32 and ESP8266
1.9.5 K Hoang 10/09/2022 Restore support to Teensy, etc. Fix bug in examples
1.10.0 K Hoang 13/11/2022 Add new features, such as CORS. Update code and examples
1.10.1 K Hoang 24/11/2022 Using new WiFi101_Generic library to send larger data
**********************************************************************************************************************************/

#pragma once
Expand All @@ -39,13 +40,13 @@
#define WiFiWebServer_H

#ifndef WIFI_WEBSERVER_VERSION
#define WIFI_WEBSERVER_VERSION "WiFiWebServer v1.10.0"
#define WIFI_WEBSERVER_VERSION "WiFiWebServer v1.10.1"

#define WIFI_WEBSERVER_VERSION_MAJOR 1
#define WIFI_WEBSERVER_VERSION_MINOR 10
#define WIFI_WEBSERVER_VERSION_PATCH 0
#define WIFI_WEBSERVER_VERSION_PATCH 1

#define WIFI_WEBSERVER_VERSION_INT 1010000
#define WIFI_WEBSERVER_VERSION_INT 1010001
#endif

#include "WiFiWebServer.hpp"
Expand Down
25 changes: 20 additions & 5 deletions src/WiFiWebServer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
@file Esp8266WebServer.h
@author Ivan Grokhotkov
Version: 1.10.0
Version: 1.10.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -31,6 +31,7 @@
1.9.4 K Hoang 06/09/2022 Restore support to ESP32 and ESP8266
1.9.5 K Hoang 10/09/2022 Restore support to Teensy, etc. Fix bug in examples
1.10.0 K Hoang 13/11/2022 Add new features, such as CORS. Update code and examples
1.10.1 K Hoang 24/11/2022 Using new WiFi101_Generic library to send larger data
**********************************************************************************************************************************/

#pragma once
Expand Down Expand Up @@ -216,6 +217,11 @@

////////////////////////////////////////

// Default to use
#if !defined(USE_WIFI101_GENERIC)
#define USE_WIFI101_GENERIC true
#endif

// Modify to use new WiFiNINA_Generic library to support boards besides Nano-33 IoT, MKRWiFi1010, Adafruit MetroM4, etc.
#if USE_WIFI_NINA
#include <WiFiNINA_Generic.h>
Expand All @@ -224,11 +230,20 @@
#warning Use WiFiNINA_Generic from WiFiWebServer
#endif
#elif USE_WIFI101
#include <WiFi101.h>

#if (_WIFI_LOGLEVEL_ > 2)
#warning Use WiFi101 from WiFiWebServer
#if USE_WIFI101_GENERIC
#include <WiFi101_Generic.h>

#if (_WIFI_LOGLEVEL_ > 2)
#warning Use WiFi101_Generic from WiFiWebServer
#endif
#else
#include <WiFi101.h>

#if (_WIFI_LOGLEVEL_ > 2)
#warning Use WiFi101 from WiFiWebServer
#endif
#endif

#elif USE_WIFI_CUSTOM

#if (_WIFI_LOGLEVEL_ > 2)
Expand Down
3 changes: 2 additions & 1 deletion src/WiFi_HTTPClient/WiFi_HttpClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
@file Esp8266WebServer.h
@author Ivan Grokhotkov
Version: 1.10.0
Version: 1.10.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -31,6 +31,7 @@
1.9.4 K Hoang 06/09/2022 Restore support to ESP32 and ESP8266
1.9.5 K Hoang 10/09/2022 Restore support to Teensy, etc. Fix bug in examples
1.10.0 K Hoang 13/11/2022 Add new features, such as CORS. Update code and examples
1.10.1 K Hoang 24/11/2022 Using new WiFi101_Generic library to send larger data
*****************************************************************************************************************************/

// Class to simplify HTTP fetching on Arduino
Expand Down
3 changes: 2 additions & 1 deletion src/WiFi_HTTPClient/WiFi_HttpClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
@file Esp8266WebServer.h
@author Ivan Grokhotkov
Version: 1.10.0
Version: 1.10.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -31,6 +31,7 @@
1.9.4 K Hoang 06/09/2022 Restore support to ESP32 and ESP8266
1.9.5 K Hoang 10/09/2022 Restore support to Teensy, etc. Fix bug in examples
1.10.0 K Hoang 13/11/2022 Add new features, such as CORS. Update code and examples
1.10.1 K Hoang 24/11/2022 Using new WiFi101_Generic library to send larger data
*****************************************************************************************************************************/

// Class to simplify HTTP fetching on Arduino
Expand Down
3 changes: 2 additions & 1 deletion src/WiFi_HTTPClient/WiFi_URLEncoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
@file Esp8266WebServer.h
@author Ivan Grokhotkov
Version: 1.10.0
Version: 1.10.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -31,6 +31,7 @@
1.9.4 K Hoang 06/09/2022 Restore support to ESP32 and ESP8266
1.9.5 K Hoang 10/09/2022 Restore support to Teensy, etc. Fix bug in examples
1.10.0 K Hoang 13/11/2022 Add new features, such as CORS. Update code and examples
1.10.1 K Hoang 24/11/2022 Using new WiFi101_Generic library to send larger data
*****************************************************************************************************************************/

// Library to simplify HTTP fetching on Arduino
Expand Down
3 changes: 2 additions & 1 deletion src/WiFi_HTTPClient/WiFi_URLEncoder.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
@file Esp8266WebServer.h
@author Ivan Grokhotkov
Version: 1.10.0
Version: 1.10.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -31,6 +31,7 @@
1.9.4 K Hoang 06/09/2022 Restore support to ESP32 and ESP8266
1.9.5 K Hoang 10/09/2022 Restore support to Teensy, etc. Fix bug in examples
1.10.0 K Hoang 13/11/2022 Add new features, such as CORS. Update code and examples
1.10.1 K Hoang 24/11/2022 Using new WiFi101_Generic library to send larger data
*****************************************************************************************************************************/

// Library to simplify HTTP fetching on Arduino
Expand Down
3 changes: 2 additions & 1 deletion src/WiFi_HTTPClient/WiFi_WebSocketClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
@file Esp8266WebServer.h
@author Ivan Grokhotkov
Version: 1.10.0
Version: 1.10.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -31,6 +31,7 @@
1.9.4 K Hoang 06/09/2022 Restore support to ESP32 and ESP8266
1.9.5 K Hoang 10/09/2022 Restore support to Teensy, etc. Fix bug in examples
1.10.0 K Hoang 13/11/2022 Add new features, such as CORS. Update code and examples
1.10.1 K Hoang 24/11/2022 Using new WiFi101_Generic library to send larger data
*****************************************************************************************************************************/

// (c) Copyright Arduino. 2016
Expand Down
3 changes: 2 additions & 1 deletion src/WiFi_HTTPClient/WiFi_WebSocketClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
@file Esp8266WebServer.h
@author Ivan Grokhotkov
Version: 1.10.0
Version: 1.10.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -31,6 +31,7 @@
1.9.4 K Hoang 06/09/2022 Restore support to ESP32 and ESP8266
1.9.5 K Hoang 10/09/2022 Restore support to Teensy, etc. Fix bug in examples
1.10.0 K Hoang 13/11/2022 Add new features, such as CORS. Update code and examples
1.10.1 K Hoang 24/11/2022 Using new WiFi101_Generic library to send larger data
*****************************************************************************************************************************/

// (c) Copyright Arduino. 2016
Expand Down
3 changes: 2 additions & 1 deletion src/utility/ESP_RequestHandlersImpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
@file Esp8266WebServer.h
@author Ivan Grokhotkov
Version: 1.10.0
Version: 1.10.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -31,6 +31,7 @@
1.9.4 K Hoang 06/09/2022 Restore support to ESP32 and ESP8266
1.9.5 K Hoang 10/09/2022 Restore support to Teensy, etc. Fix bug in examples
1.10.0 K Hoang 13/11/2022 Add new features, such as CORS. Update code and examples
1.10.1 K Hoang 24/11/2022 Using new WiFi101_Generic library to send larger data
*****************************************************************************************************************************/

#pragma once
Expand Down
3 changes: 2 additions & 1 deletion src/utility/RequestHandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
@file Esp8266WebServer.h
@author Ivan Grokhotkov
Version: 1.10.0
Version: 1.10.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -31,6 +31,7 @@
1.9.4 K Hoang 06/09/2022 Restore support to ESP32 and ESP8266
1.9.5 K Hoang 10/09/2022 Restore support to Teensy, etc. Fix bug in examples
1.10.0 K Hoang 13/11/2022 Add new features, such as CORS. Update code and examples
1.10.1 K Hoang 24/11/2022 Using new WiFi101_Generic library to send larger data
*****************************************************************************************************************************/

#pragma once
Expand Down
Loading

0 comments on commit df0f974

Please sign in to comment.