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
web-this/radiator/web-radiator-query.c
- Committer:
- andrewboyson
- Date:
- 2021-04-23
- Revision:
- 106:41ed3ea0bbba
- Parent:
- 96:18a3813bb4b5
File content as of revision 106:41ed3ea0bbba:
#include <string.h> #include <stdlib.h> #include "http.h" #include "radiator.h" void WebRadiatorQuery(char* pQuery) { while (pQuery) { char* pName; char* pValue; pQuery = HttpQuerySplit(pQuery, &pName, &pValue); int value = HttpQueryValueAsInt(pValue); if (HttpSameStr(pName, "overridecancelminute")) { int hour = value / 100; int minute = value % 100; RadiatorSetOverrideCancelHour (hour); RadiatorSetOverrideCancelMinute(minute); } if (HttpSameStr(pName, "htg-chg-mode" )) RadiatorChgWinter(); if (HttpSameStr(pName, "htg-chg-override" )) RadiatorChgOverride(); if (HttpSameStr(pName, "nighttemp" )) RadiatorSetNightTemperature(value); if (HttpSameStr(pName, "frosttemp" )) RadiatorSetFrostTemperature(value); } }