aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-10-08 14:28:54 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2020-10-08 14:28:54 -0700
commit60811fc34a6cc4f27f4a59f9e2df027268ada6c7 (patch)
tree99ce03bf7537d37c7197c32efd6a2d26a0f911e9 /src/test/java/org/traccar
parent986a1014526e1f00374ed0f130572a51bb4804f4 (diff)
downloadtrackermap-server-60811fc34a6cc4f27f4a59f9e2df027268ada6c7.tar.gz
trackermap-server-60811fc34a6cc4f27f4a59f9e2df027268ada6c7.tar.bz2
trackermap-server-60811fc34a6cc4f27f4a59f9e2df027268ada6c7.zip
Additional StarLink attributes
Diffstat (limited to 'src/test/java/org/traccar')
-rw-r--r--src/test/java/org/traccar/protocol/StarLinkProtocolDecoderTest.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/StarLinkProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/StarLinkProtocolDecoderTest.java
index 114a352e6..1dd96d8ca 100644
--- a/src/test/java/org/traccar/protocol/StarLinkProtocolDecoderTest.java
+++ b/src/test/java/org/traccar/protocol/StarLinkProtocolDecoderTest.java
@@ -11,6 +11,12 @@ public class StarLinkProtocolDecoderTest extends ProtocolTest {
StarLinkProtocolDecoder decoder = new StarLinkProtocolDecoder(null);
+ decoder.setFormat("#IMEI#,#EDT#,#PDT#,#LAT#,#LONG#,#SPD#,#IGN#,#ODO#,#DUR#,#TDUR#,#LAC#,#CID#,#VIN#,#VBAT#,#EID#,#EDSC#,#DRV#,#SATU#,#CSS#,#OUT1#,#OUT2#,#IN2#,#IND#");
+
+ verifyAttribute(decoder, text(
+ "$SLU351580050543640,06,101,351580050543640,200927184734,200927184724,+4222.4186,+00153.1426,000.0,0,000008,,582,21269,214241628,00.213,03.407,09,Lost Power,0,5,96,0,0,0,1,,,,,,,,,,,,*10"),
+ Position.KEY_RSSI, 96);
+
decoder.setFormat("#EDT#,#EID#,#PDT#,#LAT#,#LONG#,#SPD#,#HEAD#,#ODO#,#LAC#,#CID#,#VIN#,#VBAT#,#TI1#,#TS1#,#TV1#,#TH1#,#TD1#,#EDSC#,#TI2#,#TS2#,#TV2#,#TH2#,#TD2#");
verifyAttribute(decoder, text(