Dependencies: 1-wire clock crypto fram log lpc1768 net web wiz mbed
web-this/system/web-system-query.c
- Committer:
- andrewboyson
- Date:
- 2022-11-12
- Revision:
- 8:8ac076ce51af
- Parent:
- 0:22b158d3c76f
File content as of revision 8:8ac076ce51af:
#include <string.h> #include <stdlib.h> #include "http.h" #include "watchdog.h" #include "1-wire-device.h" #include "boiler.h" #include "radiator.h" #include "values.h" #include "ip4.h" #include "settings.h" #include "clktime.h" void WebSystemQuery(char* pQuery) { while (pQuery) { char* pName; char* pValue; pQuery = HttpQuerySplit(pQuery, &pName, &pValue); HttpQueryUnencode(pValue); int value = HttpQueryValueAsInt(pValue); if (HttpSameStr(pName, "tftpserver" )) ValuesSetServerName (pValue ); if (HttpSameStr(pName, "tftpfilename" )) ValuesSetFileName (pValue ); if (HttpSameStr(pName, "tftpwriteint" )) ValuesSetWriteSize (value ); if (HttpSameStr(pName, "tftpreadint" )) ValuesSetReadInterval (value ); } }