Central Heating controller using the real time clock, PHY module for internet, 1-wire interface for temperature sensors, a system log and a configuration file

Dependencies:   net 1-wire lpc1768 crypto clock web fram log

/media/uploads/andrewboyson/heating.sch

/media/uploads/andrewboyson/heating.brd

/media/uploads/andrewboyson/eagle.epf

Revision:
49:9491c966dc60
Parent:
48:6eac12df3ad5
Child:
52:76254a967391
diff -r 6eac12df3ad5 -r 9491c966dc60 web-derived/boiler/web-boiler-ajax.c
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web-derived/boiler/web-boiler-ajax.c	Sat Apr 27 09:27:11 2019 +0000
@@ -0,0 +1,32 @@
+#include  <stdint.h>
+#include   <stdio.h>
+
+#include "http.h"
+#include "web-base.h"
+#include "boiler.h"
+#include "radiator.h"
+#include "ds18b20.h"
+#include "program.h"
+#include "1-wire-device.h"
+
+void WebBoilerAjax()
+{
+    HttpOk("text/plain; charset=UTF-8", "no-cache", NULL, NULL);
+
+    HttpAddInt16AsHex(BoilerGetTankDS18B20Value()  ); HttpAddChar('\n');
+    HttpAddInt16AsHex(BoilerGetOutputDS18B20Value()); HttpAddChar('\n');
+    HttpAddInt16AsHex(BoilerGetReturnDS18B20Value()); HttpAddChar('\n');
+    
+    int nibble = 0;
+    if (BoilerCall           ) nibble |= 1;
+    if (BoilerPump           ) nibble |= 2;
+    HttpAddNibbleAsHex (nibble); HttpAddChar('\n');
+    
+    HttpAddInt16AsHex(BoilerGetTankSetPoint  ()); HttpAddChar('\n');
+    HttpAddInt16AsHex(BoilerGetTankHysteresis()); HttpAddChar('\n');
+    HttpAddInt16AsHex(BoilerGetRunOnResidual ()); HttpAddChar('\n');
+    HttpAddInt16AsHex(BoilerGetRunOnTime     ()); HttpAddChar('\n');
+
+    
+}
+