aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
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/main/java
parent986a1014526e1f00374ed0f130572a51bb4804f4 (diff)
downloadtrackermap-server-60811fc34a6cc4f27f4a59f9e2df027268ada6c7.tar.gz
trackermap-server-60811fc34a6cc4f27f4a59f9e2df027268ada6c7.tar.bz2
trackermap-server-60811fc34a6cc4f27f4a59f9e2df027268ada6c7.zip
Additional StarLink attributes
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/traccar/protocol/StarLinkProtocolDecoder.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/protocol/StarLinkProtocolDecoder.java b/src/main/java/org/traccar/protocol/StarLinkProtocolDecoder.java
index f791df0f3..155f26c5b 100644
--- a/src/main/java/org/traccar/protocol/StarLinkProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/StarLinkProtocolDecoder.java
@@ -188,6 +188,9 @@ public class StarLinkProtocolDecoder extends BaseProtocolDecoder {
cid = Integer.parseInt(data[i]);
}
break;
+ case "#CSS#":
+ position.set(Position.KEY_RSSI, Integer.parseInt(data[i]));
+ break;
case "#VIN#":
position.set(Position.KEY_POWER, Double.parseDouble(data[i]));
break;
@@ -203,6 +206,9 @@ public class StarLinkProtocolDecoder extends BaseProtocolDecoder {
case "#ENG#":
position.set("engine", data[i].equals("1"));
break;
+ case "#SATU#":
+ position.set(Position.KEY_SATELLITES, Integer.parseInt(data[i]));
+ break;
case "#TS1#":
position.set("sensor1State", Integer.parseInt(data[i]));
break;