aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/protocol/NavtelecomProtocol.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-09-27 12:27:53 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2021-09-27 12:27:53 -0700
commit2204c9830058fe33a4bf426636468a9ec0749a83 (patch)
tree9dbb7c37cb8737ea03bd56bf649e93f8e803941d /src/main/java/org/traccar/protocol/NavtelecomProtocol.java
parent5b262c14aaf48919232abe9c41cb0d3288e56427 (diff)
downloadtrackermap-server-2204c9830058fe33a4bf426636468a9ec0749a83.tar.gz
trackermap-server-2204c9830058fe33a4bf426636468a9ec0749a83.tar.bz2
trackermap-server-2204c9830058fe33a4bf426636468a9ec0749a83.zip
Add custom frame decoder
Diffstat (limited to 'src/main/java/org/traccar/protocol/NavtelecomProtocol.java')
-rw-r--r--src/main/java/org/traccar/protocol/NavtelecomProtocol.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/main/java/org/traccar/protocol/NavtelecomProtocol.java b/src/main/java/org/traccar/protocol/NavtelecomProtocol.java
index 24bfbf895..29ce8c41e 100644
--- a/src/main/java/org/traccar/protocol/NavtelecomProtocol.java
+++ b/src/main/java/org/traccar/protocol/NavtelecomProtocol.java
@@ -15,20 +15,17 @@
*/
package org.traccar.protocol;
-import io.netty.handler.codec.LengthFieldBasedFrameDecoder;
import org.traccar.BaseProtocol;
import org.traccar.PipelineBuilder;
import org.traccar.TrackerServer;
-import java.nio.ByteOrder;
-
public class NavtelecomProtocol extends BaseProtocol {
public NavtelecomProtocol() {
addServer(new TrackerServer(false, getName()) {
@Override
protected void addProtocolHandlers(PipelineBuilder pipeline) {
- pipeline.addLast(new LengthFieldBasedFrameDecoder(ByteOrder.LITTLE_ENDIAN, 65535, 12, 2, 2, 0, true));
+ pipeline.addLast(new NavtelecomFrameDecoder());
pipeline.addLast(new NavtelecomProtocolDecoder(NavtelecomProtocol.this));
}
});