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
- Committer:
- andrewboyson
- Date:
- 2019-03-14
- Revision:
- 39:5d8a37c921c3
- Parent:
- 35:bb8a6d1c034c
- Child:
- 47:229338b3adcb
File content as of revision 39:5d8a37c921c3:
#include <string.h> #include <stdlib.h> #include "http.h" #include "radiator.h" void HttpRadiatorQuery(char* pQuery) { while (pQuery) { char* pName; char* pValue; pQuery = HttpQuerySplit(pQuery, &pName, &pValue); int value = HttpQueryValueAsInt(pValue); if (HttpSameStr(pName, "nighttemp")) RadiatorSetNightTemperature(value); if (HttpSameStr(pName, "frosttemp")) RadiatorSetFrostTemperature(value); } }