diff options
author | Anton Tananaev <anton@traccar.org> | 2023-07-13 07:00:45 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2023-07-13 07:00:51 -0700 |
commit | 105873ab5256a774ef07ca7ee459da0917829591 (patch) | |
tree | 199e223de5b92fafaa2355a6f3aea3654fa675a2 /src/main/java | |
parent | 2be2a4558ace9825a69aecf6329305490eb5fe5e (diff) | |
download | trackermap-server-105873ab5256a774ef07ca7ee459da0917829591.tar.gz trackermap-server-105873ab5256a774ef07ca7ee459da0917829591.tar.bz2 trackermap-server-105873ab5256a774ef07ca7ee459da0917829591.zip |
Add Eview Pet result support
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/org/traccar/protocol/Minifinder2ProtocolDecoder.java | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/protocol/Minifinder2ProtocolDecoder.java b/src/main/java/org/traccar/protocol/Minifinder2ProtocolDecoder.java index 85589b064..6289bd2eb 100644 --- a/src/main/java/org/traccar/protocol/Minifinder2ProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/Minifinder2ProtocolDecoder.java @@ -324,6 +324,23 @@ public class Minifinder2ProtocolDecoder extends BaseProtocolDecoder { return positions; + } else if (type == MSG_RESPONSE) { + + DeviceSession deviceSession = getDeviceSession(channel, remoteAddress); + if (deviceSession == null) { + return null; + } + + Position position = new Position(getProtocolName()); + position.setDeviceId(deviceSession.getDeviceId()); + + getLastLocation(position, null); + + buf.readUnsignedByte(); // length + position.set(Position.KEY_RESULT, String.valueOf(buf.readUnsignedByte())); + + return position; + } return null; |