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
http-derived/nmea/http-nmea-script.c@48:9f1ab7784067, 2019-03-27 (annotated)
- 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?
User | Revision | Line number | New 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 | } |