aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/NavisProtocol.java
diff options
context:
space:
mode:
authorEvgeny S Maksimov <admin@vragam.net>2019-01-17 19:05:23 +0300
committerEvgeny S Maksimov <admin@vragam.net>2019-01-17 19:05:23 +0300
commitfc707a69c3c95223ecb8e263d7de32a72ec84af3 (patch)
treefc0a9b3f75ea0f6077df332a9cbaf6cd75412e97 /src/org/traccar/protocol/NavisProtocol.java
parentca2cca9355c3b36b2e7ed9ad808db797fa94cb78 (diff)
downloadtrackermap-server-fc707a69c3c95223ecb8e263d7de32a72ec84af3.tar.gz
trackermap-server-fc707a69c3c95223ecb8e263d7de32a72ec84af3.tar.bz2
trackermap-server-fc707a69c3c95223ecb8e263d7de32a72ec84af3.zip
Implemented FLEX 1.0 extension support for Navis (NTCB) protocol
Diffstat (limited to 'src/org/traccar/protocol/NavisProtocol.java')
-rw-r--r--src/org/traccar/protocol/NavisProtocol.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/org/traccar/protocol/NavisProtocol.java b/src/org/traccar/protocol/NavisProtocol.java
index 83a9dc99d..4250ba4dc 100644
--- a/src/org/traccar/protocol/NavisProtocol.java
+++ b/src/org/traccar/protocol/NavisProtocol.java
@@ -15,19 +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 NavisProtocol extends BaseProtocol {
public NavisProtocol() {
addServer(new TrackerServer(false, getName()) {
@Override
protected void addProtocolHandlers(PipelineBuilder pipeline) {
- pipeline.addLast(new LengthFieldBasedFrameDecoder(ByteOrder.LITTLE_ENDIAN, 4096, 12, 2, 2, 0, true));
+ pipeline.addLast(new NavisFrameDecoder());
pipeline.addLast(new NavisProtocolDecoder(NavisProtocol.this));
}
});