Monitor motorhome leisure battery and provide simple control of habitation
Dependencies: net lpc1768 crypto clock web fram log
Diff: web-this/battery/web-battery-query.c
- Revision:
- 10:a97a7cb7aa82
- Parent:
- 9:d957af50fdc2
--- a/web-this/battery/web-battery-query.c Mon Jun 06 11:08:53 2022 +0000 +++ b/web-this/battery/web-battery-query.c Fri Jun 10 18:32:21 2022 +0000 @@ -17,6 +17,18 @@ BatterySetCountedCapacity(value); return; } + if (HttpSameStr(pName, "set-battery-counted-capacity-amp-hours")) + { + int value = HttpQueryValueAsInt(pValue); + BatterySetCountedCapacity(value * 3600); + return; + } + if (HttpSameStr(pName, "set-battery-counted-capacity-percent")) + { + int value = HttpQueryValueAsInt(pValue); + BatterySetCountedCapacity(value * 36 * 280); + return; + } if (HttpSameStr(pName, "set-battery-counted-error")) { int value = HttpQueryValueAsInt(pValue);