aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-02-14 15:18:44 -0800
committerAnton Tananaev <anton@traccar.org>2023-02-14 15:18:44 -0800
commita722658e5a3c2c15ceffa51a80b63bda758264bd (patch)
tree0f94feef0cc0c0106aa0409f9fea6da288455aca /src/test/java/org/traccar/protocol
parent9ceecf357132989390e8bb18160338b27539eaaa (diff)
downloadtrackermap-server-a722658e5a3c2c15ceffa51a80b63bda758264bd.tar.gz
trackermap-server-a722658e5a3c2c15ceffa51a80b63bda758264bd.tar.bz2
trackermap-server-a722658e5a3c2c15ceffa51a80b63bda758264bd.zip
Decode AT07 RFID data
Diffstat (limited to 'src/test/java/org/traccar/protocol')
-rw-r--r--src/test/java/org/traccar/protocol/TotemProtocolDecoderTest.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/TotemProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/TotemProtocolDecoderTest.java
index df5734568..1e432bd9e 100644
--- a/src/test/java/org/traccar/protocol/TotemProtocolDecoderTest.java
+++ b/src/test/java/org/traccar/protocol/TotemProtocolDecoderTest.java
@@ -2,6 +2,7 @@ package org.traccar.protocol;
import org.junit.Test;
import org.traccar.ProtocolTest;
+import org.traccar.model.Position;
public class TotemProtocolDecoderTest extends ProtocolTest {
@@ -10,6 +11,10 @@ public class TotemProtocolDecoderTest extends ProtocolTest {
var decoder = inject(new TotemProtocolDecoder(null));
+ verifyAttribute(decoder, text(
+ "$$0494E2123456789012345|150425223945,113.925525,22.55814,1122334455|38"),
+ Position.KEY_DRIVER_UNIQUE_ID, "1122334455");
+
verifyPosition(decoder, text(
"$$0111AA353081090067318|0804400022070722520240400005B364ED5003107300001.700000002245.3919N10231.6952W000001860E"));