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@24:e3ed1b52c6e6, 2019-01-17 (annotated)
- Committer:
- andrewboyson
- Date:
- Thu Jan 17 13:42:54 2019 +0000
- Revision:
- 24:e3ed1b52c6e6
- Child:
- 25:f73966bd9b43
Updated http-base library
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 | 24:e3ed1b52c6e6 | 16 | if (strcmp(pName, "tanksetpoint" ) == 0) BoilerSetTankSetPoint (value); |
andrewboyson | 24:e3ed1b52c6e6 | 17 | if (strcmp(pName, "tankhysteresis") == 0) BoilerSetTankHysteresis(value); |
andrewboyson | 24:e3ed1b52c6e6 | 18 | if (strcmp(pName, "boilerresidual") == 0) BoilerSetRunOnResidual (value); |
andrewboyson | 24:e3ed1b52c6e6 | 19 | if (strcmp(pName, "boilerrunon" ) == 0) BoilerSetRunOnTime (value); |
andrewboyson | 24:e3ed1b52c6e6 | 20 | } |
andrewboyson | 24:e3ed1b52c6e6 | 21 | } |