[Ovmsdev] ATT: car_chargekwh rescaled
Michael Balzer
dexter at expeedo.de
Sun Jul 31 19:03:50 HKT 2016
Hi everyone,
ref:
https://github.com/openvehicles/Open-Vehicle-Monitoring-System/commit/a20cd1c9f7a08e0cf68ca75ac5ce71f309fd00f2
Changing the car_chargekwh scale from 1 kWh to 1/10 kWh was necessary to
make this info useful for small batteries.
Unfortunately the Java clients (Apps) while not even using this field
will break on replacing the integer value by a float, as the Java int
parser will throw an exception instead of parsing just the integer part.
So the value remains unscaled in the message to not break compatibility
with installed Apps. Clients evaluating the field need to scale the
value themselves.
Regards,
Michael
--
Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal
Fon 02333 / 833 5735 * Handy 0176 / 206 989 26
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dexter.vcf
Type: text/x-vcard
Size: 206 bytes
Desc: not available
URL: <http://lists.openvehicles.com/pipermail/ovmsdev/attachments/20160731/969df203/attachment-0002.vcf>
More information about the OvmsDev
mailing list