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

Committer:
andrewboyson
Date:
Sat Apr 27 09:27:11 2019 +0000
Revision:
49:9491c966dc60
Parent:
http-derived/system/http-system-query.c@48:6eac12df3ad5
Updated web library

Who changed what in which revision?

UserRevisionLine numberNew contents of line
andrewboyson 24:e3ed1b52c6e6 1 #include <string.h>
andrewboyson 24:e3ed1b52c6e6 2 #include <stdlib.h>
andrewboyson 24:e3ed1b52c6e6 3 #include "http.h"
andrewboyson 24:e3ed1b52c6e6 4 #include "watchdog.h"
andrewboyson 24:e3ed1b52c6e6 5 #include "1-wire-device.h"
andrewboyson 24:e3ed1b52c6e6 6 #include "boiler.h"
andrewboyson 24:e3ed1b52c6e6 7 #include "radiator.h"
andrewboyson 24:e3ed1b52c6e6 8 #include "values.h"
andrewboyson 24:e3ed1b52c6e6 9 #include "ip4.h"
andrewboyson 24:e3ed1b52c6e6 10 #include "settings.h"
andrewboyson 24:e3ed1b52c6e6 11 #include "clktime.h"
andrewboyson 24:e3ed1b52c6e6 12
andrewboyson 49:9491c966dc60 13 void WebSystemQuery(char* pQuery)
andrewboyson 24:e3ed1b52c6e6 14 {
andrewboyson 24:e3ed1b52c6e6 15 while (pQuery)
andrewboyson 24:e3ed1b52c6e6 16 {
andrewboyson 24:e3ed1b52c6e6 17 char* pName;
andrewboyson 24:e3ed1b52c6e6 18 char* pValue;
andrewboyson 26:85e3becbebc9 19 pQuery = HttpQuerySplit(pQuery, &pName, &pValue);
andrewboyson 24:e3ed1b52c6e6 20
andrewboyson 26:85e3becbebc9 21 HttpQueryUnencode(pValue);
andrewboyson 24:e3ed1b52c6e6 22
andrewboyson 39:5d8a37c921c3 23 int value = HttpQueryValueAsInt(pValue);
andrewboyson 24:e3ed1b52c6e6 24
andrewboyson 25:f73966bd9b43 25 if (HttpSameStr(pName, "tftpserver" )) ValuesSetServerName (pValue );
andrewboyson 25:f73966bd9b43 26 if (HttpSameStr(pName, "tftpfilename" )) ValuesSetFileName (pValue );
andrewboyson 25:f73966bd9b43 27 if (HttpSameStr(pName, "tftpwriteint" )) ValuesSetWriteSize (value );
andrewboyson 37:1cdd820f2747 28 if (HttpSameStr(pName, "tftpreadint" )) ValuesSetReadInterval (value );
andrewboyson 24:e3ed1b52c6e6 29 }
andrewboyson 24:e3ed1b52c6e6 30 }