Andrew Boyson / web

Dependents:   oldheating gps motorhome heating

Committer:
andrewboyson
Date:
Sat Apr 27 09:25:28 2019 +0000
Revision:
103:91194cc19bbb
Child:
109:3e82f62c7e1f
Renamed everything from Http to Web

Who changed what in which revision?

UserRevisionLine numberNew contents of line
andrewboyson 103:91194cc19bbb 1 #include "http.h"
andrewboyson 103:91194cc19bbb 2 #include "web-base.h"
andrewboyson 103:91194cc19bbb 3
andrewboyson 103:91194cc19bbb 4 //Use http://tomeko.net/online_tools/cpp_text_escape.php to convert from text to c-multiline
andrewboyson 103:91194cc19bbb 5 //Use http://tomeko.net/online_tools/cpp_text_unescape.php to convert from c-multiline to text
andrewboyson 103:91194cc19bbb 6
andrewboyson 103:91194cc19bbb 7 const char* WebFirmwareScriptDate = __DATE__;
andrewboyson 103:91194cc19bbb 8 const char* WebFirmwareScriptTime = __TIME__;
andrewboyson 103:91194cc19bbb 9
andrewboyson 103:91194cc19bbb 10 static const char* script =
andrewboyson 103:91194cc19bbb 11 #include "web-firmware-script.inc"
andrewboyson 103:91194cc19bbb 12 ;
andrewboyson 103:91194cc19bbb 13 void WebFirmwareScript()
andrewboyson 103:91194cc19bbb 14 {
andrewboyson 103:91194cc19bbb 15 HttpOk("application/javascript; charset=UTF-8", "max-age=3600", WebFirmwareScriptDate, WebFirmwareScriptTime);
andrewboyson 103:91194cc19bbb 16 HttpAddText(script);
andrewboyson 103:91194cc19bbb 17 }