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
Diff: web-derived/boiler/web-boiler-query.c
- Revision:
- 49:9491c966dc60
- Parent:
- 39:5d8a37c921c3
diff -r 6eac12df3ad5 -r 9491c966dc60 web-derived/boiler/web-boiler-query.c --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web-derived/boiler/web-boiler-query.c Sat Apr 27 09:27:11 2019 +0000 @@ -0,0 +1,21 @@ +#include <stdlib.h> +#include <string.h> +#include "http.h" +#include "boiler.h" + +void WebBoilerQuery(char* pQuery) +{ + while (pQuery) + { + 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); + } +}