
Controls the central heating system and the lights.
Dependencies: 1-wire clock crypto fram log lpc1768 net web wiz mbed
web-this/program/web-program-script.c@8:8ac076ce51af, 2022-11-12 (annotated)
- Committer:
- andrewboyson
- Date:
- Sat Nov 12 10:03:38 2022 +0000
- Revision:
- 8:8ac076ce51af
- Parent:
- 0:22b158d3c76f
Updated LPC1768 library
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
andrewboyson | 0:22b158d3c76f | 1 | #include "http.h" |
andrewboyson | 0:22b158d3c76f | 2 | |
andrewboyson | 0:22b158d3c76f | 3 | //Use http://tomeko.net/online_tools/cpp_text_escape.php to convert from text to c-multiline |
andrewboyson | 0:22b158d3c76f | 4 | //Use http://tomeko.net/online_tools/cpp_text_unescape.php to convert from c-multiline to text |
andrewboyson | 0:22b158d3c76f | 5 | |
andrewboyson | 0:22b158d3c76f | 6 | static const char* script = |
andrewboyson | 0:22b158d3c76f | 7 | #include "../../web/common/web-ajax-class.inc" |
andrewboyson | 0:22b158d3c76f | 8 | #include "../../1-wire/web/web-1wire-class.inc" |
andrewboyson | 0:22b158d3c76f | 9 | #include "web-program-script.inc" |
andrewboyson | 0:22b158d3c76f | 10 | ; |
andrewboyson | 0:22b158d3c76f | 11 | const char* WebProgramScriptDate = __DATE__; |
andrewboyson | 0:22b158d3c76f | 12 | const char* WebProgramScriptTime = __TIME__; |
andrewboyson | 0:22b158d3c76f | 13 | |
andrewboyson | 0:22b158d3c76f | 14 | void WebProgramScript() |
andrewboyson | 0:22b158d3c76f | 15 | { |
andrewboyson | 0:22b158d3c76f | 16 | HttpOk("application/javascript; charset=UTF-8", "max-age=3600", WebProgramScriptDate, WebProgramScriptTime); |
andrewboyson | 0:22b158d3c76f | 17 | HttpAddText(script); |
andrewboyson | 0:22b158d3c76f | 18 | } |