Manages the 1-wire bus
Dependents: oldheating heating
Diff: web/web-1wire-script.c
- Revision:
- 2:79cad6a51fd0
- Child:
- 4:822208cb5a13
diff -r c272b1fcc834 -r 79cad6a51fd0 web/web-1wire-script.c --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/web-1wire-script.c Sat Apr 27 09:26:15 2019 +0000 @@ -0,0 +1,20 @@ +#include "http.h" +#include "web-derived.h" +#include "web-base.h" + +//Use http://tomeko.net/online_tools/cpp_text_escape.php to convert from text to c-multiline +//Use http://tomeko.net/online_tools/cpp_text_unescape.php to convert from c-multiline to text + +static const char* script = +#include "../../web-base/base/web-ajax-class.inc" +#include "web-1wire-class.inc" +#include "web-1wire-script.inc" +; +const char* WebOneWireScriptDate = __DATE__; +const char* WebOneWireScriptTime = __TIME__; + +void WebOneWireScript() +{ + HttpOk("application/javascript; charset=UTF-8", "max-age=3600", WebOneWireScriptDate, WebOneWireScriptTime); + HttpAddText(script); +}