A GPS disciplined clock

Dependencies:   net lpc1768 crypto clock web log

Committer:
andrewboyson
Date:
Tue Feb 12 15:37:17 2019 +0000
Revision:
35:a535b65203a9
Parent:
29:4fe0f237fd61
Child:
36:2983e45eeb49
Lots of improvements to the GPS and NMEA modules

Who changed what in which revision?

UserRevisionLine numberNew contents of line
andrewboyson 27:eb5728b9052b 1 #include <string.h>
andrewboyson 27:eb5728b9052b 2 #include <stdlib.h>
andrewboyson 27:eb5728b9052b 3 #include "http.h"
andrewboyson 27:eb5728b9052b 4 #include "settings.h"
andrewboyson 27:eb5728b9052b 5
andrewboyson 27:eb5728b9052b 6 void HttpNmeaQuery(char* pQuery)
andrewboyson 27:eb5728b9052b 7 {
andrewboyson 27:eb5728b9052b 8 while (pQuery)
andrewboyson 27:eb5728b9052b 9 {
andrewboyson 27:eb5728b9052b 10 char* pName;
andrewboyson 27:eb5728b9052b 11 char* pValue;
andrewboyson 29:4fe0f237fd61 12 pQuery = HttpQuerySplit(pQuery, &pName, &pValue);
andrewboyson 27:eb5728b9052b 13
andrewboyson 27:eb5728b9052b 14 int value = (int)strtol(pValue, NULL, 10);
andrewboyson 27:eb5728b9052b 15
andrewboyson 35:a535b65203a9 16 if (HttpSameStr(pName, "sensorheight")) SetSensorHeight(value);
andrewboyson 35:a535b65203a9 17 if (HttpSameStr(pName, "nmeamsgtrace")) ChgNmeaMsgTrace();
andrewboyson 35:a535b65203a9 18 if (HttpSameStr(pName, "nmeacmdtrace")) ChgNmeaCmdTrace();
andrewboyson 35:a535b65203a9 19 if (HttpSameStr(pName, "gpstrace")) ChgGpsTrace();
andrewboyson 27:eb5728b9052b 20 }
andrewboyson 27:eb5728b9052b 21 }