Re: SOLVED Webserver can't send large webpage to client.
Posted: Wed Jan 17, 2018 12:43 am
Yes, exactly, what NickLD wrote with small correction:
replace httpServer.send(200, "text/html", MAIN_page); with httpServer.send_P(200, "text/html", MAIN_page, sizeof(MAIN_page));
there are _P methods for direct PROGMEM output (see ESP8266WebServer.h)
replace httpServer.send(200, "text/html", MAIN_page); with httpServer.send_P(200, "text/html", MAIN_page, sizeof(MAIN_page));
there are _P methods for direct PROGMEM output (see ESP8266WebServer.h)