Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By Subhajit Das
#48395
martinayotte wrote:webserver.send() and webserver.sendContent() still use RAM buffer to send content to client.
You should use webserver.send_P() or webserver.sendContent_P() to send content directly from Flash PROGMEM to client.

Hello, can you tell me your sources? How do you know so much?
User avatar
By Subhajit Das
#48398
martinayotte wrote:.arduino15/packages/esp8266/hardware/esp8266/2.2.0/libraries/ESP8266WebServer/src/ESP8266WebServer.h

You look through all sources available?

Anyway is multiple send allowed?
Say first send PROGMEM data then again some simple send, for single request?
Has to combine send and sendContent i guess?
User avatar
By Subhajit Das
#48401
martinayotte wrote:.arduino15/packages/esp8266/hardware/esp8266/2.2.0/libraries/ESP8266WebServer/src/ESP8266WebServer.h

No combination of send and sendContent works. please fix this:
Code: Select allLocalServer.send_P(200, "text/html", WelcomePagePart1);
    LocalServer.sendContent(content);
    LocalServer.sendContent_P(WelcomePagePart2);