From 42eb4009587bb654d60abe2eed499259f20bbb2f Mon Sep 17 00:00:00 2001 From: Frédéric Christ Date: Wed, 12 Jun 2024 19:23:27 +0200 Subject: tlt2h protocol: Enable UDP I verified this successfully working with a Mictrack MT700 set to UDP. --- src/main/java/org/traccar/protocol/Tlt2hProtocol.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') 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)); + } + }); } } -- cgit v1.2.3