diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index e310910..758d44d 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -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 -* `RP2040` Core Version (e.g. RP2040 core v2.5.4) +* `RP2040` Core Version (e.g. RP2040 core v2.6.0) * `RP2040W` Board type (e.g. RASPBERRY_PI_PICO_W) * Contextual information (e.g. what you were trying to achieve) * Simplest possible steps to reproduce @@ -28,7 +28,7 @@ Please ensure to specify the following: ``` Arduino IDE version: 1.8.19 -RP2040 core v2.5.4 +RP2040 core v2.6.0 RASPBERRY_PI_PICO_W Module OS: Ubuntu 20.04 LTS Linux xy-Inspiron-3593 5.15.0-48-generic #54~20.04.1-Ubuntu SMP Thu Sep 1 16:17:26 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux diff --git a/changelog.md b/changelog.md index 079a474..fdabbba 100644 --- a/changelog.md +++ b/changelog.md @@ -11,6 +11,7 @@ ## Table of Contents * [Changelog](#changelog) + * [Release v1.2.1](#Release-v121) * [Release v1.2.0](#Release-v120) * [Release v1.1.2](#Release-v112) * [Release v1.1.1](#Release-v111) @@ -25,6 +26,10 @@ ## Changelog +#### Releases v1.2.1 + +1. Don't need `memmove()`, CString no longer destroyed. Check [All memmove() removed - string no longer destroyed #11](https://github.com/khoih-prog/Portenta_H7_AsyncWebServer/pull/11) + ### Release v1.2.0 1. Support using `CString` to save heap to send `very large data`. Check [request->send(200, textPlainStr, jsonChartDataCharStr); - Without using String Class - to save heap #8](https://github.com/khoih-prog/Portenta_H7_AsyncWebServer/pull/8) diff --git a/library.json b/library.json index 5b472a4..f503b0e 100644 --- a/library.json +++ b/library.json @@ -1,6 +1,6 @@ { "name": "AsyncWebServer_RP2040W", - "version": "1.2.0", + "version": "1.2.1", "keywords": "http, async, websocket, webserver, async-webserver, async-tcp, async-udp, async-websocket, async-http, ssl, tls, rp2040, rp2040w, raspberry-pi-pico-w, cyw43439, wifi", "description": "Asynchronous WebServer Library for RASPBERRY_PI_PICO_W using CYW43439 WiFi with arduino-pico core. This library, which is relied on AsyncTCP_RP2040W, is part of a series of advanced Async libraries for RP2040W, such as AsyncTCP_RP2040W, AsyncUDP_RP2040W, AsyncWebServer_RP2040W, AsyncHTTPRequest_RP2040W, AsyncHTTPSRequest_RP2040W, etc. Now can display programmed WiFi country-code and support using CString to save heap to send very large data", "authors": diff --git a/library.properties b/library.properties index cd3bada..a882870 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=AsyncWebServer_RP2040W -version=1.2.0 +version=1.2.1 author=Hristo Gochkov,Khoi Hoang maintainer=Khoi Hoang sentence=Asynchronous WebServer Library for RASPBERRY_PI_PICO_W using CYW43439 WiFi with arduino-pico core. diff --git a/src/AsyncEventSource_RP2040W.cpp b/src/AsyncEventSource_RP2040W.cpp index 28f0d61..af2e216 100644 --- a/src/AsyncEventSource_RP2040W.cpp +++ b/src/AsyncEventSource_RP2040W.cpp @@ -9,7 +9,7 @@ Built by Khoi Hoang https://github.com/khoih-prog/AsyncWebServer_RP2040W Licensed under GPLv3 license - Version: 1.2.0 + Version: 1.2.1 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -19,7 +19,8 @@ 1.0.3 K Hoang 22/09/2022 To display country-code and tempo method to modify in arduino-pico core 1.1.0 K Hoang 25/09/2022 Fix issue with slow browsers or network 1.1.2 K Hoang 26/09/2022 Add function and example to support favicon.ico - 1.2.0 K Hoang 03/10/2022 Option to use cString instead og String to save Heap + 1.2.0 K Hoang 03/10/2022 Option to use cString instead of String to save Heap + 1.2.1 K Hoang 05/10/2022 Don't need memmove(), String no longer destroyed *****************************************************************************************************************************/ #if !defined(_RP2040W_AWS_LOGLEVEL_) diff --git a/src/AsyncEventSource_RP2040W.h b/src/AsyncEventSource_RP2040W.h index 59b5a71..43905f4 100644 --- a/src/AsyncEventSource_RP2040W.h +++ b/src/AsyncEventSource_RP2040W.h @@ -9,7 +9,7 @@ Built by Khoi Hoang https://github.com/khoih-prog/AsyncWebServer_RP2040W Licensed under GPLv3 license - Version: 1.2.0 + Version: 1.2.1 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -19,7 +19,8 @@ 1.0.3 K Hoang 22/09/2022 To display country-code and tempo method to modify in arduino-pico core 1.1.0 K Hoang 25/09/2022 Fix issue with slow browsers or network 1.1.2 K Hoang 26/09/2022 Add function and example to support favicon.ico - 1.2.0 K Hoang 03/10/2022 Option to use cString instead og String to save Heap + 1.2.0 K Hoang 03/10/2022 Option to use cString instead of String to save Heap + 1.2.1 K Hoang 05/10/2022 Don't need memmove(), String no longer destroyed *****************************************************************************************************************************/ #pragma once diff --git a/src/AsyncJson_RP2040W.h b/src/AsyncJson_RP2040W.h index d9c9936..588c863 100644 --- a/src/AsyncJson_RP2040W.h +++ b/src/AsyncJson_RP2040W.h @@ -9,7 +9,7 @@ Built by Khoi Hoang https://github.com/khoih-prog/AsyncWebServer_RP2040W Licensed under GPLv3 license - Version: 1.2.0 + Version: 1.2.1 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -19,7 +19,8 @@ 1.0.3 K Hoang 22/09/2022 To display country-code and tempo method to modify in arduino-pico core 1.1.0 K Hoang 25/09/2022 Fix issue with slow browsers or network 1.1.2 K Hoang 26/09/2022 Add function and example to support favicon.ico - 1.2.0 K Hoang 03/10/2022 Option to use cString instead og String to save Heap + 1.2.0 K Hoang 03/10/2022 Option to use cString instead of String to save Heap + 1.2.1 K Hoang 05/10/2022 Don't need memmove(), String no longer destroyed *****************************************************************************************************************************/ /* Async Response to use with ArduinoJson and AsyncWebServer diff --git a/src/AsyncWebAuthentication_RP2040W.cpp b/src/AsyncWebAuthentication_RP2040W.cpp index 48d8dcb..7e17cdd 100644 --- a/src/AsyncWebAuthentication_RP2040W.cpp +++ b/src/AsyncWebAuthentication_RP2040W.cpp @@ -9,7 +9,7 @@ Built by Khoi Hoang https://github.com/khoih-prog/AsyncWebServer_RP2040W Licensed under GPLv3 license - Version: 1.2.0 + Version: 1.2.1 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -19,7 +19,8 @@ 1.0.3 K Hoang 22/09/2022 To display country-code and tempo method to modify in arduino-pico core 1.1.0 K Hoang 25/09/2022 Fix issue with slow browsers or network 1.1.2 K Hoang 26/09/2022 Add function and example to support favicon.ico - 1.2.0 K Hoang 03/10/2022 Option to use cString instead og String to save Heap + 1.2.0 K Hoang 03/10/2022 Option to use cString instead of String to save Heap + 1.2.1 K Hoang 05/10/2022 Don't need memmove(), String no longer destroyed *****************************************************************************************************************************/ #if !defined(_RP2040W_AWS_LOGLEVEL_) diff --git a/src/AsyncWebAuthentication_RP2040W.h b/src/AsyncWebAuthentication_RP2040W.h index 8cb9296..c108e60 100644 --- a/src/AsyncWebAuthentication_RP2040W.h +++ b/src/AsyncWebAuthentication_RP2040W.h @@ -9,7 +9,7 @@ Built by Khoi Hoang https://github.com/khoih-prog/AsyncWebServer_RP2040W Licensed under GPLv3 license - Version: 1.2.0 + Version: 1.2.1 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -19,7 +19,8 @@ 1.0.3 K Hoang 22/09/2022 To display country-code and tempo method to modify in arduino-pico core 1.1.0 K Hoang 25/09/2022 Fix issue with slow browsers or network 1.1.2 K Hoang 26/09/2022 Add function and example to support favicon.ico - 1.2.0 K Hoang 03/10/2022 Option to use cString instead og String to save Heap + 1.2.0 K Hoang 03/10/2022 Option to use cString instead of String to save Heap + 1.2.1 K Hoang 05/10/2022 Don't need memmove(), String no longer destroyed *****************************************************************************************************************************/ #pragma once diff --git a/src/AsyncWebHandlerImpl_RP2040W.h b/src/AsyncWebHandlerImpl_RP2040W.h index 9477569..4aa78c6 100644 --- a/src/AsyncWebHandlerImpl_RP2040W.h +++ b/src/AsyncWebHandlerImpl_RP2040W.h @@ -9,7 +9,7 @@ Built by Khoi Hoang https://github.com/khoih-prog/AsyncWebServer_RP2040W Licensed under GPLv3 license - Version: 1.2.0 + Version: 1.2.1 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -19,7 +19,8 @@ 1.0.3 K Hoang 22/09/2022 To display country-code and tempo method to modify in arduino-pico core 1.1.0 K Hoang 25/09/2022 Fix issue with slow browsers or network 1.1.2 K Hoang 26/09/2022 Add function and example to support favicon.ico - 1.2.0 K Hoang 03/10/2022 Option to use cString instead og String to save Heap + 1.2.0 K Hoang 03/10/2022 Option to use cString instead of String to save Heap + 1.2.1 K Hoang 05/10/2022 Don't need memmove(), String no longer destroyed *****************************************************************************************************************************/ #pragma once diff --git a/src/AsyncWebHandlers_RP2040W.cpp b/src/AsyncWebHandlers_RP2040W.cpp index 8029a0c..421326c 100644 --- a/src/AsyncWebHandlers_RP2040W.cpp +++ b/src/AsyncWebHandlers_RP2040W.cpp @@ -9,7 +9,7 @@ Built by Khoi Hoang https://github.com/khoih-prog/AsyncWebServer_RP2040W Licensed under GPLv3 license - Version: 1.2.0 + Version: 1.2.1 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -19,7 +19,8 @@ 1.0.3 K Hoang 22/09/2022 To display country-code and tempo method to modify in arduino-pico core 1.1.0 K Hoang 25/09/2022 Fix issue with slow browsers or network 1.1.2 K Hoang 26/09/2022 Add function and example to support favicon.ico - 1.2.0 K Hoang 03/10/2022 Option to use cString instead og String to save Heap + 1.2.0 K Hoang 03/10/2022 Option to use cString instead of String to save Heap + 1.2.1 K Hoang 05/10/2022 Don't need memmove(), String no longer destroyed *****************************************************************************************************************************/ #if !defined(_RP2040W_AWS_LOGLEVEL_) diff --git a/src/AsyncWebRequest_RP2040W.cpp b/src/AsyncWebRequest_RP2040W.cpp index c5ef254..d4fbd7d 100644 --- a/src/AsyncWebRequest_RP2040W.cpp +++ b/src/AsyncWebRequest_RP2040W.cpp @@ -9,7 +9,7 @@ Built by Khoi Hoang https://github.com/khoih-prog/AsyncWebServer_RP2040W Licensed under GPLv3 license - Version: 1.2.0 + Version: 1.2.1 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -19,7 +19,8 @@ 1.0.3 K Hoang 22/09/2022 To display country-code and tempo method to modify in arduino-pico core 1.1.0 K Hoang 25/09/2022 Fix issue with slow browsers or network 1.1.2 K Hoang 26/09/2022 Add function and example to support favicon.ico - 1.2.0 K Hoang 03/10/2022 Option to use cString instead og String to save Heap + 1.2.0 K Hoang 03/10/2022 Option to use cString instead of String to save Heap + 1.2.1 K Hoang 05/10/2022 Don't need memmove(), String no longer destroyed *****************************************************************************************************************************/ #if !defined(_RP2040W_AWS_LOGLEVEL_) diff --git a/src/AsyncWebResponseImpl_RP2040W.h b/src/AsyncWebResponseImpl_RP2040W.h index 3378c21..fa31f06 100644 --- a/src/AsyncWebResponseImpl_RP2040W.h +++ b/src/AsyncWebResponseImpl_RP2040W.h @@ -9,7 +9,7 @@ Built by Khoi Hoang https://github.com/khoih-prog/AsyncWebServer_RP2040W Licensed under GPLv3 license - Version: 1.2.0 + Version: 1.2.1 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -19,7 +19,8 @@ 1.0.3 K Hoang 22/09/2022 To display country-code and tempo method to modify in arduino-pico core 1.1.0 K Hoang 25/09/2022 Fix issue with slow browsers or network 1.1.2 K Hoang 26/09/2022 Add function and example to support favicon.ico - 1.2.0 K Hoang 03/10/2022 Option to use cString instead og String to save Heap + 1.2.0 K Hoang 03/10/2022 Option to use cString instead of String to save Heap + 1.2.1 K Hoang 05/10/2022 Don't need memmove(), String no longer destroyed *****************************************************************************************************************************/ #pragma once @@ -43,6 +44,7 @@ class AsyncBasicResponse: public AsyncWebServerResponse String _content; char *_contentCstr; // RSMOD + String _partialHeader; public: AsyncBasicResponse(int code, const String& contentType = String(), const String& content = String()); diff --git a/src/AsyncWebResponses_RP2040W.cpp b/src/AsyncWebResponses_RP2040W.cpp index ff9d7ba..1955c5b 100644 --- a/src/AsyncWebResponses_RP2040W.cpp +++ b/src/AsyncWebResponses_RP2040W.cpp @@ -9,7 +9,7 @@ Built by Khoi Hoang https://github.com/khoih-prog/AsyncWebServer_RP2040W Licensed under GPLv3 license - Version: 1.2.0 + Version: 1.2.1 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -19,7 +19,8 @@ 1.0.3 K Hoang 22/09/2022 To display country-code and tempo method to modify in arduino-pico core 1.1.0 K Hoang 25/09/2022 Fix issue with slow browsers or network 1.1.2 K Hoang 26/09/2022 Add function and example to support favicon.ico - 1.2.0 K Hoang 03/10/2022 Option to use cString instead og String to save Heap + 1.2.0 K Hoang 03/10/2022 Option to use cString instead of String to save Heap + 1.2.1 K Hoang 05/10/2022 Don't need memmove(), String no longer destroyed *****************************************************************************************************************************/ #if !defined(_RP2040W_AWS_LOGLEVEL_) @@ -297,6 +298,7 @@ AsyncBasicResponse::AsyncBasicResponse(int code, const String& contentType, cons _content = String(""); _contentCstr = (char *)content; // RSMOD _contentType = contentType; + _partialHeader = String(); int iLen; @@ -320,8 +322,11 @@ AsyncBasicResponse::AsyncBasicResponse(int code, const String& contentType, cons { _code = code; _content = content; + _contentCstr = nullptr; // RSMOD + _contentType = contentType; + _partialHeader = String(); if (_content.length()) { @@ -375,21 +380,13 @@ void AsyncBasicResponse::_respond(AsyncWebServerRequest *request) if (_contentCstr) { - memmove(&_contentCstr[outLen], _contentCstr, _contentLength); - memcpy(_contentCstr, out.c_str(), outLen); - outLen += _contentLength; - - AWS_LOGDEBUG1("_contentCstr =", _contentCstr); - - _writtenLength += request->client()->write(_contentCstr, outLen); - } - else - { - out += _content; - outLen += _contentLength; - _writtenLength += request->client()->write(out.c_str(), outLen); + _content = String(_contentCstr); // short _contentCstr - so just send as Arduino String - not much of a penalty - fall into below } + out += _content; + outLen += _contentLength; + _writtenLength += request->client()->write(out.c_str(), outLen); + _state = RESPONSE_WAIT_ACK; } else if (space && space < outLen) @@ -400,21 +397,18 @@ void AsyncBasicResponse::_respond(AsyncWebServerRequest *request) if (_contentCstr) { - int deltaLen = out.length() - partial.length(); - - memmove(&_contentCstr[deltaLen], _contentCstr, deltaLen); - memcpy(_contentCstr, out.substring(space).c_str(), deltaLen); + _partialHeader = out.substring(space); } else { _content = out.substring(space) + _content; + _contentLength += outLen - space; } - _contentLength += outLen - space; - AWS_LOGDEBUG1("partial =", partial); _writtenLength += request->client()->write(partial.c_str(), partial.length()); + _state = RESPONSE_CONTENT; } else if (space > outLen && space < (outLen + _contentLength)) @@ -430,12 +424,21 @@ void AsyncBasicResponse::_respond(AsyncWebServerRequest *request) { char *s = (char *)malloc(shift + 1); - strncpy(s, _contentCstr, shift); - s[shift] = '\0'; - out += String(s); - _contentCstr += shift; + if (s != nullptr) + { + strncpy(s, _contentCstr, shift); + s[shift] = '\0'; + out += String(s); + _contentCstr += shift; + + free(s); + } + else + { + AWS_LOGERROR("AsyncBasicResponse::_respond: Out of heap"); - free(s); + return; + } } else { @@ -454,15 +457,14 @@ void AsyncBasicResponse::_respond(AsyncWebServerRequest *request) if (_contentCstr) { - memmove(&_contentCstr[outLen], _contentCstr, _contentLength); - memcpy(_contentCstr, out.c_str(), outLen); + _partialHeader = out; } else { _content = out + _content; + _contentLength += outLen; } - - _contentLength += outLen; + _state = RESPONSE_CONTENT; } @@ -486,12 +488,40 @@ size_t AsyncBasicResponse::_ack(AsyncWebServerRequest *request, size_t len, uint size_t available = _contentLength - _sentLength; size_t space = request->client()->space(); + if (_partialHeader.length() > 0) + { + if (_partialHeader.length() > space) + { + // Header longer than space - send a piece of it, and make the _partialHeader = to what remains + String _subHeader; + String tmpString; + + _subHeader = _partialHeader.substring(0, space); + tmpString = _partialHeader.substring(space); + _partialHeader = tmpString; + + _writtenLength += request->client()->write(_subHeader.c_str(), space); + + return (_partialHeader.length()); + } + else + { + // _partialHeader is <= space length - therefore send the whole thing, and make the remaining length = to the _contrentLength + _writtenLength += request->client()->write(_partialHeader.c_str(), _partialHeader.length()); + + _partialHeader = String(); + + return (_contentLength); + } + } + + // if we are here - there is no _partialHJeader to send + AWS_LOGDEBUG3("AsyncBasicResponse::_ack : available =", available, ", space =", space ); //we can fit in this packet if (space > available) { - // Serial.println("In space>available"); AWS_LOGDEBUG1("AsyncBasicResponse::_ack : Pre_ack, _contentLength =", _contentLength); if (_contentCstr) @@ -506,7 +536,7 @@ size_t AsyncBasicResponse::_ack(AsyncWebServerRequest *request, size_t len, uint _writtenLength += request->client()->write(_content.c_str(), available); _content = String(); } - + _state = RESPONSE_WAIT_ACK; return available; @@ -516,11 +546,22 @@ size_t AsyncBasicResponse::_ack(AsyncWebServerRequest *request, size_t len, uint if (_contentCstr) { char *s = (char *)malloc(space + 1); - strncpy(s, _contentCstr, space); - s[space] = '\0'; - out = String(s); - _contentCstr += space; - free(s); + + if (s != nullptr) + { + strncpy(s, _contentCstr, space); + s[space] = '\0'; + out = String(s); + _contentCstr += space; + + free(s); + } + else + { + AWS_LOGERROR("AsyncBasicResponse::_ack: Out of heap"); + + return 0; + } } else { diff --git a/src/AsyncWebServer_RP2040W.cpp b/src/AsyncWebServer_RP2040W.cpp index 1476c81..6199bf9 100644 --- a/src/AsyncWebServer_RP2040W.cpp +++ b/src/AsyncWebServer_RP2040W.cpp @@ -9,7 +9,7 @@ Built by Khoi Hoang https://github.com/khoih-prog/AsyncWebServer_RP2040W Licensed under GPLv3 license - Version: 1.2.0 + Version: 1.2.1 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -19,7 +19,8 @@ 1.0.3 K Hoang 22/09/2022 To display country-code and tempo method to modify in arduino-pico core 1.1.0 K Hoang 25/09/2022 Fix issue with slow browsers or network 1.1.2 K Hoang 26/09/2022 Add function and example to support favicon.ico - 1.2.0 K Hoang 03/10/2022 Option to use cString instead og String to save Heap + 1.2.0 K Hoang 03/10/2022 Option to use cString instead of String to save Heap + 1.2.1 K Hoang 05/10/2022 Don't need memmove(), String no longer destroyed *****************************************************************************************************************************/ #if !defined(_RP2040W_AWS_LOGLEVEL_) diff --git a/src/AsyncWebServer_RP2040W.h b/src/AsyncWebServer_RP2040W.h index d22a070..ed3e816 100644 --- a/src/AsyncWebServer_RP2040W.h +++ b/src/AsyncWebServer_RP2040W.h @@ -9,7 +9,7 @@ Built by Khoi Hoang https://github.com/khoih-prog/AsyncWebServer_RP2040W Licensed under GPLv3 license - Version: 1.2.0 + Version: 1.2.1 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -19,7 +19,8 @@ 1.0.3 K Hoang 22/09/2022 To display country-code and tempo method to modify in arduino-pico core 1.1.0 K Hoang 25/09/2022 Fix issue with slow browsers or network 1.1.2 K Hoang 26/09/2022 Add function and example to support favicon.ico - 1.2.0 K Hoang 03/10/2022 Option to use cString instead og String to save Heap + 1.2.0 K Hoang 03/10/2022 Option to use cString instead of String to save Heap + 1.2.1 K Hoang 05/10/2022 Don't need memmove(), String no longer destroyed *****************************************************************************************************************************/ #ifndef _RP2040W_ASYNC_WEBSERVER_H_ @@ -35,13 +36,13 @@ ///////////////////////////////////////////////// -#define ASYNC_WEBSERVER_RP2040W_VERSION "AsyncWebServer_RP2040W v1.2.0" +#define ASYNC_WEBSERVER_RP2040W_VERSION "AsyncWebServer_RP2040W v1.2.1" #define ASYNC_WEBSERVER_RP2040W_VERSION_MAJOR 1 #define ASYNC_WEBSERVER_RP2040W_VERSION_MINOR 2 -#define ASYNC_WEBSERVER_RP2040W_VERSION_PATCH 0 +#define ASYNC_WEBSERVER_RP2040W_VERSION_PATCH 1 -#define ASYNC_WEBSERVER_RP2040W_VERSION_INT 1002000 +#define ASYNC_WEBSERVER_RP2040W_VERSION_INT 1002001 ///////////////////////////////////////////////// diff --git a/src/AsyncWebServer_RP2040W_Debug.h b/src/AsyncWebServer_RP2040W_Debug.h index b101b13..ba4cf77 100644 --- a/src/AsyncWebServer_RP2040W_Debug.h +++ b/src/AsyncWebServer_RP2040W_Debug.h @@ -9,7 +9,7 @@ Built by Khoi Hoang https://github.com/khoih-prog/AsyncWebServer_RP2040W Licensed under GPLv3 license - Version: 1.2.0 + Version: 1.2.1 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -19,7 +19,8 @@ 1.0.3 K Hoang 22/09/2022 To display country-code and tempo method to modify in arduino-pico core 1.1.0 K Hoang 25/09/2022 Fix issue with slow browsers or network 1.1.2 K Hoang 26/09/2022 Add function and example to support favicon.ico - 1.2.0 K Hoang 03/10/2022 Option to use cString instead og String to save Heap + 1.2.0 K Hoang 03/10/2022 Option to use cString instead of String to save Heap + 1.2.1 K Hoang 05/10/2022 Don't need memmove(), String no longer destroyed *****************************************************************************************************************************/ #pragma once diff --git a/src/AsyncWebSocket_RP2040W.cpp b/src/AsyncWebSocket_RP2040W.cpp index 1424ae7..a100baf 100644 --- a/src/AsyncWebSocket_RP2040W.cpp +++ b/src/AsyncWebSocket_RP2040W.cpp @@ -9,7 +9,7 @@ Built by Khoi Hoang https://github.com/khoih-prog/AsyncWebServer_RP2040W Licensed under GPLv3 license - Version: 1.2.0 + Version: 1.2.1 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -19,7 +19,8 @@ 1.0.3 K Hoang 22/09/2022 To display country-code and tempo method to modify in arduino-pico core 1.1.0 K Hoang 25/09/2022 Fix issue with slow browsers or network 1.1.2 K Hoang 26/09/2022 Add function and example to support favicon.ico - 1.2.0 K Hoang 03/10/2022 Option to use cString instead og String to save Heap + 1.2.0 K Hoang 03/10/2022 Option to use cString instead of String to save Heap + 1.2.1 K Hoang 05/10/2022 Don't need memmove(), String no longer destroyed *****************************************************************************************************************************/ #include "Arduino.h" diff --git a/src/AsyncWebSocket_RP2040W.h b/src/AsyncWebSocket_RP2040W.h index 29c6dcf..9f6cafb 100644 --- a/src/AsyncWebSocket_RP2040W.h +++ b/src/AsyncWebSocket_RP2040W.h @@ -9,7 +9,7 @@ Built by Khoi Hoang https://github.com/khoih-prog/AsyncWebServer_RP2040W Licensed under GPLv3 license - Version: 1.2.0 + Version: 1.2.1 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -19,7 +19,8 @@ 1.0.3 K Hoang 22/09/2022 To display country-code and tempo method to modify in arduino-pico core 1.1.0 K Hoang 25/09/2022 Fix issue with slow browsers or network 1.1.2 K Hoang 26/09/2022 Add function and example to support favicon.ico - 1.2.0 K Hoang 03/10/2022 Option to use cString instead og String to save Heap + 1.2.0 K Hoang 03/10/2022 Option to use cString instead of String to save Heap + 1.2.1 K Hoang 05/10/2022 Don't need memmove(), String no longer destroyed *****************************************************************************************************************************/ #pragma once diff --git a/src/AsyncWebSynchronization_RP2040W.h b/src/AsyncWebSynchronization_RP2040W.h index f5938bb..cd15c9d 100644 --- a/src/AsyncWebSynchronization_RP2040W.h +++ b/src/AsyncWebSynchronization_RP2040W.h @@ -9,7 +9,7 @@ Built by Khoi Hoang https://github.com/khoih-prog/AsyncWebServer_RP2040W Licensed under GPLv3 license - Version: 1.2.0 + Version: 1.2.1 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -19,7 +19,8 @@ 1.0.3 K Hoang 22/09/2022 To display country-code and tempo method to modify in arduino-pico core 1.1.0 K Hoang 25/09/2022 Fix issue with slow browsers or network 1.1.2 K Hoang 26/09/2022 Add function and example to support favicon.ico - 1.2.0 K Hoang 03/10/2022 Option to use cString instead og String to save Heap + 1.2.0 K Hoang 03/10/2022 Option to use cString instead of String to save Heap + 1.2.1 K Hoang 05/10/2022 Don't need memmove(), String no longer destroyed *****************************************************************************************************************************/ #pragma once diff --git a/src/StringArray_RP2040W.h b/src/StringArray_RP2040W.h index d4de5e2..1cf7c9f 100644 --- a/src/StringArray_RP2040W.h +++ b/src/StringArray_RP2040W.h @@ -9,7 +9,7 @@ Built by Khoi Hoang https://github.com/khoih-prog/AsyncWebServer_RP2040W Licensed under GPLv3 license - Version: 1.2.0 + Version: 1.2.1 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -19,7 +19,8 @@ 1.0.3 K Hoang 22/09/2022 To display country-code and tempo method to modify in arduino-pico core 1.1.0 K Hoang 25/09/2022 Fix issue with slow browsers or network 1.1.2 K Hoang 26/09/2022 Add function and example to support favicon.ico - 1.2.0 K Hoang 03/10/2022 Option to use cString instead og String to save Heap + 1.2.0 K Hoang 03/10/2022 Option to use cString instead of String to save Heap + 1.2.1 K Hoang 05/10/2022 Don't need memmove(), String no longer destroyed *****************************************************************************************************************************/ #pragma once diff --git a/src/libb64/cdecode.c b/src/libb64/cdecode.c index ccded27..2379a01 100644 --- a/src/libb64/cdecode.c +++ b/src/libb64/cdecode.c @@ -11,18 +11,6 @@ Based on and modified from ESPAsyncWebServer (https://github.com/me-no-dev/ESPAsyncWebServer) Built by Khoi Hoang https://github.com/khoih-prog/AsyncWebServer_RP2040W Licensed under GPLv3 license - - Version: 1.2.0 - - Version Modified By Date Comments - ------- ----------- ---------- ----------- - 1.0.0 K Hoang 13/08/2022 Initial coding for RP2040W with CYW43439 WiFi - 1.0.1 K Hoang 15/08/2022 Fix bug in examples, `library.json` - 1.0.2 K Hoang 15/08/2022 Fix LED bug in examples - 1.0.3 K Hoang 22/09/2022 To display country-code and tempo method to modify in arduino-pico core - 1.1.0 K Hoang 25/09/2022 Fix issue with slow browsers or network - 1.1.2 K Hoang 26/09/2022 Add function and example to support favicon.ico - 1.2.0 K Hoang 03/10/2022 Option to use cString instead og String to save Heap *****************************************************************************************************************************/ #include "cdecode.h" diff --git a/src/libb64/cdecode.h b/src/libb64/cdecode.h index e56add7..b8645f6 100644 --- a/src/libb64/cdecode.h +++ b/src/libb64/cdecode.h @@ -11,18 +11,6 @@ Based on and modified from ESPAsyncWebServer (https://github.com/me-no-dev/ESPAsyncWebServer) Built by Khoi Hoang https://github.com/khoih-prog/AsyncWebServer_RP2040W Licensed under GPLv3 license - - Version: 1.2.0 - - Version Modified By Date Comments - ------- ----------- ---------- ----------- - 1.0.0 K Hoang 13/08/2022 Initial coding for RP2040W with CYW43439 WiFi - 1.0.1 K Hoang 15/08/2022 Fix bug in examples, `library.json` - 1.0.2 K Hoang 15/08/2022 Fix LED bug in examples - 1.0.3 K Hoang 22/09/2022 To display country-code and tempo method to modify in arduino-pico core - 1.1.0 K Hoang 25/09/2022 Fix issue with slow browsers or network - 1.1.2 K Hoang 26/09/2022 Add function and example to support favicon.ico - 1.2.0 K Hoang 03/10/2022 Option to use cString instead og String to save Heap *****************************************************************************************************************************/ #pragma once diff --git a/src/libb64/cencode.c b/src/libb64/cencode.c index 10ab105..310ba38 100644 --- a/src/libb64/cencode.c +++ b/src/libb64/cencode.c @@ -11,18 +11,6 @@ Based on and modified from ESPAsyncWebServer (https://github.com/me-no-dev/ESPAsyncWebServer) Built by Khoi Hoang https://github.com/khoih-prog/AsyncWebServer_RP2040W Licensed under GPLv3 license - - Version: 1.2.0 - - Version Modified By Date Comments - ------- ----------- ---------- ----------- - 1.0.0 K Hoang 13/08/2022 Initial coding for RP2040W with CYW43439 WiFi - 1.0.1 K Hoang 15/08/2022 Fix bug in examples, `library.json` - 1.0.2 K Hoang 15/08/2022 Fix LED bug in examples - 1.0.3 K Hoang 22/09/2022 To display country-code and tempo method to modify in arduino-pico core - 1.1.0 K Hoang 25/09/2022 Fix issue with slow browsers or network - 1.1.2 K Hoang 26/09/2022 Add function and example to support favicon.ico - 1.2.0 K Hoang 03/10/2022 Option to use cString instead og String to save Heap *****************************************************************************************************************************/ #include "cencode.h" diff --git a/src/libb64/cencode.h b/src/libb64/cencode.h index ed925ed..4ac6a8f 100644 --- a/src/libb64/cencode.h +++ b/src/libb64/cencode.h @@ -11,18 +11,6 @@ Based on and modified from ESPAsyncWebServer (https://github.com/me-no-dev/ESPAsyncWebServer) Built by Khoi Hoang https://github.com/khoih-prog/AsyncWebServer_RP2040W Licensed under GPLv3 license - - Version: 1.2.0 - - Version Modified By Date Comments - ------- ----------- ---------- ----------- - 1.0.0 K Hoang 13/08/2022 Initial coding for RP2040W with CYW43439 WiFi - 1.0.1 K Hoang 15/08/2022 Fix bug in examples, `library.json` - 1.0.2 K Hoang 15/08/2022 Fix LED bug in examples - 1.0.3 K Hoang 22/09/2022 To display country-code and tempo method to modify in arduino-pico core - 1.1.0 K Hoang 25/09/2022 Fix issue with slow browsers or network - 1.1.2 K Hoang 26/09/2022 Add function and example to support favicon.ico - 1.2.0 K Hoang 03/10/2022 Option to use cString instead og String to save Heap *****************************************************************************************************************************/ #pragma once