aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/protocol/Tlt2hProtocol.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/traccar/protocol/Tlt2hProtocol.java')
-rw-r--r--src/main/java/org/traccar/protocol/Tlt2hProtocol.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/protocol/Tlt2hProtocol.java b/src/main/java/org/traccar/protocol/Tlt2hProtocol.java
index 6763e9b6b..4f306bcf5 100644
--- a/src/main/java/org/traccar/protocol/Tlt2hProtocol.java
+++ b/src/main/java/org/traccar/protocol/Tlt2hProtocol.java
@@ -38,6 +38,14 @@ public class Tlt2hProtocol extends BaseProtocol {
pipeline.addLast(new Tlt2hProtocolDecoder(Tlt2hProtocol.this));
}
});
+ addServer(new TrackerServer(config, getName(), true) {
+ @Override
+ protected void addProtocolHandlers(PipelineBuilder pipeline, Config config) {
+ pipeline.addLast(new StringDecoder());
+ pipeline.addLast(new StringEncoder());
+ pipeline.addLast(new Tlt2hProtocolDecoder(Tlt2hProtocol.this));
+ }
+ });
}
}