Hi!

I’ve recently released an Arduino library that lets you add any text or binary file right into your Arduino project in a few lines of code. Just like this:

#include "incbin.h"
INCTXT(WebPage, "index.html");
…
Serial.println(gWebPageData);

 

It may be useful if you want to add a static *.html to ESP8266 running web server, or images for some display, or a *.wav file to play sound samples.

It is available in the Arduino Library Manager, type in "incbin" in the search input.

Check out the github page for more info on how to use it.