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
web-this/boiler/web-boiler-query.c
- Committer:
- andrewboyson
- Date:
- 2020-06-10
- Revision:
- 91:8b192efd0288
- Parent:
- 53:c1bf7d9db507
- Child:
- 104:46ce1aaf8be7
File content as of revision 91:8b192efd0288:
#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); 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; } } }