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

Committer:
andrewboyson
Date:
Sat Apr 27 09:27:11 2019 +0000
Revision:
49:9491c966dc60
Parent:
http-derived/boiler/http-boiler-query.c@39:5d8a37c921c3
Updated web library

Who changed what in which revision?

UserRevisionLine numberNew contents of line
andrewboyson 24:e3ed1b52c6e6 1 #include <stdlib.h>
andrewboyson 24:e3ed1b52c6e6 2 #include <string.h>
andrewboyson 24:e3ed1b52c6e6 3 #include "http.h"
andrewboyson 24:e3ed1b52c6e6 4 #include "boiler.h"
andrewboyson 24:e3ed1b52c6e6 5
andrewboyson 49:9491c966dc60 6 void WebBoilerQuery(char* pQuery)
andrewboyson 24:e3ed1b52c6e6 7 {
andrewboyson 24:e3ed1b52c6e6 8 while (pQuery)
andrewboyson 24:e3ed1b52c6e6 9 {
andrewboyson 24:e3ed1b52c6e6 10 char* pName;
andrewboyson 24:e3ed1b52c6e6 11 char* pValue;
andrewboyson 26:85e3becbebc9 12 pQuery = HttpQuerySplit(pQuery, &pName, &pValue);
andrewboyson 24:e3ed1b52c6e6 13
andrewboyson 39:5d8a37c921c3 14 int value = HttpQueryValueAsInt(pValue);
andrewboyson 24:e3ed1b52c6e6 15
andrewboyson 25:f73966bd9b43 16 if (HttpSameStr(pName, "tanksetpoint" )) BoilerSetTankSetPoint (value);
andrewboyson 25:f73966bd9b43 17 if (HttpSameStr(pName, "tankhysteresis")) BoilerSetTankHysteresis(value);
andrewboyson 25:f73966bd9b43 18 if (HttpSameStr(pName, "boilerresidual")) BoilerSetRunOnResidual (value);
andrewboyson 25:f73966bd9b43 19 if (HttpSameStr(pName, "boilerrunon" )) BoilerSetRunOnTime (value);
andrewboyson 24:e3ed1b52c6e6 20 }
andrewboyson 24:e3ed1b52c6e6 21 }