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 48:9f1ab7784067 1 #include "http.h"
andrewboyson 48:9f1ab7784067 2
andrewboyson 48:9f1ab7784067 3 //Use http://tomeko.net/online_tools/cpp_text_escape.php to convert from text to c-multiline
andrewboyson 48:9f1ab7784067 4 //Use http://tomeko.net/online_tools/cpp_text_unescape.php to convert from c-multiline to text
andrewboyson 48:9f1ab7784067 5
andrewboyson 55:a1bd0572c8b6 6 const char* WebNmeaScriptDate = __DATE__;
andrewboyson 55:a1bd0572c8b6 7 const char* WebNmeaScriptTime = __TIME__;
andrewboyson 48:9f1ab7784067 8
andrewboyson 48:9f1ab7784067 9 static const char* script =
andrewboyson 55:a1bd0572c8b6 10 #include "web-nmea-script.inc"
andrewboyson 48:9f1ab7784067 11 ;
andrewboyson 55:a1bd0572c8b6 12 void WebNmeaScript()
andrewboyson 48:9f1ab7784067 13 {
andrewboyson 55:a1bd0572c8b6 14 HttpOk("application/javascript; charset=UTF-8", "max-age=3600", WebNmeaScriptDate, WebNmeaScriptTime);
andrewboyson 48:9f1ab7784067 15 HttpAddText(script);
andrewboyson 48:9f1ab7784067 16 }