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:
2019-05-01
Revision:
53:c1bf7d9db507
Parent:
web-derived/radiator/web-radiator-query.c@ 49:9491c966dc60
Child:
57:72c1c1357861

File content as of revision 53:c1bf7d9db507:

#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, "htg-chg-mode"     )) RadiatorChgMode();
        if (HttpSameStr(pName, "htg-chg-override" )) RadiatorChgOverride();
        if (HttpSameStr(pName, "nighttemp"        )) RadiatorSetNightTemperature(value);
        if (HttpSameStr(pName, "frosttemp"        )) RadiatorSetFrostTemperature(value);
    }
}