Monitor motorhome leisure battery and provide simple control of habitation

Dependencies:   net lpc1768 crypto clock web fram log

Revision:
9:d957af50fdc2
Parent:
0:b843d647695c
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web-this/battery/web-battery-script.c	Mon Jun 06 11:08:53 2022 +0000
@@ -0,0 +1,17 @@
+#include "http.h"
+
+//Use http://tomeko.net/online_tools/cpp_text_escape.php   to convert from text to c-multiline
+//Use http://tomeko.net/online_tools/cpp_text_unescape.php to convert from c-multiline to text
+
+static const char* script =
+#include "../../web/common/web-ajax-class.inc"
+#include "web-battery-script.inc"
+;
+const char* WebBatteryScriptDate = __DATE__;
+const char* WebBatteryScriptTime = __TIME__;
+
+void WebBatteryScript()
+{
+    HttpOk("application/javascript; charset=UTF-8", "max-age=3600", WebBatteryScriptDate, WebBatteryScriptTime);
+    HttpAddText(script);
+}