Dependencies: 1-wire clock crypto fram log lpc1768 net web wiz mbed
web-this/system/web-system-query.c@8:8ac076ce51af, 2022-11-12 (annotated)
- Committer:
- andrewboyson
- Date:
- Sat Nov 12 10:03:38 2022 +0000
- Revision:
- 8:8ac076ce51af
- Parent:
- 0:22b158d3c76f
Updated LPC1768 library
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
andrewboyson | 0:22b158d3c76f | 1 | #include <string.h> |
andrewboyson | 0:22b158d3c76f | 2 | #include <stdlib.h> |
andrewboyson | 0:22b158d3c76f | 3 | |
andrewboyson | 0:22b158d3c76f | 4 | #include "http.h" |
andrewboyson | 0:22b158d3c76f | 5 | #include "watchdog.h" |
andrewboyson | 0:22b158d3c76f | 6 | #include "1-wire-device.h" |
andrewboyson | 0:22b158d3c76f | 7 | #include "boiler.h" |
andrewboyson | 0:22b158d3c76f | 8 | #include "radiator.h" |
andrewboyson | 0:22b158d3c76f | 9 | #include "values.h" |
andrewboyson | 0:22b158d3c76f | 10 | #include "ip4.h" |
andrewboyson | 0:22b158d3c76f | 11 | #include "settings.h" |
andrewboyson | 0:22b158d3c76f | 12 | #include "clktime.h" |
andrewboyson | 0:22b158d3c76f | 13 | |
andrewboyson | 0:22b158d3c76f | 14 | void WebSystemQuery(char* pQuery) |
andrewboyson | 0:22b158d3c76f | 15 | { |
andrewboyson | 0:22b158d3c76f | 16 | while (pQuery) |
andrewboyson | 0:22b158d3c76f | 17 | { |
andrewboyson | 0:22b158d3c76f | 18 | char* pName; |
andrewboyson | 0:22b158d3c76f | 19 | char* pValue; |
andrewboyson | 0:22b158d3c76f | 20 | pQuery = HttpQuerySplit(pQuery, &pName, &pValue); |
andrewboyson | 0:22b158d3c76f | 21 | |
andrewboyson | 0:22b158d3c76f | 22 | HttpQueryUnencode(pValue); |
andrewboyson | 0:22b158d3c76f | 23 | |
andrewboyson | 0:22b158d3c76f | 24 | int value = HttpQueryValueAsInt(pValue); |
andrewboyson | 0:22b158d3c76f | 25 | |
andrewboyson | 0:22b158d3c76f | 26 | if (HttpSameStr(pName, "tftpserver" )) ValuesSetServerName (pValue ); |
andrewboyson | 0:22b158d3c76f | 27 | if (HttpSameStr(pName, "tftpfilename" )) ValuesSetFileName (pValue ); |
andrewboyson | 0:22b158d3c76f | 28 | if (HttpSameStr(pName, "tftpwriteint" )) ValuesSetWriteSize (value ); |
andrewboyson | 0:22b158d3c76f | 29 | if (HttpSameStr(pName, "tftpreadint" )) ValuesSetReadInterval (value ); |
andrewboyson | 0:22b158d3c76f | 30 | } |
andrewboyson | 0:22b158d3c76f | 31 | } |