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

Commit

Permalink
v1.2.1 to not destroy original CString
Browse files Browse the repository at this point in the history
#### Releases v1.2.1

1. Don't need `memmove()`, CString no longer destroyed. Check [All memmove() removed - string no longer destroyed #11](khoih-prog/Portenta_H7_AsyncWebServer#11)
  • Loading branch information
khoih-prog authored Oct 5, 2022
1 parent 7104199 commit e98fdf0
Show file tree
Hide file tree
Showing 25 changed files with 139 additions and 124 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
* `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
Expand All @@ -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
Expand Down
5 changes: 5 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
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_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":
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_RP2040W
version=1.2.0
version=1.2.1
author=Hristo Gochkov,Khoi Hoang
maintainer=Khoi Hoang <[email protected]>
sentence=Asynchronous WebServer Library for RASPBERRY_PI_PICO_W using CYW43439 WiFi with arduino-pico core.
Expand Down
5 changes: 3 additions & 2 deletions src/AsyncEventSource_RP2040W.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
------- ----------- ---------- -----------
Expand All @@ -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_)
Expand Down
5 changes: 3 additions & 2 deletions src/AsyncEventSource_RP2040W.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
------- ----------- ---------- -----------
Expand All @@ -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
Expand Down
5 changes: 3 additions & 2 deletions src/AsyncJson_RP2040W.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
------- ----------- ---------- -----------
Expand All @@ -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
Expand Down
5 changes: 3 additions & 2 deletions src/AsyncWebAuthentication_RP2040W.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
------- ----------- ---------- -----------
Expand All @@ -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_)
Expand Down
5 changes: 3 additions & 2 deletions src/AsyncWebAuthentication_RP2040W.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
------- ----------- ---------- -----------
Expand All @@ -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
Expand Down
5 changes: 3 additions & 2 deletions src/AsyncWebHandlerImpl_RP2040W.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
------- ----------- ---------- -----------
Expand All @@ -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
Expand Down
5 changes: 3 additions & 2 deletions src/AsyncWebHandlers_RP2040W.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
------- ----------- ---------- -----------
Expand All @@ -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_)
Expand Down
5 changes: 3 additions & 2 deletions src/AsyncWebRequest_RP2040W.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
------- ----------- ---------- -----------
Expand All @@ -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_)
Expand Down
6 changes: 4 additions & 2 deletions src/AsyncWebResponseImpl_RP2040W.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
------- ----------- ---------- -----------
Expand All @@ -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
Expand All @@ -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());
Expand Down
Loading

0 comments on commit e98fdf0

Please sign in to comment.