Andrew Boyson / gps

Dependencies:   net lpc1768 crypto clock web log

Committer:
andrewboyson
Date:
Wed Mar 27 18:40:21 2019 +0000
Revision:
48:9f1ab7784067
Published to allow compiler diagnosis

Who changed what in which revision?

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