Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: net 1-wire lpc1768 crypto clock web fram log
Diff: web-derived/boiler/web-boiler-script.c
- Revision:
- 49:9491c966dc60
- Parent:
- 48:6eac12df3ad5
- Child:
- 51:c7c6ce0d57ad
diff -r 6eac12df3ad5 -r 9491c966dc60 web-derived/boiler/web-boiler-script.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/web-derived/boiler/web-boiler-script.c Sat Apr 27 09:27:11 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 "../../1-wire/web/web-1wire-class.inc"
+#include "web-boiler-script.inc"
+;
+const char* WebBoilerScriptDate = __DATE__;
+const char* WebBoilerScriptTime = __TIME__;
+
+void WebBoilerScript()
+{
+ HttpOk("application/javascript; charset=UTF-8", "max-age=3600", WebBoilerScriptDate, WebBoilerScriptTime);
+ HttpAddText(script);
+}