A GPS disciplined clock
Dependencies: net lpc1768 crypto clock web log
http-derived/nmea/http-nmea-query.c@27:eb5728b9052b, 2019-01-17 (annotated)
- Committer:
- andrewboyson
- Date:
- Thu Jan 17 13:43:35 2019 +0000
- Revision:
- 27:eb5728b9052b
- Child:
- 29:4fe0f237fd61
Updated http-base library
Who changed what in which revision?
User | Revision | Line number | New 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 | 27:eb5728b9052b | 12 | pQuery = HttpSplitQuery(pQuery, &pName, &pValue); |
andrewboyson | 27:eb5728b9052b | 13 | |
andrewboyson | 27:eb5728b9052b | 14 | int value = (int)strtol(pValue, NULL, 10); |
andrewboyson | 27:eb5728b9052b | 15 | |
andrewboyson | 27:eb5728b9052b | 16 | if (strcmp(pName, "sensorheight") == 0) SetSensorHeight(value); |
andrewboyson | 27:eb5728b9052b | 17 | } |
andrewboyson | 27:eb5728b9052b | 18 | } |