Common stuff for all my devices' web server pages: css, login, log, ipv4, ipv6, firmware update, clock, reset info etc.

Dependents:   oldheating gps motorhome heating

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers web-firmware-query.c Source File

web-firmware-query.c

00001 #include "http.h"
00002 #include "restart.h"
00003 #include "web-pages-base.h"
00004 
00005 void WebFirmwareQuery(char* pQuery)
00006 {
00007     while (pQuery)
00008     {
00009         char* pName;
00010         char* pValue;
00011         pQuery = HttpQuerySplit(pQuery, &pName, &pValue);
00012         int value = HttpQueryValueAsInt(pValue);    
00013         
00014         if (HttpSameStr(pName, "restart")) Restart(RESTART_CAUSE_SOFTWARE_RESET);
00015     }
00016 }