From 3f4053552bde461ba2ef6686a83c08e2b1122472 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 25 Sep 2019 00:19:40 -0700 Subject: Convert to UDP protocol --- src/main/java/org/traccar/protocol/RstProtocol.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/main/java/org') diff --git a/src/main/java/org/traccar/protocol/RstProtocol.java b/src/main/java/org/traccar/protocol/RstProtocol.java index 1e164866f..10d11d493 100644 --- a/src/main/java/org/traccar/protocol/RstProtocol.java +++ b/src/main/java/org/traccar/protocol/RstProtocol.java @@ -18,17 +18,15 @@ 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; public class RstProtocol extends BaseProtocol { public RstProtocol() { - addServer(new TrackerServer(false, getName()) { + addServer(new TrackerServer(true, getName()) { @Override protected void addProtocolHandlers(PipelineBuilder pipeline) { - pipeline.addLast(new CharacterDelimiterFrameDecoder(1024, "FIM;")); pipeline.addLast(new StringEncoder()); pipeline.addLast(new StringDecoder()); pipeline.addLast(new RstProtocolDecoder(RstProtocol.this)); -- cgit v1.2.3