aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-11-22 21:06:37 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2021-11-22 21:06:37 -0800
commitfd47e69b388b1e0af8aa5ead940773f6b2da3e81 (patch)
tree8b7db9b92d92b941e48218b78b248d647516abfa
parentc0b26fd74ecb86f67c682da21a694665be2c5279 (diff)
downloadtraccar-server-fd47e69b388b1e0af8aa5ead940773f6b2da3e81.tar.gz
traccar-server-fd47e69b388b1e0af8aa5ead940773f6b2da3e81.tar.bz2
traccar-server-fd47e69b388b1e0af8aa5ead940773f6b2da3e81.zip
Decode IO values
-rw-r--r--src/main/java/org/traccar/protocol/DolphinProtocolDecoder.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/protocol/DolphinProtocolDecoder.java b/src/main/java/org/traccar/protocol/DolphinProtocolDecoder.java
index e882c2378..d509b3ec0 100644
--- a/src/main/java/org/traccar/protocol/DolphinProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/DolphinProtocolDecoder.java
@@ -101,6 +101,10 @@ public class DolphinProtocolDecoder extends BaseProtocolDecoder {
position.set(Position.KEY_SATELLITES, point.getSatellites());
position.set(Position.KEY_HDOP, point.getHDOP());
+ for (int j = 0; j < point.getIOListIDCount(); j++) {
+ position.set(Position.PREFIX_IO + point.getIOListIDValue(j), point.getIOListValue(j));
+ }
+
positions.add(position);
}