aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/protocol/ItsProtocol.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-04-13 22:25:50 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2019-04-13 22:25:50 -0700
commitb595ec1bede3e30447b49bb7340f88c9b3a3f97f (patch)
tree7fa7a21fe803d68032a9ad3301ffb12eb3733b1f /src/main/java/org/traccar/protocol/ItsProtocol.java
parenta3269fda8b77c6af0e810222dae4aff6faf1df3f (diff)
downloadtrackermap-server-b595ec1bede3e30447b49bb7340f88c9b3a3f97f.tar.gz
trackermap-server-b595ec1bede3e30447b49bb7340f88c9b3a3f97f.tar.bz2
trackermap-server-b595ec1bede3e30447b49bb7340f88c9b3a3f97f.zip
Support ITS binary checksum
Diffstat (limited to 'src/main/java/org/traccar/protocol/ItsProtocol.java')
-rw-r--r--src/main/java/org/traccar/protocol/ItsProtocol.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/protocol/ItsProtocol.java b/src/main/java/org/traccar/protocol/ItsProtocol.java
index f53600dc9..e074f9277 100644
--- a/src/main/java/org/traccar/protocol/ItsProtocol.java
+++ b/src/main/java/org/traccar/protocol/ItsProtocol.java
@@ -18,7 +18,6 @@ package org.traccar.protocol;
import io.netty.handler.codec.string.StringDecoder;
import io.netty.handler.codec.string.StringEncoder;
import org.traccar.BaseProtocol;
-import org.traccar.CharacterDelimiterFrameDecoder;
import org.traccar.PipelineBuilder;
import org.traccar.TrackerServer;
@@ -28,7 +27,7 @@ public class ItsProtocol extends BaseProtocol {
addServer(new TrackerServer(false, getName()) {
@Override
protected void addProtocolHandlers(PipelineBuilder pipeline) {
- pipeline.addLast(new CharacterDelimiterFrameDecoder(1024, '*'));
+ pipeline.addLast(new ItsFrameDecoder());
pipeline.addLast(new StringEncoder());
pipeline.addLast(new StringDecoder());
pipeline.addLast(new ItsProtocolDecoder(ItsProtocol.this));