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.
Dependents: oldheating gps motorhome heating
base/firmware/web-firmware-script.c@127:bd6dd135009d, 2019-07-31 (annotated)
- Committer:
- andrewboyson
- Date:
- Wed Jul 31 15:09:15 2019 +0000
- Revision:
- 127:bd6dd135009d
- Parent:
- 110:8ab752842d25
Amalgamated Reply into Poll function
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
andrewboyson | 103:91194cc19bbb | 1 | #include "http.h" |
andrewboyson | 103:91194cc19bbb | 2 | |
andrewboyson | 103:91194cc19bbb | 3 | //Use http://tomeko.net/online_tools/cpp_text_escape.php to convert from text to c-multiline |
andrewboyson | 103:91194cc19bbb | 4 | //Use http://tomeko.net/online_tools/cpp_text_unescape.php to convert from c-multiline to text |
andrewboyson | 103:91194cc19bbb | 5 | |
andrewboyson | 103:91194cc19bbb | 6 | const char* WebFirmwareScriptDate = __DATE__; |
andrewboyson | 103:91194cc19bbb | 7 | const char* WebFirmwareScriptTime = __TIME__; |
andrewboyson | 103:91194cc19bbb | 8 | |
andrewboyson | 103:91194cc19bbb | 9 | static const char* script = |
andrewboyson | 103:91194cc19bbb | 10 | #include "web-firmware-script.inc" |
andrewboyson | 103:91194cc19bbb | 11 | ; |
andrewboyson | 103:91194cc19bbb | 12 | void WebFirmwareScript() |
andrewboyson | 103:91194cc19bbb | 13 | { |
andrewboyson | 103:91194cc19bbb | 14 | HttpOk("application/javascript; charset=UTF-8", "max-age=3600", WebFirmwareScriptDate, WebFirmwareScriptTime); |
andrewboyson | 103:91194cc19bbb | 15 | HttpAddText(script); |
andrewboyson | 103:91194cc19bbb | 16 | } |