User manual
002
"<HTML><HEAD>\n<meta name=\"viewport\" content=\"width=device-width, initial-
scale=2.0,
003
(…)
004
};
This excerpt shows how the website is saved in the Progmem variable. This is a
longer HTML document in a C-compatible format. The format is, among others,
characterised in that quotation marks are displayed in the form \" and new lines by
\n. You probably know this from other projects that have strings. You can also find
a preview of the website in HTML format in the program folder.
001
String createWebsite()
002
{
003
String xBuffer;
004
005
for (int i = 0; i <= sizeof(site); i++)
006
{
007
char myChar = pgm_read_byte_near(site + i);
008
xBuffer += myChar;
009
}
010
011
return xBuffer;
012
}
In the function createWebsite(), the content of the Progmem variable will be load-
ed and returned as a string. It is clear how the Progmem variable is loaded from
the program memory again.
001
boolean sendWebsite(int connectionId, String webpage)
002
{
003
boolean success = true;
004