Andrew Boyson / Mbed 2 deprecated heating

Dependencies:   1-wire clock crypto fram log lpc1768 net web wiz mbed

Committer:
andrewboyson
Date:
Mon May 10 10:23:48 2021 +0000
Revision:
0:22b158d3c76f
Child:
8:8ac076ce51af
New version as old one would not commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
andrewboyson 0:22b158d3c76f 1 #include "http.h"
andrewboyson 0:22b158d3c76f 2 #include "web-add.h"
andrewboyson 0:22b158d3c76f 3
andrewboyson 0:22b158d3c76f 4 void WebHomeHtml()
andrewboyson 0:22b158d3c76f 5 {
andrewboyson 0:22b158d3c76f 6 HttpOk("text/html; charset=UTF-8", "no-cache", NULL, NULL);
andrewboyson 0:22b158d3c76f 7 WebAddHeader("Home", NULL, "radiator.js");
andrewboyson 0:22b158d3c76f 8
andrewboyson 0:22b158d3c76f 9 HttpAddText("<a href='/program' class='hamburger'>\r\n");
andrewboyson 0:22b158d3c76f 10 HttpAddText("<div class='bar' ></div>\r\n");
andrewboyson 0:22b158d3c76f 11 HttpAddText("<div class='space'></div>\r\n");
andrewboyson 0:22b158d3c76f 12 HttpAddText("<div class='bar' ></div>\r\n");
andrewboyson 0:22b158d3c76f 13 HttpAddText("<div class='space'></div>\r\n");
andrewboyson 0:22b158d3c76f 14 HttpAddText("<div class='bar' ></div>\r\n");
andrewboyson 0:22b158d3c76f 15 HttpAddText("</a>\r\n");
andrewboyson 0:22b158d3c76f 16 HttpAddText("<br/>\r\n");
andrewboyson 0:22b158d3c76f 17 HttpAddText("<br/>\r\n");
andrewboyson 0:22b158d3c76f 18
andrewboyson 0:22b158d3c76f 19 HttpAddText("<div id='ajax-date-local'></div>\r\n");
andrewboyson 0:22b158d3c76f 20 HttpAddText("<br/>\r\n");
andrewboyson 0:22b158d3c76f 21 WebAddAjaxLabelledSuffix("Hall temperature", "ajax-hall-html", "&deg;C");
andrewboyson 0:22b158d3c76f 22 HttpAddText("<br/>\r\n");
andrewboyson 0:22b158d3c76f 23 WebAddAjaxInputToggle("Winter mode", "ajax-mode-toggle" , "htg-chg-mode" );
andrewboyson 0:22b158d3c76f 24 HttpAddText("<br/>\r\n");
andrewboyson 0:22b158d3c76f 25 WebAddAjaxInputToggle("Radiators" , "ajax-radiator-toggle", "htg-chg-override");
andrewboyson 0:22b158d3c76f 26 HttpAddText("<br/>\r\n");
andrewboyson 0:22b158d3c76f 27
andrewboyson 0:22b158d3c76f 28 WebAddEnd();
andrewboyson 0:22b158d3c76f 29 }
andrewboyson 0:22b158d3c76f 30