aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-03-31 21:24:15 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2020-03-31 21:24:15 -0700
commit0fc02b910558cbcf10fa82f92938475f52d39a52 (patch)
treec88f7995df72dd756c123bd5061c0170f0839e20 /src/main/java/org/traccar
parent2b9897a9595855385233429d42ed6971b456258a (diff)
downloadtrackermap-server-0fc02b910558cbcf10fa82f92938475f52d39a52.tar.gz
trackermap-server-0fc02b910558cbcf10fa82f92938475f52d39a52.tar.bz2
trackermap-server-0fc02b910558cbcf10fa82f92938475f52d39a52.zip
Implement inputs and outputs
Diffstat (limited to 'src/main/java/org/traccar')
-rw-r--r--src/main/java/org/traccar/protocol/SuntechProtocolDecoder.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/protocol/SuntechProtocolDecoder.java b/src/main/java/org/traccar/protocol/SuntechProtocolDecoder.java
index 978d768be..9521a1248 100644
--- a/src/main/java/org/traccar/protocol/SuntechProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/SuntechProtocolDecoder.java
@@ -513,6 +513,14 @@ public class SuntechProtocolDecoder extends BaseProtocolDecoder {
position.setValid(values[index++].equals("1"));
}
+ if (BitUtil.check(mask, 17)) {
+ position.set(Position.KEY_INPUT, Integer.parseInt(values[index++]));
+ }
+
+ if (BitUtil.check(mask, 18)) {
+ position.set(Position.KEY_OUTPUT, Integer.parseInt(values[index++]));
+ }
+
return position;
}