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-this/system/web-system-query.c@53:c1bf7d9db507, 2019-05-01 (annotated)
- Committer:
- andrewboyson
- Date:
- Wed May 01 10:05:00 2019 +0000
- Revision:
- 53:c1bf7d9db507
- Parent:
- web-derived/system/web-system-query.c@49:9491c966dc60
Updated web library
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
andrewboyson | 24:e3ed1b52c6e6 | 1 | #include <string.h> |
andrewboyson | 24:e3ed1b52c6e6 | 2 | #include <stdlib.h> |
andrewboyson | 53:c1bf7d9db507 | 3 | |
andrewboyson | 24:e3ed1b52c6e6 | 4 | #include "http.h" |
andrewboyson | 24:e3ed1b52c6e6 | 5 | #include "watchdog.h" |
andrewboyson | 24:e3ed1b52c6e6 | 6 | #include "1-wire-device.h" |
andrewboyson | 24:e3ed1b52c6e6 | 7 | #include "boiler.h" |
andrewboyson | 24:e3ed1b52c6e6 | 8 | #include "radiator.h" |
andrewboyson | 24:e3ed1b52c6e6 | 9 | #include "values.h" |
andrewboyson | 24:e3ed1b52c6e6 | 10 | #include "ip4.h" |
andrewboyson | 24:e3ed1b52c6e6 | 11 | #include "settings.h" |
andrewboyson | 24:e3ed1b52c6e6 | 12 | #include "clktime.h" |
andrewboyson | 24:e3ed1b52c6e6 | 13 | |
andrewboyson | 49:9491c966dc60 | 14 | void WebSystemQuery(char* pQuery) |
andrewboyson | 24:e3ed1b52c6e6 | 15 | { |
andrewboyson | 24:e3ed1b52c6e6 | 16 | while (pQuery) |
andrewboyson | 24:e3ed1b52c6e6 | 17 | { |
andrewboyson | 24:e3ed1b52c6e6 | 18 | char* pName; |
andrewboyson | 24:e3ed1b52c6e6 | 19 | char* pValue; |
andrewboyson | 26:85e3becbebc9 | 20 | pQuery = HttpQuerySplit(pQuery, &pName, &pValue); |
andrewboyson | 24:e3ed1b52c6e6 | 21 | |
andrewboyson | 26:85e3becbebc9 | 22 | HttpQueryUnencode(pValue); |
andrewboyson | 24:e3ed1b52c6e6 | 23 | |
andrewboyson | 39:5d8a37c921c3 | 24 | int value = HttpQueryValueAsInt(pValue); |
andrewboyson | 24:e3ed1b52c6e6 | 25 | |
andrewboyson | 25:f73966bd9b43 | 26 | if (HttpSameStr(pName, "tftpserver" )) ValuesSetServerName (pValue ); |
andrewboyson | 25:f73966bd9b43 | 27 | if (HttpSameStr(pName, "tftpfilename" )) ValuesSetFileName (pValue ); |
andrewboyson | 25:f73966bd9b43 | 28 | if (HttpSameStr(pName, "tftpwriteint" )) ValuesSetWriteSize (value ); |
andrewboyson | 37:1cdd820f2747 | 29 | if (HttpSameStr(pName, "tftpreadint" )) ValuesSetReadInterval (value ); |
andrewboyson | 24:e3ed1b52c6e6 | 30 | } |
andrewboyson | 24:e3ed1b52c6e6 | 31 | } |