Monitor motorhome leisure battery and provide simple control of habitation

Dependencies:   net lpc1768 crypto clock web fram log

web-this/battery/web-battery-script.c

Committer:
andrewboyson
Date:
2022-06-10
Revision:
10:a97a7cb7aa82
Parent:
9:d957af50fdc2

File content as of revision 10:a97a7cb7aa82:

#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);
}