aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/FreematicsProtocol.java
diff options
context:
space:
mode:
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));
}