From 9f8505ebf73bba5e329fc5467fe00e43f989fd0d Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 8 Nov 2020 16:12:48 -0800 Subject: Handle Cantrack heartbeat --- src/test/java/org/traccar/protocol/H02ProtocolDecoderTest.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/test/java/org/traccar/protocol') diff --git a/src/test/java/org/traccar/protocol/H02ProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/H02ProtocolDecoderTest.java index fe4988b5a..07411b55f 100644 --- a/src/test/java/org/traccar/protocol/H02ProtocolDecoderTest.java +++ b/src/test/java/org/traccar/protocol/H02ProtocolDecoderTest.java @@ -11,6 +11,10 @@ public class H02ProtocolDecoderTest extends ProtocolTest { H02ProtocolDecoder decoder = new H02ProtocolDecoder(null); + verifyAttribute(decoder, buffer( + "*HQ,135790246811220,HTBT,100#"), + Position.KEY_BATTERY_LEVEL, 100); + verifyPosition(decoder, buffer( "*HQ,9180271064,V5,091233,V,2348.8912,N,09021.3302,E,000.00,000,051219,FFFFBBFF,470,01,21019,2033,2921283#")); -- cgit v1.2.3