From eb8b9dac624fcbb68659c1d6edf33bdfae2038dc Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Fri, 30 Oct 2015 11:40:00 +1300 Subject: Add encoder to GPSMTA pipeline --- debug.xml | 2 +- src/org/traccar/protocol/GpsmtaProtocol.java | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/debug.xml b/debug.xml index 43070f9ec..17cefadc4 100644 --- a/debug.xml +++ b/debug.xml @@ -14,7 +14,7 @@ web true - true + false nominatim http://nominatim.openstreetmap.org/reverse diff --git a/src/org/traccar/protocol/GpsmtaProtocol.java b/src/org/traccar/protocol/GpsmtaProtocol.java index 2c4c1f218..fe586644a 100644 --- a/src/org/traccar/protocol/GpsmtaProtocol.java +++ b/src/org/traccar/protocol/GpsmtaProtocol.java @@ -18,6 +18,7 @@ package org.traccar.protocol; import org.jboss.netty.bootstrap.ConnectionlessBootstrap; import org.jboss.netty.channel.ChannelPipeline; import org.jboss.netty.handler.codec.string.StringDecoder; +import org.jboss.netty.handler.codec.string.StringEncoder; import org.traccar.BaseProtocol; import org.traccar.TrackerServer; @@ -35,6 +36,7 @@ public class GpsmtaProtocol extends BaseProtocol { @Override protected void addSpecificHandlers(ChannelPipeline pipeline) { pipeline.addLast("stringDecoder", new StringDecoder()); + pipeline.addLast("stringEncoder", new StringEncoder()); pipeline.addLast("objectDecoder", new GpsmtaProtocolDecoder(GpsmtaProtocol.this)); } }); -- cgit v1.2.3