Skip to content

Add const char* content to ESP8266WebServer::send() #6797

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Nov 19, 2019

Conversation

earlephilhower
Copy link
Collaborator

Supercedes #3492

Allow sending raw binary data or strings directly without conversion to
a String to reduce memory overhead when possible.

From original @timw1971 PR #3492
Added public functions to allow content to be uploaded using const
char*. For some cases, this can remove the need for content to be copied
into a String, and thus can be considerably more space-efficient.

Supercedes esp8266#3492

Allow sending raw binary data or strings directly without conversion to
a String to reduce memory overhead when possible.

From original @timw1971 PR esp8266#3492
Added public functions to allow content to be uploaded using const
char*. For some cases, this can remove the need for content to be copied
into a String, and thus can be considerably more space-efficient.
@earlephilhower earlephilhower changed the title Add const char* content to ESP8266WebSerer::send() Add const char* content to ESP8266WebServer::send() Nov 18, 2019
@devyte devyte added this to the 2.6.2 milestone Nov 19, 2019
devyte and others added 2 commits November 19, 2019 09:46
Make the generated GIF dynamic in the example and move the original to
PROGMEM (since that's where const arrays like this belong).
@devyte devyte merged commit 36f9034 into esp8266:master Nov 19, 2019
@earlephilhower earlephilhower deleted the constcharweb branch November 19, 2019 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants