Manages the 1-wire bus
Dependents: oldheating heating
web/web-1wire-script.c@2:79cad6a51fd0, 2019-04-27 (annotated)
- Committer:
- andrewboyson
- Date:
- Sat Apr 27 09:26:15 2019 +0000
- Revision:
- 2:79cad6a51fd0
- Child:
- 4:822208cb5a13
Updated web library
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
andrewboyson | 2:79cad6a51fd0 | 1 | #include "http.h" |
andrewboyson | 2:79cad6a51fd0 | 2 | #include "web-derived.h" |
andrewboyson | 2:79cad6a51fd0 | 3 | #include "web-base.h" |
andrewboyson | 2:79cad6a51fd0 | 4 | |
andrewboyson | 2:79cad6a51fd0 | 5 | //Use http://tomeko.net/online_tools/cpp_text_escape.php to convert from text to c-multiline |
andrewboyson | 2:79cad6a51fd0 | 6 | //Use http://tomeko.net/online_tools/cpp_text_unescape.php to convert from c-multiline to text |
andrewboyson | 2:79cad6a51fd0 | 7 | |
andrewboyson | 2:79cad6a51fd0 | 8 | static const char* script = |
andrewboyson | 2:79cad6a51fd0 | 9 | #include "../../web-base/base/web-ajax-class.inc" |
andrewboyson | 2:79cad6a51fd0 | 10 | #include "web-1wire-class.inc" |
andrewboyson | 2:79cad6a51fd0 | 11 | #include "web-1wire-script.inc" |
andrewboyson | 2:79cad6a51fd0 | 12 | ; |
andrewboyson | 2:79cad6a51fd0 | 13 | const char* WebOneWireScriptDate = __DATE__; |
andrewboyson | 2:79cad6a51fd0 | 14 | const char* WebOneWireScriptTime = __TIME__; |
andrewboyson | 2:79cad6a51fd0 | 15 | |
andrewboyson | 2:79cad6a51fd0 | 16 | void WebOneWireScript() |
andrewboyson | 2:79cad6a51fd0 | 17 | { |
andrewboyson | 2:79cad6a51fd0 | 18 | HttpOk("application/javascript; charset=UTF-8", "max-age=3600", WebOneWireScriptDate, WebOneWireScriptTime); |
andrewboyson | 2:79cad6a51fd0 | 19 | HttpAddText(script); |
andrewboyson | 2:79cad6a51fd0 | 20 | } |