diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2019-09-30 23:34:10 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2019-09-30 23:34:10 -0700 |
commit | 14f5711c4966f8fa38a49a5c9b62c7148ece06de (patch) | |
tree | 4ec985a8d1fa05969b4c2a08a85ac029d89dde8b /src/main/java/org/traccar/protocol/Pt215Protocol.java | |
parent | 95d9122a4f5ac22ea25d2eb555beab11fd2c3408 (diff) | |
download | trackermap-server-14f5711c4966f8fa38a49a5c9b62c7148ece06de.tar.gz trackermap-server-14f5711c4966f8fa38a49a5c9b62c7148ece06de.tar.bz2 trackermap-server-14f5711c4966f8fa38a49a5c9b62c7148ece06de.zip |
Add PT215 frame decoder
Diffstat (limited to 'src/main/java/org/traccar/protocol/Pt215Protocol.java')
-rw-r--r-- | src/main/java/org/traccar/protocol/Pt215Protocol.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/protocol/Pt215Protocol.java b/src/main/java/org/traccar/protocol/Pt215Protocol.java index 09bd9b121..31ddc2c7a 100644 --- a/src/main/java/org/traccar/protocol/Pt215Protocol.java +++ b/src/main/java/org/traccar/protocol/Pt215Protocol.java @@ -15,7 +15,6 @@ */ package org.traccar.protocol; -import io.netty.handler.codec.LengthFieldBasedFrameDecoder; import org.traccar.BaseProtocol; import org.traccar.PipelineBuilder; import org.traccar.TrackerServer; @@ -26,7 +25,7 @@ public class Pt215Protocol extends BaseProtocol { addServer(new TrackerServer(false, getName()) { @Override protected void addProtocolHandlers(PipelineBuilder pipeline) { - pipeline.addLast(new LengthFieldBasedFrameDecoder(1024, 2, 1, -1, 0)); + pipeline.addLast(new Pt215FrameDecoder()); pipeline.addLast(new Pt215ProtocolDecoder(Pt215Protocol.this)); } }); |