aboutsummaryrefslogtreecommitdiff
path: root/src/test/java
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2024-03-02 08:03:13 -0800
committerAnton Tananaev <anton@traccar.org>2024-03-02 08:03:13 -0800
commitef2fea79f0346d253647e9ba92a0926b0530d49b (patch)
tree077ca476c6a5971fa43b470d89e69f4adf535a0e /src/test/java
parent16909b99647f969f4b9c2d3e34a7ada6fc220b94 (diff)
downloadtrackermap-server-ef2fea79f0346d253647e9ba92a0926b0530d49b.tar.gz
trackermap-server-ef2fea79f0346d253647e9ba92a0926b0530d49b.tar.bz2
trackermap-server-ef2fea79f0346d253647e9ba92a0926b0530d49b.zip
Support additional G106 attributes
Diffstat (limited to 'src/test/java')
-rw-r--r--src/test/java/org/traccar/protocol/KhdProtocolDecoderTest.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/KhdProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/KhdProtocolDecoderTest.java
index 7cc65002b..3097c02e8 100644
--- a/src/test/java/org/traccar/protocol/KhdProtocolDecoderTest.java
+++ b/src/test/java/org/traccar/protocol/KhdProtocolDecoderTest.java
@@ -12,6 +12,10 @@ public class KhdProtocolDecoderTest extends ProtocolTest {
var decoder = inject(new KhdProtocolDecoder(null));
verifyAttribute(decoder, binary(
+ "2929A300403099934C2004030943310000000000000000000000007B0000007FFF0E0000E70014000000000018050B01303030314330334437312102007B2203140DDA610D"),
+ Position.KEY_DRIVER_UNIQUE_ID, "0001C03D71");
+
+ verifyAttribute(decoder, binary(
"2929a3003e1680ba0a2304180759500000000000000000000000007b00000080001914000000000000000000162001641b0b0000249002bc58030001cc46020000e70d"),
Position.KEY_BATTERY_LEVEL, 100);