aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2024-04-13 08:33:12 -0700
committerAnton Tananaev <anton@traccar.org>2024-04-13 08:33:12 -0700
commit9af6b90e51ff8e2a35fcf52381b9800e508a3edd (patch)
tree0fc6d823a54a0670425899d15fd4c0afb84c7064 /src/test/java/org
parent725d738de64bd7df7ec05786baf6590c15a105b9 (diff)
downloadtrackermap-server-9af6b90e51ff8e2a35fcf52381b9800e508a3edd.tar.gz
trackermap-server-9af6b90e51ff8e2a35fcf52381b9800e508a3edd.tar.bz2
trackermap-server-9af6b90e51ff8e2a35fcf52381b9800e508a3edd.zip
Implement KR Binary v4 protocol
Diffstat (limited to 'src/test/java/org')
-rw-r--r--src/test/java/org/traccar/protocol/SnapperProtocolDecoderTest.java21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/SnapperProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/SnapperProtocolDecoderTest.java
new file mode 100644
index 000000000..c334565f9
--- /dev/null
+++ b/src/test/java/org/traccar/protocol/SnapperProtocolDecoderTest.java
@@ -0,0 +1,21 @@
+package org.traccar.protocol;
+
+import org.junit.jupiter.api.Test;
+import org.traccar.ProtocolTest;
+
+public class SnapperProtocolDecoderTest extends ProtocolTest {
+
+ @Test
+ public void testDecode() throws Exception {
+
+ var decoder = inject(new SnapperProtocolDecoder(null));
+
+ verifyNull(decoder, binary(
+ "4b0341a6b0c608000040000005000000000000007d5e14010068656c6c6f"));
+
+ // data sample
+ // {"f":"DE","t":"092304.01","d":"110813","la":"5117.6370","lo":"01655.3959","a":"00166.6","s":"","c":"","sv":"08","p":"01.6"}
+
+ }
+
+}