char index_html[] PROGMEM{
"<!DOCTYPE html>\n"
"<html>\n"
"<body>\n"
"<body style=\"background-color:black; color:cyan;; font-family:verdana\">\n"
"\n"
"\n"
"<p style=\"font-size:500%; text-align:center\">\n"
"<I><b>DHT22 TEMP GOES HERE<sup><small><small>F</p>\n"
"\n"
"\n"
"</body>\n"
"</html>"};
The code for the server:
void handleRoot() {
temp = dht.readTemperature();
server.send_P(200, "text/html", index_html);
}
I have no problem with my code displaying the formatted HTML to a browser but I want that temp variable passed to the HTML.
I've googled... I've youtubed... My head hurts. Please someone have mercy on this newbie.
Thanks!