Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: net 1-wire lpc1768 crypto clock web fram log
http-derived/boiler/http-boiler-query.c
- Committer:
- andrewboyson
- Date:
- 2019-01-18
- Revision:
- 26:85e3becbebc9
- Parent:
- 25:f73966bd9b43
- Child:
- 39:5d8a37c921c3
File content as of revision 26:85e3becbebc9:
#include <stdlib.h> #include <string.h> #include "http.h" #include "boiler.h" void HttpBoilerQuery(char* pQuery) { while (pQuery) { char* pName; char* pValue; pQuery = HttpQuerySplit(pQuery, &pName, &pValue); int value = (int)strtol(pValue, NULL, 10); if (HttpSameStr(pName, "tanksetpoint" )) BoilerSetTankSetPoint (value); if (HttpSameStr(pName, "tankhysteresis")) BoilerSetTankHysteresis(value); if (HttpSameStr(pName, "boilerresidual")) BoilerSetRunOnResidual (value); if (HttpSameStr(pName, "boilerrunon" )) BoilerSetRunOnTime (value); } }