Andrew Boyson / gps

Dependencies:   net lpc1768 crypto clock web log

Committer:
andrewboyson
Date:
Sun Apr 28 08:31:50 2019 +0000
Revision:
55:a1bd0572c8b6
Parent:
http-derived/nmea/http-nmea-script.c@48:9f1ab7784067
Child:
58:3f3e000151cc
Update web-base library and renamed http-derived to web-derived

Who changed what in which revision?

UserRevisionLine numberNew contents of line
andrewboyson 48:9f1ab7784067 1 #include "http.h"
andrewboyson 55:a1bd0572c8b6 2 #include "web-base.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 55:a1bd0572c8b6 7 const char* WebNmeaScriptDate = __DATE__;
andrewboyson 55:a1bd0572c8b6 8 const char* WebNmeaScriptTime = __TIME__;
andrewboyson 48:9f1ab7784067 9
andrewboyson 48:9f1ab7784067 10 static const char* script =
andrewboyson 55:a1bd0572c8b6 11 #include "web-nmea-script.inc"
andrewboyson 48:9f1ab7784067 12 ;
andrewboyson 55:a1bd0572c8b6 13 void WebNmeaScript()
andrewboyson 48:9f1ab7784067 14 {
andrewboyson 55:a1bd0572c8b6 15 HttpOk("application/javascript; charset=UTF-8", "max-age=3600", WebNmeaScriptDate, WebNmeaScriptTime);
andrewboyson 48:9f1ab7784067 16 HttpAddText(script);
andrewboyson 48:9f1ab7784067 17 }