aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/traccar/protocol/SuntechProtocolDecoderTest.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-09-24 23:20:33 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2021-09-24 23:20:33 -0700
commit538e1b1dd83d4c2d45da6ed9b7e00ec7eeeba061 (patch)
treeae49ca17a31365b2b682f87ed97cd92df913b236 /src/test/java/org/traccar/protocol/SuntechProtocolDecoderTest.java
parentfd2d0d9795f12776ba7286ba7a4ff346b335be2f (diff)
downloadtrackermap-server-538e1b1dd83d4c2d45da6ed9b7e00ec7eeeba061.tar.gz
trackermap-server-538e1b1dd83d4c2d45da6ed9b7e00ec7eeeba061.tar.bz2
trackermap-server-538e1b1dd83d4c2d45da6ed9b7e00ec7eeeba061.zip
Support Suntech bluetooth (BLE)
Diffstat (limited to 'src/test/java/org/traccar/protocol/SuntechProtocolDecoderTest.java')
-rw-r--r--src/test/java/org/traccar/protocol/SuntechProtocolDecoderTest.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/SuntechProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/SuntechProtocolDecoderTest.java
index 8cc4148f0..7f0700728 100644
--- a/src/test/java/org/traccar/protocol/SuntechProtocolDecoderTest.java
+++ b/src/test/java/org/traccar/protocol/SuntechProtocolDecoderTest.java
@@ -82,6 +82,12 @@ public class SuntechProtocolDecoderTest extends ProtocolTest {
var decoder = new SuntechProtocolDecoder(null);
+ verifyPosition(decoder, buffer(
+ "BLE;0820012345;001FFF;82;1.0.0;20191203;17:00:51;+32.691615;-117.297160;2;2;-32;-100;33;AABBCCDDEEFF;12;18;52;1;-44;44;112233445566;32;69;101"));
+
+ verifyNull(decoder, buffer(
+ "BSA;0820012345;001FFF;82;1.0.0;1;20191203;17:00:51;+32.691615;-117.297160;1;-55;68:11:6A:FD:1A:A7;6AA5;1DE8"));
+
verifyAttribute(decoder, buffer(
"ST300UEX;511331307;45;311;20210420;12:41:01;12361;-01.280825;-047.931773;000.000;000.00;16;1;0;12.54;000000;23;GTSL|6|1|0|9255143|2|;6F;000276;0.0;1;00000000000000;0"),
Position.KEY_DRIVER_UNIQUE_ID, "9255143");