Controls the central heating system and the lights.

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
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
andrewboyson 0:22b158d3c76f 3 //Use http://tomeko.net/online_tools/cpp_text_escape.php to convert from text to c-multiline
andrewboyson 0:22b158d3c76f 4 //Use http://tomeko.net/online_tools/cpp_text_unescape.php to convert from c-multiline to text
andrewboyson 0:22b158d3c76f 5
andrewboyson 0:22b158d3c76f 6 static const char* script =
andrewboyson 0:22b158d3c76f 7 #include "../../web/common/web-ajax-class.inc"
andrewboyson 0:22b158d3c76f 8 #include "../../1-wire/web/web-1wire-class.inc"
andrewboyson 0:22b158d3c76f 9 #include "web-radiator-script.inc"
andrewboyson 0:22b158d3c76f 10 ;
andrewboyson 0:22b158d3c76f 11 const char* WebRadiatorScriptDate = __DATE__;
andrewboyson 0:22b158d3c76f 12 const char* WebRadiatorScriptTime = __TIME__;
andrewboyson 0:22b158d3c76f 13
andrewboyson 0:22b158d3c76f 14 void WebRadiatorScript()
andrewboyson 0:22b158d3c76f 15 {
andrewboyson 0:22b158d3c76f 16 HttpOk("application/javascript; charset=UTF-8", "max-age=3600", WebRadiatorScriptDate, WebRadiatorScriptTime);
andrewboyson 0:22b158d3c76f 17 HttpAddText(script);
andrewboyson 0:22b158d3c76f 18 }