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:
25:f73966bd9b43
Parent:
24:e3ed1b52c6e6
Child:
26:85e3becbebc9
--- a/http-derived/boiler/http-boiler-query.c	Thu Jan 17 13:42:54 2019 +0000
+++ b/http-derived/boiler/http-boiler-query.c	Fri Jan 18 14:37:32 2019 +0000
@@ -13,9 +13,9 @@
 
         int value = (int)strtol(pValue, NULL, 10);
                     
-        if (strcmp(pName, "tanksetpoint"  ) == 0) BoilerSetTankSetPoint  (value);
-        if (strcmp(pName, "tankhysteresis") == 0) BoilerSetTankHysteresis(value);
-        if (strcmp(pName, "boilerresidual") == 0) BoilerSetRunOnResidual (value);
-        if (strcmp(pName, "boilerrunon"   ) == 0) BoilerSetRunOnTime     (value);
+        if (HttpSameStr(pName, "tanksetpoint"  )) BoilerSetTankSetPoint  (value);
+        if (HttpSameStr(pName, "tankhysteresis")) BoilerSetTankHysteresis(value);
+        if (HttpSameStr(pName, "boilerresidual")) BoilerSetRunOnResidual (value);
+        if (HttpSameStr(pName, "boilerrunon"   )) BoilerSetRunOnTime     (value);
     }
 }