aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-11-25 20:59:52 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2020-11-25 20:59:52 -0800
commit91a83142c78e0c5927a4eb4a3604d8524e77baa3 (patch)
treeadd64e5dd95859b68dd0ce638b718aa24d0875a5 /src/main/java/org/traccar/protocol
parent492dbe8014c4ffd83e92c641ddf416bb5bca5b8b (diff)
downloadtrackermap-server-91a83142c78e0c5927a4eb4a3604d8524e77baa3.tar.gz
trackermap-server-91a83142c78e0c5927a4eb4a3604d8524e77baa3.tar.bz2
trackermap-server-91a83142c78e0c5927a4eb4a3604d8524e77baa3.zip
Change Mobilogix frame decoder
Diffstat (limited to 'src/main/java/org/traccar/protocol')
-rw-r--r--src/main/java/org/traccar/protocol/MobilogixProtocol.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/protocol/MobilogixProtocol.java b/src/main/java/org/traccar/protocol/MobilogixProtocol.java
index 82f72db86..b93275079 100644
--- a/src/main/java/org/traccar/protocol/MobilogixProtocol.java
+++ b/src/main/java/org/traccar/protocol/MobilogixProtocol.java
@@ -15,10 +15,10 @@
*/
package org.traccar.protocol;
-import io.netty.handler.codec.LineBasedFrameDecoder;
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 +28,7 @@ public class MobilogixProtocol extends BaseProtocol {
addServer(new TrackerServer(false, getName()) {
@Override
protected void addProtocolHandlers(PipelineBuilder pipeline) {
- pipeline.addLast(new LineBasedFrameDecoder(1024));
+ pipeline.addLast(new CharacterDelimiterFrameDecoder(1024, ']'));
pipeline.addLast(new StringEncoder());
pipeline.addLast(new StringDecoder());
pipeline.addLast(new MobilogixProtocolDecoder(MobilogixProtocol.this));