Dependencies: net 1-wire lpc1768 crypto clock web fram log
/media/uploads/andrewboyson/heating.sch
/media/uploads/andrewboyson/heating.brd
/media/uploads/andrewboyson/eagle.epf
Diff: web-this/system/web-system-query.c
- Revision:
- 53:c1bf7d9db507
- Parent:
- 49:9491c966dc60
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web-this/system/web-system-query.c Wed May 01 10:05:00 2019 +0000 @@ -0,0 +1,31 @@ +#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 ); + } +}