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 1-wire lpc1768 crypto clock web fram log
web-this/boiler/web-boiler-script.c@106:41ed3ea0bbba, 2021-04-23 (annotated)
- Committer:
- andrewboyson
- Date:
- Fri Apr 23 08:36:42 2021 +0000
- Revision:
- 106:41ed3ea0bbba
- Parent:
- 54:1cbd3a85d3a0
Not working, crashes.
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| andrewboyson | 47:229338b3adcb | 1 | #include "http.h" |
| andrewboyson | 47:229338b3adcb | 2 | |
| andrewboyson | 47:229338b3adcb | 3 | //Use http://tomeko.net/online_tools/cpp_text_escape.php to convert from text to c-multiline |
| andrewboyson | 47:229338b3adcb | 4 | //Use http://tomeko.net/online_tools/cpp_text_unescape.php to convert from c-multiline to text |
| andrewboyson | 47:229338b3adcb | 5 | |
| andrewboyson | 47:229338b3adcb | 6 | static const char* script = |
| andrewboyson | 54:1cbd3a85d3a0 | 7 | #include "../../web/common/web-ajax-class.inc" |
| andrewboyson | 49:9491c966dc60 | 8 | #include "../../1-wire/web/web-1wire-class.inc" |
| andrewboyson | 49:9491c966dc60 | 9 | #include "web-boiler-script.inc" |
| andrewboyson | 47:229338b3adcb | 10 | ; |
| andrewboyson | 49:9491c966dc60 | 11 | const char* WebBoilerScriptDate = __DATE__; |
| andrewboyson | 49:9491c966dc60 | 12 | const char* WebBoilerScriptTime = __TIME__; |
| andrewboyson | 47:229338b3adcb | 13 | |
| andrewboyson | 49:9491c966dc60 | 14 | void WebBoilerScript() |
| andrewboyson | 47:229338b3adcb | 15 | { |
| andrewboyson | 49:9491c966dc60 | 16 | HttpOk("application/javascript; charset=UTF-8", "max-age=3600", WebBoilerScriptDate, WebBoilerScriptTime); |
| andrewboyson | 47:229338b3adcb | 17 | HttpAddText(script); |
| andrewboyson | 47:229338b3adcb | 18 | } |