Andrew Boyson / gps

Dependencies:   net lpc1768 crypto clock web log

Committer:
andrewboyson
Date:
Wed May 01 07:45:16 2019 +0000
Revision:
58:3f3e000151cc
Parent:
55:a1bd0572c8b6
Updated web library

Who changed what in which revision?

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