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
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 }
Generated on Wed Jul 13 2022 14:19:59 by 1.7.2