diff options
author | Anton Tananaev <anton@traccar.org> | 2024-02-08 07:26:52 -0800 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2024-02-08 07:26:52 -0800 |
commit | fe771851995da97ffa2fb50e21bd437bca208eac (patch) | |
tree | b15e7a6137af7e65003a5bf4a2dfcdea5b0a2f90 /src/main/java/org/traccar/protocol | |
parent | 3f55f474fde34c8110b48cb1ac472671ca5f80fc (diff) | |
download | trackermap-server-fe771851995da97ffa2fb50e21bd437bca208eac.tar.gz trackermap-server-fe771851995da97ffa2fb50e21bd437bca208eac.tar.bz2 trackermap-server-fe771851995da97ffa2fb50e21bd437bca208eac.zip |
Support RST command responses
Diffstat (limited to 'src/main/java/org/traccar/protocol')
-rw-r--r-- | src/main/java/org/traccar/protocol/RstProtocolDecoder.java | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/RstProtocolDecoder.java b/src/main/java/org/traccar/protocol/RstProtocolDecoder.java index 2493f0d9f..eafa4d3d7 100644 --- a/src/main/java/org/traccar/protocol/RstProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/RstProtocolDecoder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 - 2023 Anton Tananaev (anton@traccar.org) + * Copyright 2019 - 2024 Anton Tananaev (anton@traccar.org) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -143,6 +143,17 @@ public class RstProtocolDecoder extends BaseProtocolDecoder { return position; + } else if (type == 134) { + + Position position = new Position(getProtocolName()); + position.setDeviceId(deviceSession.getDeviceId()); + + getLastLocation(position, null); + + position.set(Position.KEY_RESULT, String.valueOf(type)); + + return position; + } else { return null; |