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

Committer:
andrewboyson
Date:
Sat Apr 27 09:27:11 2019 +0000
Revision:
49:9491c966dc60
Parent:
http-derived/radiator/http-radiator-query.c@47:229338b3adcb
Updated web library

Who changed what in which revision?

UserRevisionLine numberNew 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 49:9491c966dc60 6 void WebRadiatorQuery(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 47:229338b3adcb 15 if (HttpSameStr(pName, "htg-chg-mode" )) RadiatorChgMode();
andrewboyson 47:229338b3adcb 16 if (HttpSameStr(pName, "htg-chg-override" )) RadiatorChgOverride();
andrewboyson 47:229338b3adcb 17 if (HttpSameStr(pName, "nighttemp" )) RadiatorSetNightTemperature(value);
andrewboyson 47:229338b3adcb 18 if (HttpSameStr(pName, "frosttemp" )) RadiatorSetFrostTemperature(value);
andrewboyson 35:bb8a6d1c034c 19 }
andrewboyson 35:bb8a6d1c034c 20 }
andrewboyson 35:bb8a6d1c034c 21