From cadcd2676adbc1974265acb9ec6d43fc06932824 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Mon, 21 Aug 2023 21:09:46 -0700 Subject: Atelematics battery level --- src/main/java/org/traccar/protocol/KhdProtocolDecoder.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/main') diff --git a/src/main/java/org/traccar/protocol/KhdProtocolDecoder.java b/src/main/java/org/traccar/protocol/KhdProtocolDecoder.java index d7c236c4f..dd2e1dbfd 100644 --- a/src/main/java/org/traccar/protocol/KhdProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/KhdProtocolDecoder.java @@ -205,6 +205,9 @@ public class KhdProtocolDecoder extends BaseProtocolDecoder { } } break; + case 0x20: + position.set(Position.KEY_BATTERY_LEVEL, buf.readUnsignedByte()); + break; case 0x23: Network network = new Network(); int count = buf.readUnsignedByte(); -- cgit v1.2.3