Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: net lpc1768 crypto clock web log
Diff: http-derived/nmea/http-nmea-script.c
- Revision:
- 48:9f1ab7784067
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/http-derived/nmea/http-nmea-script.c Wed Mar 27 18:40:21 2019 +0000 @@ -0,0 +1,17 @@ +#include "http.h" +#include "http-server.h" + +//Use http://tomeko.net/online_tools/cpp_text_escape.php to convert from text to c-multiline +//Use http://tomeko.net/online_tools/cpp_text_unescape.php to convert from c-multiline to text + +const char* HttpNmeaScriptDate = __DATE__; +const char* HttpNmeaScriptTime = __TIME__; + +static const char* script = +#include "http-nmea-script.inc" +; +void HttpNmeaScript() +{ + HttpOk("application/javascript; charset=UTF-8", "max-age=3600", HttpNmeaScriptDate, HttpNmeaScriptTime); + HttpAddText(script); +}