aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/NvsProtocol.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-01-11 22:32:46 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-01-11 22:32:46 +1300
commita56376ac42ef19cff0a664e518271e491ef737c9 (patch)
treefe0ca9d4e59da098d4d84850a20218e5e594278f /src/org/traccar/protocol/NvsProtocol.java
parent3899a1b71eed65ee42a35f75b9d82d235e8ff4d5 (diff)
downloadtrackermap-server-a56376ac42ef19cff0a664e518271e491ef737c9.tar.gz
trackermap-server-a56376ac42ef19cff0a664e518271e491ef737c9.tar.bz2
trackermap-server-a56376ac42ef19cff0a664e518271e491ef737c9.zip
Implement Navis protocol frame decoder
Diffstat (limited to 'src/org/traccar/protocol/NvsProtocol.java')
-rw-r--r--src/org/traccar/protocol/NvsProtocol.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/NvsProtocol.java b/src/org/traccar/protocol/NvsProtocol.java
index fccc58a75..334d53343 100644
--- a/src/org/traccar/protocol/NvsProtocol.java
+++ b/src/org/traccar/protocol/NvsProtocol.java
@@ -34,7 +34,7 @@ public class NvsProtocol extends BaseProtocol {
serverList.add(new TrackerServer(new ServerBootstrap(), this.getName()) {
@Override
protected void addSpecificHandlers(ChannelPipeline pipeline) {
- pipeline.addLast("frameDecoder", new LengthFieldBasedFrameDecoder(1024, 4, 2, 2, 0));
+ pipeline.addLast("frameDecoder", new NvsFrameDecoder());
pipeline.addLast("objectDecoder", new NvsProtocolDecoder(NvsProtocol.this));
}
});