aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/FreematicsProtocol.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-09-08 16:50:41 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2018-09-08 16:50:41 +1200
commitb27ab90540402836b64e2eb634c37dcab7aa6608 (patch)
tree22da3a9f8dec35bd267bf3b02cc66550bea81a01 /src/org/traccar/protocol/FreematicsProtocol.java
parent1fde64481bc86b570ebd250784a0844fc4e77043 (diff)
downloadtrackermap-server-b27ab90540402836b64e2eb634c37dcab7aa6608.tar.gz
trackermap-server-b27ab90540402836b64e2eb634c37dcab7aa6608.tar.bz2
trackermap-server-b27ab90540402836b64e2eb634c37dcab7aa6608.zip
Fix issues in Freematics decoder
Diffstat (limited to 'src/org/traccar/protocol/FreematicsProtocol.java')
-rw-r--r--src/org/traccar/protocol/FreematicsProtocol.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/org/traccar/protocol/FreematicsProtocol.java b/src/org/traccar/protocol/FreematicsProtocol.java
index 3bcd5bfd1..6e7dfa15d 100644
--- a/src/org/traccar/protocol/FreematicsProtocol.java
+++ b/src/org/traccar/protocol/FreematicsProtocol.java
@@ -16,6 +16,7 @@
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.PipelineBuilder;
import org.traccar.TrackerServer;
@@ -33,6 +34,7 @@ public class FreematicsProtocol extends BaseProtocol {
serverList.add(new TrackerServer(true, getName()) {
@Override
protected void addProtocolHandlers(PipelineBuilder pipeline) {
+ pipeline.addLast("stringEncoder", new StringEncoder());
pipeline.addLast("stringDecoder", new StringDecoder());
pipeline.addLast("objectDecoder", new FreematicsProtocolDecoder(FreematicsProtocol.this));
}