aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/protocol/Pt215Protocol.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-10-30 21:59:36 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2019-10-30 21:59:36 -0700
commit7103c6b2f47a5f9281737ca8fc525de644c2aec9 (patch)
tree1bd20296214ba0dc7205592881f56be0e8e13dd6 /src/main/java/org/traccar/protocol/Pt215Protocol.java
parent61b9b7f4bfa23abc477dbd954851fbb479e6513a (diff)
downloadtrackermap-server-7103c6b2f47a5f9281737ca8fc525de644c2aec9.tar.gz
trackermap-server-7103c6b2f47a5f9281737ca8fc525de644c2aec9.tar.bz2
trackermap-server-7103c6b2f47a5f9281737ca8fc525de644c2aec9.zip
Revert "Add PT215 frame decoder"
This reverts commit 14f5711c
Diffstat (limited to 'src/main/java/org/traccar/protocol/Pt215Protocol.java')
-rw-r--r--src/main/java/org/traccar/protocol/Pt215Protocol.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/Pt215Protocol.java b/src/main/java/org/traccar/protocol/Pt215Protocol.java
index 31ddc2c7a..09bd9b121 100644
--- a/src/main/java/org/traccar/protocol/Pt215Protocol.java
+++ b/src/main/java/org/traccar/protocol/Pt215Protocol.java
@@ -15,6 +15,7 @@
*/
package org.traccar.protocol;
+import io.netty.handler.codec.LengthFieldBasedFrameDecoder;
import org.traccar.BaseProtocol;
import org.traccar.PipelineBuilder;
import org.traccar.TrackerServer;
@@ -25,7 +26,7 @@ public class Pt215Protocol extends BaseProtocol {
addServer(new TrackerServer(false, getName()) {
@Override
protected void addProtocolHandlers(PipelineBuilder pipeline) {
- pipeline.addLast(new Pt215FrameDecoder());
+ pipeline.addLast(new LengthFieldBasedFrameDecoder(1024, 2, 1, -1, 0));
pipeline.addLast(new Pt215ProtocolDecoder(Pt215Protocol.this));
}
});