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-this/program/web-program-ajax.c
- Revision:
- 53:c1bf7d9db507
- Parent:
- 52:76254a967391
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/web-this/program/web-program-ajax.c Wed May 01 10:05:00 2019 +0000
@@ -0,0 +1,26 @@
+#include <stdint.h>
+#include <stdio.h>
+
+#include "http.h"
+#include "boiler.h"
+#include "radiator.h"
+#include "ds18b20.h"
+#include "program.h"
+#include "1-wire-device.h"
+
+void WebProgramAjax()
+{
+ HttpOk("text/plain; charset=UTF-8", "no-cache", NULL, NULL);
+
+ HttpAddNibbleAsHex(ProgramTimerOutput ); HttpAddChar('\n');
+ HttpAddByteAsHex (ProgramGetNewDayHour()); HttpAddChar('\n');
+ HttpAddNibbleAsHex(ProgramGetDay(1) ); HttpAddChar(',');
+ HttpAddNibbleAsHex(ProgramGetDay(2) ); HttpAddChar(',');
+ HttpAddNibbleAsHex(ProgramGetDay(3) ); HttpAddChar(',');
+ HttpAddNibbleAsHex(ProgramGetDay(4) ); HttpAddChar(',');
+ HttpAddNibbleAsHex(ProgramGetDay(5) ); HttpAddChar(',');
+ HttpAddNibbleAsHex(ProgramGetDay(6) ); HttpAddChar(',');
+ HttpAddNibbleAsHex(ProgramGetDay(0) ); HttpAddChar('\n');
+ ProgramSendAjax();
+
+}