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:
91:8b192efd0288
Parent:
53:c1bf7d9db507
Child:
104:46ce1aaf8be7
--- a/web-this/boiler/web-boiler-query.c	Thu Jun 04 16:37:59 2020 +0000
+++ b/web-this/boiler/web-boiler-query.c	Wed Jun 10 10:08:06 2020 +0000
@@ -10,12 +10,30 @@
         char* pName;
         char* pValue;
         pQuery = HttpQuerySplit(pQuery, &pName, &pValue);
-
-        int value = HttpQueryValueAsInt(pValue);
                     
-        if (HttpSameStr(pName, "tanksetpoint"  )) BoilerSetTankSetPoint  (value);
-        if (HttpSameStr(pName, "tankhysteresis")) BoilerSetTankHysteresis(value);
-        if (HttpSameStr(pName, "boilerresidual")) BoilerSetRunOnResidual (value);
-        if (HttpSameStr(pName, "boilerrunon"   )) BoilerSetRunOnTime     (value);
+        if (HttpSameStr(pName, "tanksetpoint"  ))
+        {
+            int value = HttpQueryValueAsInt(pValue);
+            BoilerSetTankSetPoint(value);
+            return;
+        }
+        if (HttpSameStr(pName, "tankhysteresis"))
+        {
+            int value = HttpQueryValueAsInt(pValue);
+            BoilerSetTankHysteresis(value);
+            return;
+        }
+        if (HttpSameStr(pName, "boilerresidual"))
+        {
+            double value = HttpQueryValueAsDouble(pValue);
+            BoilerSetRunOnResidual16ths((int)(value * 16));
+            return;
+        }
+        if (HttpSameStr(pName, "boilerrunon"   ))
+        {
+            int value = HttpQueryValueAsInt(pValue);
+            BoilerSetRunOnTime(value);
+            return;
+        }
     }
 }