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:
39:5d8a37c921c3
Parent:
26:85e3becbebc9
--- a/http-derived/boiler/http-boiler-query.c	Mon Mar 11 16:47:54 2019 +0000
+++ b/http-derived/boiler/http-boiler-query.c	Thu Mar 14 16:58:03 2019 +0000
@@ -11,7 +11,7 @@
         char* pValue;
         pQuery = HttpQuerySplit(pQuery, &pName, &pValue);
 
-        int value = (int)strtol(pValue, NULL, 10);
+        int value = HttpQueryValueAsInt(pValue);
                     
         if (HttpSameStr(pName, "tanksetpoint"  )) BoilerSetTankSetPoint  (value);
         if (HttpSameStr(pName, "tankhysteresis")) BoilerSetTankHysteresis(value);