How to send large html data ( 4kb+ ) using Esp8266WebServer?
Posted: Sun May 29, 2016 12:25 am
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.
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.