Controls the central heating system and the lights.

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

Revision:
5:3579001bea1b
Parent:
0:22b158d3c76f
Child:
8:8ac076ce51af
--- a/web-this/radiator/web-radiator-ajax.c	Thu May 13 19:09:54 2021 +0000
+++ b/web-this/radiator/web-radiator-ajax.c	Thu May 20 14:34:51 2021 +0000
@@ -13,17 +13,20 @@
     HttpOk("text/plain; charset=UTF-8", "no-cache", NULL, NULL);
                         
     HttpAddInt16AsHex(RadiatorGetHallDS18B20Value()); HttpAddChar('\n');
+    HttpAddInt16AsHex(BoilerGetTankDS18B20Value()  ); HttpAddChar('\n');
     
-    int nibble = 0;
-    if (ProgramTimerOutput   ) nibble |= 0x01;
-    if (RadiatorGetWinter()  ) nibble |= 0x02;
-    if (RadiatorGetOverride()) nibble |= 0x04;
-    if (RadiatorPump         ) nibble |= 0x08;
-    HttpAddNibbleAsHex (nibble); HttpAddChar('\n');
+    int byte = 0;
+    if (ProgramTimerOutput            ) byte |= 0x01;
+    if (RadiatorGetWinter()           ) byte |= 0x02;
+    if (RadiatorGetOverride()         ) byte |= 0x04;
+    if (RadiatorPump                  ) byte |= 0x08;
+    if (RadiatorGetHotWaterProtectOn()) byte |= 0x10;
+    HttpAddByteAsHex(byte);    HttpAddChar('\n');
     
     HttpAddByteAsHex (RadiatorGetOverrideCancelHour()  ); HttpAddChar('\n');
     HttpAddByteAsHex (RadiatorGetOverrideCancelMinute()); HttpAddChar('\n');
     HttpAddInt16AsHex(RadiatorGetNightTemperature()    ); HttpAddChar('\n');
     HttpAddInt16AsHex(RadiatorGetFrostTemperature()    ); HttpAddChar('\n');
+    HttpAddByteAsHex (RadiatorGetHotWaterProtectTemp() ); HttpAddChar('\n');
 }