Central Heating controller using the real time clock, PHY module for internet, 1-wire interface for temperature sensors, a system log and a configuration file
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
web-derived/system/web-system-query.c
- Committer:
- andrewboyson
- Date:
- 2019-04-27
- Revision:
- 49:9491c966dc60
- Parent:
- http-derived/system/http-system-query.c@ 48:6eac12df3ad5
File content as of revision 49:9491c966dc60:
#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 ); } }