From 312cd7bd408c978392cacb6ef580288158361ce5 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 6 Mar 2021 16:31:49 -0800 Subject: Decode heartbeat battery level --- src/test/java/org/traccar/protocol/Gt06ProtocolDecoderTest.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/test/java/org/traccar') diff --git a/src/test/java/org/traccar/protocol/Gt06ProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/Gt06ProtocolDecoderTest.java index eeafbbdc4..1f92f5a26 100644 --- a/src/test/java/org/traccar/protocol/Gt06ProtocolDecoderTest.java +++ b/src/test/java/org/traccar/protocol/Gt06ProtocolDecoderTest.java @@ -17,6 +17,10 @@ public class Gt06ProtocolDecoderTest extends ProtocolTest { verifyNull(decoder, binary( "78780D01086471700328358100093F040D0A")); + verifyAttribute(decoder, binary( + "7878151330802b00000642014f0008720000802b5ee4d4c90d0a"), + Position.KEY_BATTERY_LEVEL, 6); + verifyAttribute(decoder, binary( "7878281520000000003c49434349443a38393838323339303030303039373330323635303e00020d446f260d0a"), Position.KEY_ICCID, "89882390000097302650"); -- cgit v1.2.3