Andrew Boyson / gps

Dependencies:   net lpc1768 crypto clock web log

http-derived/nmea/http-nmea-query.c

Committer:
andrewboyson
Date:
2019-03-14
Revision:
43:bf39371b4576
Parent:
36:2983e45eeb49

File content as of revision 43:bf39371b4576:

#include     "http.h"
#include "settings.h"

void HttpNmeaQuery(char* pQuery)
{
    while (pQuery)
    {
        char* pName;
        char* pValue;
        pQuery = HttpQuerySplit(pQuery, &pName, &pValue);
        
        int value = HttpQueryValueAsInt(pValue);
        
        if (HttpSameStr(pName, "sensorheight")) SetSensorHeight(value);
        if (HttpSameStr(pName, "nmeamsgtrace")) ChgNmeaMsgTrace();
        if (HttpSameStr(pName, "nmeacmdtrace")) ChgNmeaCmdTrace();
        if (HttpSameStr(pName,     "gpstrace")) ChgGpsTrace();
        if (HttpSameStr(pName,   "gpsverbose")) ChgGpsVerbose();
    }
}