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

Commit

Permalink
v1.6.4 to remove unused variable
Browse files Browse the repository at this point in the history
#### Releases v1.6.4

1. Remove unused variable to avoid compiler warning and error
  • Loading branch information
khoih-prog authored Dec 24, 2022
1 parent ee6a67c commit 80ac7ee
Show file tree
Hide file tree
Showing 32 changed files with 66 additions and 43 deletions.
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ If you don't find anything, please [open a new issue](https://github.com/khoih-p
Please ensure to specify the following:

* Arduino IDE version (e.g. 1.8.19) or Platform.io version
* Board Core Version (e.g. ESP32 core v2.0.5)
* Board Core Version (e.g. ESP32 core v2.0.6)
* Contextual information (e.g. what you were trying to achieve)
* Simplest possible steps to reproduce
* Anything that might be relevant in your opinion, such as:
Expand All @@ -31,7 +31,7 @@ Please be educated, civilized and constructive. Disrespective posts against [Git
```
Arduino IDE version: 1.8.19
ESP32_DEV board
ESP32 core v2.0.5
ESP32 core v2.0.6
OS: Ubuntu 20.04 LTS
Linux xy-Inspiron-3593 5.15.0-56-generic #62~20.04.1-Ubuntu SMP Tue Nov 22 21:24:20 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Expand Down
5 changes: 5 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
## Table of contents

* [Changelog](#changelog)
* [Releases v1.6.4](#releases-v164)
* [Releases v1.6.3](#releases-v163)
* [Releases v1.6.2](#releases-v162)

Expand All @@ -25,6 +26,10 @@

## Changelog

#### Releases v1.6.4

1. Remove unused variable to avoid compiler warning and error

#### Releases v1.6.3

1. Add `Async_WebSocketsServer`, `Async_HttpBasicAuth` and `MQTT` examples
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ String out;
void handleRoot(AsyncWebServerRequest *request)
{
out.reserve(STRING_SIZE);
char temp[70];

// clear the String to start over
out = String();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
*****************************************************************************************************************************/

#if !( defined(ESP32) )
#error This code is designed for (ESP32 + W5500) to run on ESP32 platform! Please check your Tools->Board setting.
#error This code is designed for (ESP32 + W5500) to run on ESP32 platform! Please check your Tools->Board setting.
#endif

#include <Arduino.h>
Expand Down Expand Up @@ -186,7 +186,7 @@ void drawGraph(AsyncWebServerRequest *request)
AWS_LOGDEBUG1("Total length to send in chunks =", out.length());

AsyncWebServerResponse *response = request->beginChunkedResponse("image/svg+xml", [](uint8_t *buffer, size_t maxLen,
size_t filledLength) -> size_t
size_t filledLength) -> size_t
{
size_t len = min(maxLen, out.length() - filledLength);
memcpy(buffer, out.c_str() + filledLength, len);
Expand Down
6 changes: 3 additions & 3 deletions examples/MQTTClient_Auth/defines.h
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/****************************************************************************************************************************
defines.h
For RP2040W with CYW43439 WiFi
For W5500 LwIP Ethernet in ESP32 (ESP32 + W5500)
AsyncWebServer_RP2040W is a library for the RP2040W with CYW43439 WiFi
AsyncWebServer_ESP32_W5500 is a library for the LwIP Ethernet W5500 in ESP32 to run AsyncWebServer
Based on and modified from ESPAsyncWebServer (https://github.com/me-no-dev/ESPAsyncWebServer)
Built by Khoi Hoang https://github.com/khoih-prog/AsyncWebServer_RP2040W
Built by Khoi Hoang https://github.com/khoih-prog/AsyncWebServer_ESP32_W5500
Licensed under GPLv3 license
*****************************************************************************************************************************/

Expand Down
7 changes: 3 additions & 4 deletions examples/MQTTClient_Basic/defines.h
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
/****************************************************************************************************************************
defines.h
For RP2040W with CYW43439 WiFi
For W5500 LwIP Ethernet in ESP32 (ESP32 + W5500)
AsyncWebServer_RP2040W is a library for the RP2040W with CYW43439 WiFi
AsyncWebServer_ESP32_W5500 is a library for the LwIP Ethernet W5500 in ESP32 to run AsyncWebServer
Based on and modified from ESPAsyncWebServer (https://github.com/me-no-dev/ESPAsyncWebServer)
Built by Khoi Hoang https://github.com/khoih-prog/AsyncWebServer_RP2040W
Built by Khoi Hoang https://github.com/khoih-prog/AsyncWebServer_ESP32_W5500
Licensed under GPLv3 license
*****************************************************************************************************************************/


#ifndef defines_h
#define defines_h

Expand Down
6 changes: 3 additions & 3 deletions examples/MQTT_ThingStream/defines.h
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/****************************************************************************************************************************
defines.h
For RP2040W with CYW43439 WiFi
For W5500 LwIP Ethernet in ESP32 (ESP32 + W5500)
AsyncWebServer_RP2040W is a library for the RP2040W with CYW43439 WiFi
AsyncWebServer_ESP32_W5500 is a library for the LwIP Ethernet W5500 in ESP32 to run AsyncWebServer
Based on and modified from ESPAsyncWebServer (https://github.com/me-no-dev/ESPAsyncWebServer)
Built by Khoi Hoang https://github.com/khoih-prog/AsyncWebServer_RP2040W
Built by Khoi Hoang https://github.com/khoih-prog/AsyncWebServer_ESP32_W5500
Licensed under GPLv3 license
*****************************************************************************************************************************/

Expand Down
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name":"AsyncWebServer_ESP32_W5500",
"version": "1.6.3",
"version": "1.6.4",
"description":"Asynchronous HTTP and WebSocket Server Library for (ESP32 + LwIP W5500). Now supporting using CString to save heap to send very large data and with examples to demo how to use beginChunkedResponse() to send large html in chunks",
"keywords":"http, async, async-webserver, websocket, webserver, esp32, w5500, lwip",
"authors":
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=AsyncWebServer_ESP32_W5500
version=1.6.3
version=1.6.4
author=Hristo Gochkov,Khoi Hoang
maintainer=Khoi Hoang <khoih.prog@gmail.com>
license=GPLv3
Expand Down
Binary file added pics/W5500.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pics/W5500_small.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion src/AsyncEventSource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,13 @@
You should have received a copy of the GNU Lesser General Public License along with this library;
if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Version: 1.6.3
Version: 1.6.4
Version Modified By Date Comments
------- ----------- ---------- -----------
1.6.2 K Hoang 30/11/2022 Initial porting for ENC28J60 + ESP32. Sync with AsyncWebServer_WT32_ETH01 v1.6.2
1.6.3 K Hoang 05/12/2022 Add Async_WebSocketsServer, MQTT examples
1.6.4 K Hoang 23/12/2022 Remove unused variable to avoid compiler warning and error
*****************************************************************************************************************************/

#include "Arduino.h"
Expand Down
3 changes: 2 additions & 1 deletion src/AsyncEventSource.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,13 @@
You should have received a copy of the GNU Lesser General Public License along with this library;
if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Version: 1.6.3
Version: 1.6.4
Version Modified By Date Comments
------- ----------- ---------- -----------
1.6.2 K Hoang 30/11/2022 Initial porting for ENC28J60 + ESP32. Sync with AsyncWebServer_WT32_ETH01 v1.6.2
1.6.3 K Hoang 05/12/2022 Add Async_WebSocketsServer, MQTT examples
1.6.4 K Hoang 23/12/2022 Remove unused variable to avoid compiler warning and error
*****************************************************************************************************************************/

#ifndef ASYNCEVENTSOURCE_H_
Expand Down
3 changes: 2 additions & 1 deletion src/AsyncJson.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,13 @@
You should have received a copy of the GNU Lesser General Public License along with this library;
if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Version: 1.6.3
Version: 1.6.4
Version Modified By Date Comments
------- ----------- ---------- -----------
1.6.2 K Hoang 30/11/2022 Initial porting for ENC28J60 + ESP32. Sync with AsyncWebServer_WT32_ETH01 v1.6.2
1.6.3 K Hoang 05/12/2022 Add Async_WebSocketsServer, MQTT examples
1.6.4 K Hoang 23/12/2022 Remove unused variable to avoid compiler warning and error
*****************************************************************************************************************************/
/*
Async Response to use with ArduinoJson and AsyncWebServer
Expand Down
3 changes: 2 additions & 1 deletion src/AsyncWebServer_ESP32_W5500.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,13 @@
You should have received a copy of the GNU Lesser General Public License along with this library;
if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Version: 1.6.3
Version: 1.6.4
Version Modified By Date Comments
------- ----------- ---------- -----------
1.6.2 K Hoang 30/11/2022 Initial porting for ENC28J60 + ESP32. Sync with AsyncWebServer_WT32_ETH01 v1.6.2
1.6.3 K Hoang 05/12/2022 Add Async_WebSocketsServer, MQTT examples
1.6.4 K Hoang 23/12/2022 Remove unused variable to avoid compiler warning and error
*****************************************************************************************************************************/

#include "AsyncWebServer_ESP32_W5500.h"
Expand Down
11 changes: 6 additions & 5 deletions src/AsyncWebServer_ESP32_W5500.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,13 @@
You should have received a copy of the GNU Lesser General Public License along with this library;
if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Version: 1.6.3
Version: 1.6.4
Version Modified By Date Comments
------- ----------- ---------- -----------
1.6.2 K Hoang 30/11/2022 Initial porting for ENC28J60 + ESP32. Sync with AsyncWebServer_WT32_ETH01 v1.6.2
1.6.3 K Hoang 05/12/2022 Add Async_WebSocketsServer, MQTT examples
1.6.4 K Hoang 23/12/2022 Remove unused variable to avoid compiler warning and error
*****************************************************************************************************************************/

#ifndef _AsyncWebServer_ESP32_W5500_H_
Expand All @@ -54,21 +55,21 @@
#warning Using code for ESP32 core v2.0.0+ in AsyncWebServer_ESP32_W5500.h
#endif

#define ASYNC_WEBSERVER_ESP32_W5500_VERSION "AsyncWebServer_ESP32_W5500 v1.6.3 for core v2.0.0+"
#define ASYNC_WEBSERVER_ESP32_W5500_VERSION "AsyncWebServer_ESP32_W5500 v1.6.4 for core v2.0.0+"
#else

#if (_ASYNC_WEBSERVER_LOGLEVEL_ > 3 )
#warning Using code for ESP32 core v1.0.6- in AsyncWebServer_ESP32_W5500.h
#endif

#define ASYNC_WEBSERVER_ESP32_W5500_VERSION "AsyncWebServer_ESP32_W5500 v1.6.3 for core v1.0.6-"
#define ASYNC_WEBSERVER_ESP32_W5500_VERSION "AsyncWebServer_ESP32_W5500 v1.6.4 for core v1.0.6-"
#endif

#define ASYNC_WEBSERVER_ESP32_W5500_VERSION_MAJOR 1
#define ASYNC_WEBSERVER_ESP32_W5500_VERSION_MINOR 6
#define ASYNC_WEBSERVER_ESP32_W5500_VERSION_PATCH 3
#define ASYNC_WEBSERVER_ESP32_W5500_VERSION_PATCH 4

#define ASYNC_WEBSERVER_ESP32_W5500_VERSION_INT 1006003
#define ASYNC_WEBSERVER_ESP32_W5500_VERSION_INT 1006004

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

Expand Down
3 changes: 2 additions & 1 deletion src/AsyncWebServer_ESP32_W5500_Debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,13 @@
You should have received a copy of the GNU Lesser General Public License along with this library;
if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Version: 1.6.3
Version: 1.6.4
Version Modified By Date Comments
------- ----------- ---------- -----------
1.6.2 K Hoang 30/11/2022 Initial porting for ENC28J60 + ESP32. Sync with AsyncWebServer_WT32_ETH01 v1.6.2
1.6.3 K Hoang 05/12/2022 Add Async_WebSocketsServer, MQTT examples
1.6.4 K Hoang 23/12/2022 Remove unused variable to avoid compiler warning and error
*****************************************************************************************************************************/

#pragma once
Expand Down
3 changes: 2 additions & 1 deletion src/AsyncWebSocket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,13 @@
You should have received a copy of the GNU Lesser General Public License along with this library;
if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Version: 1.6.3
Version: 1.6.4
Version Modified By Date Comments
------- ----------- ---------- -----------
1.6.2 K Hoang 30/11/2022 Initial porting for ENC28J60 + ESP32. Sync with AsyncWebServer_WT32_ETH01 v1.6.2
1.6.3 K Hoang 05/12/2022 Add Async_WebSocketsServer, MQTT examples
1.6.4 K Hoang 23/12/2022 Remove unused variable to avoid compiler warning and error
*****************************************************************************************************************************/

#include "Arduino.h"
Expand Down
3 changes: 2 additions & 1 deletion src/AsyncWebSocket.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,13 @@
You should have received a copy of the GNU Lesser General Public License along with this library;
if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Version: 1.6.3
Version: 1.6.4
Version Modified By Date Comments
------- ----------- ---------- -----------
1.6.2 K Hoang 30/11/2022 Initial porting for ENC28J60 + ESP32. Sync with AsyncWebServer_WT32_ETH01 v1.6.2
1.6.3 K Hoang 05/12/2022 Add Async_WebSocketsServer, MQTT examples
1.6.4 K Hoang 23/12/2022 Remove unused variable to avoid compiler warning and error
*****************************************************************************************************************************/

#ifndef ASYNCWEBSOCKET_H_
Expand Down
3 changes: 2 additions & 1 deletion src/AsyncWebSynchronization.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,13 @@
You should have received a copy of the GNU Lesser General Public License along with this library;
if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Version: 1.6.3
Version: 1.6.4
Version Modified By Date Comments
------- ----------- ---------- -----------
1.6.2 K Hoang 30/11/2022 Initial porting for ENC28J60 + ESP32. Sync with AsyncWebServer_WT32_ETH01 v1.6.2
1.6.3 K Hoang 05/12/2022 Add Async_WebSocketsServer, MQTT examples
1.6.4 K Hoang 23/12/2022 Remove unused variable to avoid compiler warning and error
*****************************************************************************************************************************/

#ifndef ASYNCWEBSYNCHRONIZATION_H_
Expand Down
3 changes: 2 additions & 1 deletion src/ESP32_W5500_SPIFFSEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,13 @@
You should have received a copy of the GNU Lesser General Public License along with this library;
if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Version: 1.6.3
Version: 1.6.4
Version Modified By Date Comments
------- ----------- ---------- -----------
1.6.2 K Hoang 30/11/2022 Initial porting for ENC28J60 + ESP32. Sync with AsyncWebServer_WT32_ETH01 v1.6.2
1.6.3 K Hoang 05/12/2022 Add Async_WebSocketsServer, MQTT examples
1.6.4 K Hoang 23/12/2022 Remove unused variable to avoid compiler warning and error
*****************************************************************************************************************************/

#include "ESP32_W5500_SPIFFSEditor.h"
Expand Down
3 changes: 2 additions & 1 deletion src/ESP32_W5500_SPIFFSEditor.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,13 @@
You should have received a copy of the GNU Lesser General Public License along with this library;
if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Version: 1.6.3
Version: 1.6.4
Version Modified By Date Comments
------- ----------- ---------- -----------
1.6.2 K Hoang 30/11/2022 Initial porting for ENC28J60 + ESP32. Sync with AsyncWebServer_WT32_ETH01 v1.6.2
1.6.3 K Hoang 05/12/2022 Add Async_WebSocketsServer, MQTT examples
1.6.4 K Hoang 23/12/2022 Remove unused variable to avoid compiler warning and error
*****************************************************************************************************************************/

#ifndef ESP32_W5500_SPIFFSEditor_H_
Expand Down
3 changes: 2 additions & 1 deletion src/StringArray.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,13 @@
You should have received a copy of the GNU Lesser General Public License along with this library;
if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Version: 1.6.3
Version: 1.6.4
Version Modified By Date Comments
------- ----------- ---------- -----------
1.6.2 K Hoang 30/11/2022 Initial porting for ENC28J60 + ESP32. Sync with AsyncWebServer_WT32_ETH01 v1.6.2
1.6.3 K Hoang 05/12/2022 Add Async_WebSocketsServer, MQTT examples
1.6.4 K Hoang 23/12/2022 Remove unused variable to avoid compiler warning and error
*****************************************************************************************************************************/

#ifndef STRINGARRAY_H_
Expand Down
3 changes: 2 additions & 1 deletion src/WebAuthentication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,13 @@
You should have received a copy of the GNU Lesser General Public License along with this library;
if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Version: 1.6.3
Version: 1.6.4
Version Modified By Date Comments
------- ----------- ---------- -----------
1.6.2 K Hoang 30/11/2022 Initial porting for ENC28J60 + ESP32. Sync with AsyncWebServer_WT32_ETH01 v1.6.2
1.6.3 K Hoang 05/12/2022 Add Async_WebSocketsServer, MQTT examples
1.6.4 K Hoang 23/12/2022 Remove unused variable to avoid compiler warning and error
*****************************************************************************************************************************/

#include "WebAuthentication.h"
Expand Down
3 changes: 2 additions & 1 deletion src/WebAuthentication.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,13 @@
You should have received a copy of the GNU Lesser General Public License along with this library;
if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Version: 1.6.3
Version: 1.6.4
Version Modified By Date Comments
------- ----------- ---------- -----------
1.6.2 K Hoang 30/11/2022 Initial porting for ENC28J60 + ESP32. Sync with AsyncWebServer_WT32_ETH01 v1.6.2
1.6.3 K Hoang 05/12/2022 Add Async_WebSocketsServer, MQTT examples
1.6.4 K Hoang 23/12/2022 Remove unused variable to avoid compiler warning and error
*****************************************************************************************************************************/

#ifndef WEB_AUTHENTICATION_H_
Expand Down
3 changes: 2 additions & 1 deletion src/WebHandlerImpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,13 @@
You should have received a copy of the GNU Lesser General Public License along with this library;
if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Version: 1.6.3
Version: 1.6.4
Version Modified By Date Comments
------- ----------- ---------- -----------
1.6.2 K Hoang 30/11/2022 Initial porting for ENC28J60 + ESP32. Sync with AsyncWebServer_WT32_ETH01 v1.6.2
1.6.3 K Hoang 05/12/2022 Add Async_WebSocketsServer, MQTT examples
1.6.4 K Hoang 23/12/2022 Remove unused variable to avoid compiler warning and error
*****************************************************************************************************************************/

#ifndef ASYNCWEBSERVERHANDLERIMPL_H_
Expand Down
3 changes: 2 additions & 1 deletion src/WebHandlers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,13 @@
You should have received a copy of the GNU Lesser General Public License along with this library;
if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Version: 1.6.3
Version: 1.6.4
Version Modified By Date Comments
------- ----------- ---------- -----------
1.6.2 K Hoang 30/11/2022 Initial porting for ENC28J60 + ESP32. Sync with AsyncWebServer_WT32_ETH01 v1.6.2
1.6.3 K Hoang 05/12/2022 Add Async_WebSocketsServer, MQTT examples
1.6.4 K Hoang 23/12/2022 Remove unused variable to avoid compiler warning and error
*****************************************************************************************************************************/

#include "AsyncWebServer_ESP32_W5500.h"
Expand Down
Loading

0 comments on commit 80ac7ee

Please sign in to comment.