Monitor motorhome leisure battery and provide simple control of habitation

Dependencies:   net lpc1768 crypto clock web fram log

Committer:
andrewboyson
Date:
Fri Jun 10 18:32:21 2022 +0000
Revision:
10:a97a7cb7aa82
Parent:
9:d957af50fdc2
Corrected amp second count in html

Who changed what in which revision?

UserRevisionLine numberNew contents of line
andrewboyson 0:b843d647695c 1 #include <string.h>
andrewboyson 0:b843d647695c 2 #include <stdlib.h>
andrewboyson 0:b843d647695c 3
andrewboyson 0:b843d647695c 4 #include "http.h"
andrewboyson 0:b843d647695c 5 #include "values.h"
andrewboyson 0:b843d647695c 6
andrewboyson 0:b843d647695c 7 void WebSystemQuery(char* pQuery)
andrewboyson 0:b843d647695c 8 {
andrewboyson 0:b843d647695c 9 while (pQuery)
andrewboyson 0:b843d647695c 10 {
andrewboyson 0:b843d647695c 11 char* pName;
andrewboyson 0:b843d647695c 12 char* pValue;
andrewboyson 0:b843d647695c 13 pQuery = HttpQuerySplit(pQuery, &pName, &pValue);
andrewboyson 0:b843d647695c 14
andrewboyson 0:b843d647695c 15 HttpQueryUnencode(pValue);
andrewboyson 0:b843d647695c 16
andrewboyson 0:b843d647695c 17 int value = HttpQueryValueAsInt(pValue);
andrewboyson 0:b843d647695c 18
andrewboyson 0:b843d647695c 19 if (HttpSameStr(pName, "tftpserver" )) ValuesSetServerName (pValue );
andrewboyson 0:b843d647695c 20 if (HttpSameStr(pName, "tftpfilename" )) ValuesSetFileName (pValue );
andrewboyson 0:b843d647695c 21 if (HttpSameStr(pName, "tftpwriteint" )) ValuesSetWriteSize (value );
andrewboyson 0:b843d647695c 22 if (HttpSameStr(pName, "tftpreadint" )) ValuesSetReadInterval (value );
andrewboyson 0:b843d647695c 23 }
andrewboyson 0:b843d647695c 24 }