diff options
author | Anton Tananaev <anton@traccar.org> | 2023-03-21 21:46:12 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2023-03-21 21:46:12 -0700 |
commit | 5f56a56d77216fa46a63eabbcef67d59d4d7c817 (patch) | |
tree | bb57af336f0c6c67b3990ce5511471ae8eb23c88 /src/test/java | |
parent | a07e078645418720ad4bbe4ce352cae607c42175 (diff) | |
download | trackermap-server-5f56a56d77216fa46a63eabbcef67d59d4d7c817.tar.gz trackermap-server-5f56a56d77216fa46a63eabbcef67d59d4d7c817.tar.bz2 trackermap-server-5f56a56d77216fa46a63eabbcef67d59d4d7c817.zip |
Support BS50 battery info
Diffstat (limited to 'src/test/java')
-rw-r--r-- | src/test/java/org/traccar/protocol/Tk103ProtocolDecoderTest.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/Tk103ProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/Tk103ProtocolDecoderTest.java index 9fc8b81b2..1631ab051 100644 --- a/src/test/java/org/traccar/protocol/Tk103ProtocolDecoderTest.java +++ b/src/test/java/org/traccar/protocol/Tk103ProtocolDecoderTest.java @@ -11,6 +11,10 @@ public class Tk103ProtocolDecoderTest extends ProtocolTest { var decoder = inject(new Tk103ProtocolDecoder(null)); + verifyAttribute(decoder, text( + "(352602014867BS500064FF0EF10FF10FF00FF20FF30FF20FF20FF40FF20FF40FF40FF20FF30FF20F0000000000000000000000000000000000000000000000001663000000010004000000000000000002444444420000000000A00FA000000000000000200000000315E2000000)"), + "batteryTemp2", 26); + verifyAttributes(decoder, text( "(027046434858BZ00,{460,0,20949,58711}\n{460,0,20494,54003}\n{460,0,20951,19569}\n,01000000)")); |