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

Moderator: igrr

User avatar
By Rocha
#48182 Hi guys, i need some help, i need to provide nice pages using ESP8288, the size can fit on flash, but using only httpserver.send command, maximum data i have sent with success is 4kb, send more data ESP8266 do a self reset, i think is because out of memory.

i have tried the folowing way, but no success... sendContent has sent nothing

const char* ContentOne = R"(
4kb of html data in this place
)";

const char* ContentTwo = R"(
3kb of html data in this place
)";

void http_handle_page() {
httpServer.send(200, "text/html", "" );
httpServer.sendContent( ContentOne );
httpServer.sendContent( ContentTwo );
httpServer.client().stop();
}

Any help will be apreciated.

best regards.
User avatar
By Subhajit Das
#48365 You can try:
Code: Select allconst char WelcomePagePart1[] PROGMEM = "......"; // large data
const char WelcomePagePart2[] PROGMEM = "......"; // large data
// in code
content = "";
    content += FPSTR(WelcomePagePart1);
  content += FPSTR(WelcomePagePart2);
LocalServer.send(statusCode, "text/html", content);