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@39:5d8a37c921c3, 2019-03-14 (annotated)
- Committer:
- andrewboyson
- Date:
- Thu Mar 14 16:58:03 2019 +0000
- Revision:
- 39:5d8a37c921c3
- Parent:
- 26:85e3becbebc9
Libraries updated
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 | 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 | } |