Monitor motorhome leisure battery and provide simple control of habitation

Dependencies:   net lpc1768 crypto clock web fram log

Committer:
andrewboyson
Date:
Mon Jun 06 11:08:53 2022 +0000
Revision:
9:d957af50fdc2
Parent:
web-this/boiler/web-boiler-script.c@0:b843d647695c
Added battery message for can bus

Who changed what in which revision?

UserRevisionLine numberNew contents of line
andrewboyson 0:b843d647695c 1 #include "http.h"
andrewboyson 0:b843d647695c 2
andrewboyson 0:b843d647695c 3 //Use http://tomeko.net/online_tools/cpp_text_escape.php to convert from text to c-multiline
andrewboyson 0:b843d647695c 4 //Use http://tomeko.net/online_tools/cpp_text_unescape.php to convert from c-multiline to text
andrewboyson 0:b843d647695c 5
andrewboyson 0:b843d647695c 6 static const char* script =
andrewboyson 0:b843d647695c 7 #include "../../web/common/web-ajax-class.inc"
andrewboyson 9:d957af50fdc2 8 #include "web-battery-script.inc"
andrewboyson 0:b843d647695c 9 ;
andrewboyson 9:d957af50fdc2 10 const char* WebBatteryScriptDate = __DATE__;
andrewboyson 9:d957af50fdc2 11 const char* WebBatteryScriptTime = __TIME__;
andrewboyson 0:b843d647695c 12
andrewboyson 9:d957af50fdc2 13 void WebBatteryScript()
andrewboyson 0:b843d647695c 14 {
andrewboyson 9:d957af50fdc2 15 HttpOk("application/javascript; charset=UTF-8", "max-age=3600", WebBatteryScriptDate, WebBatteryScriptTime);
andrewboyson 0:b843d647695c 16 HttpAddText(script);
andrewboyson 0:b843d647695c 17 }