diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2021-11-22 21:06:37 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2021-11-22 21:06:37 -0800 |
commit | fd47e69b388b1e0af8aa5ead940773f6b2da3e81 (patch) | |
tree | 8b7db9b92d92b941e48218b78b248d647516abfa /src/main/java/org/traccar/protocol/DolphinProtocolDecoder.java | |
parent | c0b26fd74ecb86f67c682da21a694665be2c5279 (diff) | |
download | traccar-server-fd47e69b388b1e0af8aa5ead940773f6b2da3e81.tar.gz traccar-server-fd47e69b388b1e0af8aa5ead940773f6b2da3e81.tar.bz2 traccar-server-fd47e69b388b1e0af8aa5ead940773f6b2da3e81.zip |
Decode IO values
Diffstat (limited to 'src/main/java/org/traccar/protocol/DolphinProtocolDecoder.java')
-rw-r--r-- | src/main/java/org/traccar/protocol/DolphinProtocolDecoder.java | 4 |
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); } |