Manages the 1-wire bus

Dependents:   oldheating heating

Committer:
andrewboyson
Date:
Wed May 01 07:16:03 2019 +0000
Revision:
4:822208cb5a13
Parent:
2:79cad6a51fd0
Child:
6:e50c61e80f01
Updated web library

Who changed what in which revision?

UserRevisionLine numberNew contents of line
andrewboyson 2:79cad6a51fd0 1 #include "http.h"
andrewboyson 2:79cad6a51fd0 2
andrewboyson 2:79cad6a51fd0 3 //Use http://tomeko.net/online_tools/cpp_text_escape.php to convert from text to c-multiline
andrewboyson 2:79cad6a51fd0 4 //Use http://tomeko.net/online_tools/cpp_text_unescape.php to convert from c-multiline to text
andrewboyson 2:79cad6a51fd0 5
andrewboyson 2:79cad6a51fd0 6 static const char* script =
andrewboyson 4:822208cb5a13 7 #include "../../web/core/web-ajax-class.inc"
andrewboyson 2:79cad6a51fd0 8 #include "web-1wire-class.inc"
andrewboyson 2:79cad6a51fd0 9 #include "web-1wire-script.inc"
andrewboyson 2:79cad6a51fd0 10 ;
andrewboyson 2:79cad6a51fd0 11 const char* WebOneWireScriptDate = __DATE__;
andrewboyson 2:79cad6a51fd0 12 const char* WebOneWireScriptTime = __TIME__;
andrewboyson 2:79cad6a51fd0 13
andrewboyson 2:79cad6a51fd0 14 void WebOneWireScript()
andrewboyson 2:79cad6a51fd0 15 {
andrewboyson 2:79cad6a51fd0 16 HttpOk("application/javascript; charset=UTF-8", "max-age=3600", WebOneWireScriptDate, WebOneWireScriptTime);
andrewboyson 2:79cad6a51fd0 17 HttpAddText(script);
andrewboyson 2:79cad6a51fd0 18 }