diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-12-28 08:37:23 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2018-12-28 08:37:23 -0800 |
commit | 27c565546b9f0fe820af6e46a2562f4e23319ee2 (patch) | |
tree | ffa4c96a4cd206a8fbebcbcf2b396e98b82ea35a /src/org/traccar/protocol/WristbandProtocol.java | |
parent | 2b9264c4afdf62ef4d80e7cf5993ddb03374a8be (diff) | |
download | trackermap-server-27c565546b9f0fe820af6e46a2562f4e23319ee2.tar.gz trackermap-server-27c565546b9f0fe820af6e46a2562f4e23319ee2.tar.bz2 trackermap-server-27c565546b9f0fe820af6e46a2562f4e23319ee2.zip |
Wristband protocol response as text
Diffstat (limited to 'src/org/traccar/protocol/WristbandProtocol.java')
-rw-r--r-- | src/org/traccar/protocol/WristbandProtocol.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/org/traccar/protocol/WristbandProtocol.java b/src/org/traccar/protocol/WristbandProtocol.java index 1e5ef2c01..632eb6a42 100644 --- a/src/org/traccar/protocol/WristbandProtocol.java +++ b/src/org/traccar/protocol/WristbandProtocol.java @@ -16,6 +16,7 @@ package org.traccar.protocol; import io.netty.handler.codec.LengthFieldBasedFrameDecoder; +import io.netty.handler.codec.string.StringEncoder; import org.traccar.BaseProtocol; import org.traccar.PipelineBuilder; import org.traccar.TrackerServer; @@ -27,6 +28,7 @@ public class WristbandProtocol extends BaseProtocol { @Override protected void addProtocolHandlers(PipelineBuilder pipeline) { pipeline.addLast(new LengthFieldBasedFrameDecoder(1024, 3, 2, 3, 0)); + pipeline.addLast(new StringEncoder()); pipeline.addLast(new WristbandProtocolDecoder(WristbandProtocol.this)); } }); |