aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-02-13 17:20:39 -0800
committerAnton Tananaev <anton@traccar.org>2023-02-13 17:20:39 -0800
commit33af2928a581eba6a1ba580b5da051612c7b7860 (patch)
treeb568dae111a497988227926dc3002cc1dd29a430 /src/test
parent02d073d6900c401f83493380df3093d72f4d5cf2 (diff)
downloadtrackermap-server-33af2928a581eba6a1ba580b5da051612c7b7860.tar.gz
trackermap-server-33af2928a581eba6a1ba580b5da051612c7b7860.tar.bz2
trackermap-server-33af2928a581eba6a1ba580b5da051612c7b7860.zip
Meitrack K211G extend support
Diffstat (limited to 'src/test')
-rw-r--r--src/test/java/org/traccar/protocol/MeitrackProtocolDecoderTest.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/MeitrackProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/MeitrackProtocolDecoderTest.java
index ce0a1e922..407d7a9b6 100644
--- a/src/test/java/org/traccar/protocol/MeitrackProtocolDecoderTest.java
+++ b/src/test/java/org/traccar/protocol/MeitrackProtocolDecoderTest.java
@@ -11,6 +11,13 @@ public class MeitrackProtocolDecoderTest extends ProtocolTest {
var decoder = inject(new MeitrackProtocolDecoder(null));
+ verifyAttribute(decoder, buffer(
+ "$$u28,864606044993987,D82,0*D6"),
+ Position.KEY_RESULT, "D82,0");
+
+ verifyPositions(decoder, binary(
+ "24245B3139312C3836343630363034343939333938372C4343452C010000000200500013000601250500060007111B00470206080000093E000AE7030B0000199E011A850306028D7A570103F35ACC0604F9D06C2B0CB92E00000D3FA40C00250CA2B900010E0CCC010000B6276313000000004B00120006012A0500060007111B00470206080000093E000AE7030B0000199E011A7C0305028D7A570103F35ACC0604F9D06C2B0CB92E00000D3FA40C00010E0CCC010000B6276313000000002A31340D0A"));
+
verifyPositions(decoder, binary(
"24246a3138312c3836343238313034313930383330332c4343452c00000000010093001f000505000600070714001502090800000900000a00000b0000160a001706001904001ad90440230006023279570103305ccc0604f536492b0c510300000d495701001c014000000b0e0ccc010000922781abb90c00002a030034212b03008b082c030053082d03009e082e030034212f030034213003003421310300342149090400000000000000004b07010104574946492a36310d0a"));