Re: ESP8266WebServer to send larger amounts of data
Posted: Sat Aug 29, 2015 10:45 pm
I'm getting a very similar error when I try to run the code to send a large brick of CSS.
-->
Open Community Forum for ESP8266, Come share Arduino and IoT (Internet of Things)
https://www.esp8266.com/
draco wrote:For the image file, I just wrote a tiny python script that read the file in byte by byte and spit out to the console each byte in decimal, separated by a comma. Then I copy/pasted that into a variable for the Arduino sketch. Sorry, I didn't think to save a copy of the python script...
#include <PgmSpace.h>
const char index_html[] PROGMEM = R"=====(
<!DOCTYPE HTML>
<html>
<head><title>ESP8266 Arduino Demo Page</title></head>
<body>ESP8266 power!<p><img src="logo.png"></body>
</html>
)=====";
void setup() {
Serial.begin(115200);
}
void loop() {
Serial.println(index_html);
delay(1000);
}