Manages the 1-wire bus

Dependents:   oldheating heating

web/web-1wire-script.c

Committer:
andrewboyson
Date:
2021-02-18
Revision:
11:3859fee99d5d
Parent:
6:e50c61e80f01

File content as of revision 11:3859fee99d5d:

#include "http.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/common/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);
}