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
http-derived/boiler/http-boiler-query.c@25:f73966bd9b43, 2019-01-18 (annotated)
- Committer:
- andrewboyson
- Date:
- Fri Jan 18 14:37:32 2019 +0000
- Revision:
- 25:f73966bd9b43
- Parent:
- 24:e3ed1b52c6e6
- Child:
- 26:85e3becbebc9
Updated libraries
Who changed what in which revision?
User | Revision | Line number | New 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 | 24:e3ed1b52c6e6 | 6 | void HttpBoilerQuery(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 | 24:e3ed1b52c6e6 | 12 | pQuery = HttpSplitQuery(pQuery, &pName, &pValue); |
andrewboyson | 24:e3ed1b52c6e6 | 13 | |
andrewboyson | 24:e3ed1b52c6e6 | 14 | int value = (int)strtol(pValue, NULL, 10); |
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 | } |