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/radiator/http-radiator-query.c@39:5d8a37c921c3, 2019-03-14 (annotated)
- Committer:
- andrewboyson
- Date:
- Thu Mar 14 16:58:03 2019 +0000
- Revision:
- 39:5d8a37c921c3
- Parent:
- 35:bb8a6d1c034c
- Child:
- 47:229338b3adcb
Libraries updated
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
andrewboyson | 35:bb8a6d1c034c | 1 | #include <string.h> |
andrewboyson | 35:bb8a6d1c034c | 2 | #include <stdlib.h> |
andrewboyson | 35:bb8a6d1c034c | 3 | #include "http.h" |
andrewboyson | 35:bb8a6d1c034c | 4 | #include "radiator.h" |
andrewboyson | 35:bb8a6d1c034c | 5 | |
andrewboyson | 35:bb8a6d1c034c | 6 | void HttpRadiatorQuery(char* pQuery) |
andrewboyson | 35:bb8a6d1c034c | 7 | { |
andrewboyson | 35:bb8a6d1c034c | 8 | while (pQuery) |
andrewboyson | 35:bb8a6d1c034c | 9 | { |
andrewboyson | 35:bb8a6d1c034c | 10 | char* pName; |
andrewboyson | 35:bb8a6d1c034c | 11 | char* pValue; |
andrewboyson | 35:bb8a6d1c034c | 12 | pQuery = HttpQuerySplit(pQuery, &pName, &pValue); |
andrewboyson | 39:5d8a37c921c3 | 13 | int value = HttpQueryValueAsInt(pValue); |
andrewboyson | 35:bb8a6d1c034c | 14 | |
andrewboyson | 35:bb8a6d1c034c | 15 | if (HttpSameStr(pName, "nighttemp")) RadiatorSetNightTemperature(value); |
andrewboyson | 35:bb8a6d1c034c | 16 | if (HttpSameStr(pName, "frosttemp")) RadiatorSetFrostTemperature(value); |
andrewboyson | 35:bb8a6d1c034c | 17 | } |
andrewboyson | 35:bb8a6d1c034c | 18 | } |
andrewboyson | 35:bb8a6d1c034c | 19 |