Andrew Boyson / web

Dependents:   oldheating gps motorhome heating

Committer:
andrewboyson
Date:
Wed Mar 11 16:00:21 2020 +0000
Revision:
133:98c6bf14bc37
Parent:
118:53430a2a2595
Addewd more fields to TCP connections

Who changed what in which revision?

UserRevisionLine numberNew contents of line
andrewboyson 47:cf7d4c34158e 1 #include "http.h"
andrewboyson 115:24cb6e84ddd6 2 #include "restart.h"
andrewboyson 114:900e33dfa460 3 #include "web-pages-base.h"
andrewboyson 46:1822fdbe6c0c 4
andrewboyson 103:91194cc19bbb 5 void WebFirmwareQuery(char* pQuery)
andrewboyson 46:1822fdbe6c0c 6 {
andrewboyson 46:1822fdbe6c0c 7 while (pQuery)
andrewboyson 46:1822fdbe6c0c 8 {
andrewboyson 46:1822fdbe6c0c 9 char* pName;
andrewboyson 46:1822fdbe6c0c 10 char* pValue;
andrewboyson 46:1822fdbe6c0c 11 pQuery = HttpQuerySplit(pQuery, &pName, &pValue);
andrewboyson 63:daad0cbb4e8e 12 int value = HttpQueryValueAsInt(pValue);
andrewboyson 46:1822fdbe6c0c 13
andrewboyson 118:53430a2a2595 14 if (HttpSameStr(pName, "restart")) Restart(RESTART_CAUSE_SOFTWARE_RESET);
andrewboyson 46:1822fdbe6c0c 15 }
andrewboyson 46:1822fdbe6c0c 16 }