aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-04-19 08:52:10 -0700
committerAnton Tananaev <anton@traccar.org>2023-04-19 08:52:10 -0700
commit1d31ebe88f2674252fc2ab043349b900db5e5e2d (patch)
tree9f49c3a3782ae5d821b47e4c2ca0769bc5e49ba8 /src/test
parentab801e856521356ff7a33250e1abdb8857ef84b3 (diff)
downloadtrackermap-server-1d31ebe88f2674252fc2ab043349b900db5e5e2d.tar.gz
trackermap-server-1d31ebe88f2674252fc2ab043349b900db5e5e2d.tar.bz2
trackermap-server-1d31ebe88f2674252fc2ab043349b900db5e5e2d.zip
Support BS51 messages
Diffstat (limited to 'src/test')
-rw-r--r--src/test/java/org/traccar/protocol/Tk103ProtocolDecoderTest.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/Tk103ProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/Tk103ProtocolDecoderTest.java
index 1631ab051..a3b3fa86b 100644
--- a/src/test/java/org/traccar/protocol/Tk103ProtocolDecoderTest.java
+++ b/src/test/java/org/traccar/protocol/Tk103ProtocolDecoderTest.java
@@ -11,6 +11,9 @@ public class Tk103ProtocolDecoderTest extends ProtocolTest {
var decoder = inject(new Tk103ProtocolDecoder(null));
+ verifyAttributes(decoder, text(
+ "(007030201454BS5190:02150000753001DC,91:0EE8060EDC0A01DC,92:42014201DC0A01DC,93:00010127000037C8,94:0E01000002000000,95:020EE10EE20EE800030EE40EE00EE700040EDD0EE40EE400050EDC0EDF0EE400,96:0142000000000000,97:0000000000000000,98:0000000000000000)"));
+
verifyAttribute(decoder, text(
"(352602014867BS500064FF0EF10FF10FF00FF20FF30FF20FF20FF40FF20FF40FF40FF20FF30FF20F0000000000000000000000000000000000000000000000001663000000010004000000000000000002444444420000000000A00FA000000000000000200000000315E2000000)"),
"batteryTemp2", 26);