AsyncWebServer can send text content directly from Flash ? #268
MarusGradinaru
started this conversation in
General
Replies: 1 comment 4 replies
-
Hi, |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi !
I am using the library on ESP32 with Arduino framework in Platform IO.
I want to know if the
AsyncWebServer.send()
commmand can send flash constants defined with F(), like this:const __FlashStringHelper* msgError = F("Internal error encountered.");
void handleTestRes(AsyncWebServerRequest *request) {
request->send(500, MIME_PLAIN, msgError);
}
I test it with F() and it works... But I want to know if it was pure luck or it is really intented to work this way ?
An if the library sends the string directly from Flash, or it copy it to RAM first ?
Beta Was this translation helpful? Give feedback.
All reactions