Manages the 1-wire bus

Dependents:   oldheating heating

Committer:
andrewboyson
Date:
Thu Feb 18 16:47:12 2021 +0000
Revision:
11:3859fee99d5d
Parent:
6:e50c61e80f01
Added 'value not set' to the list of possible values.

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 6:e50c61e80f01 7 #include "../../web/common/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 }