Central Heating controller using the real time clock, PHY module for internet, 1-wire interface for temperature sensors, a system log and a configuration file

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

/media/uploads/andrewboyson/heating.sch

/media/uploads/andrewboyson/heating.brd

/media/uploads/andrewboyson/eagle.epf

Committer:
andrewboyson
Date:
Sat Apr 27 09:27:11 2019 +0000
Revision:
49:9491c966dc60
Parent:
http-derived/radiator/http-radiator-script.c@48:6eac12df3ad5
Child:
51:c7c6ce0d57ad
Updated web library

Who changed what in which revision?

UserRevisionLine numberNew contents of line
andrewboyson 47:229338b3adcb 1 #include "http.h"
andrewboyson 49:9491c966dc60 2 #include "web-derived.h"
andrewboyson 49:9491c966dc60 3 #include "web-base.h"
andrewboyson 47:229338b3adcb 4
andrewboyson 47:229338b3adcb 5 //Use http://tomeko.net/online_tools/cpp_text_escape.php to convert from text to c-multiline
andrewboyson 47:229338b3adcb 6 //Use http://tomeko.net/online_tools/cpp_text_unescape.php to convert from c-multiline to text
andrewboyson 47:229338b3adcb 7
andrewboyson 47:229338b3adcb 8 static const char* script =
andrewboyson 49:9491c966dc60 9 #include "../../web-base/base/web-ajax-class.inc"
andrewboyson 49:9491c966dc60 10 #include "../../1-wire/web/web-1wire-class.inc"
andrewboyson 49:9491c966dc60 11 #include "web-radiator-script.inc"
andrewboyson 47:229338b3adcb 12 ;
andrewboyson 49:9491c966dc60 13 const char* WebRadiatorScriptDate = __DATE__;
andrewboyson 49:9491c966dc60 14 const char* WebRadiatorScriptTime = __TIME__;
andrewboyson 47:229338b3adcb 15
andrewboyson 49:9491c966dc60 16 void WebRadiatorScript()
andrewboyson 47:229338b3adcb 17 {
andrewboyson 49:9491c966dc60 18 HttpOk("application/javascript; charset=UTF-8", "max-age=3600", WebRadiatorScriptDate, WebRadiatorScriptTime);
andrewboyson 47:229338b3adcb 19 HttpAddText(script);
andrewboyson 47:229338b3adcb 20 }