aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-06-07 15:44:08 -0700
committerAnton Tananaev <anton@traccar.org>2022-06-07 15:44:08 -0700
commit32b39cffc6dd705e9aacbe5b8d68bc37106997d2 (patch)
tree4e3dfbda5eb4f0ea8378f0882df105663e7d3540
parent79cc136a4e8394cf340277ff2a912e97b89d5c59 (diff)
downloadtrackermap-server-32b39cffc6dd705e9aacbe5b8d68bc37106997d2.tar.gz
trackermap-server-32b39cffc6dd705e9aacbe5b8d68bc37106997d2.tar.bz2
trackermap-server-32b39cffc6dd705e9aacbe5b8d68bc37106997d2.zip
Support TopFlyTech UDP protocol
-rw-r--r--src/main/java/org/traccar/protocol/T800xProtocol.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/T800xProtocol.java b/src/main/java/org/traccar/protocol/T800xProtocol.java
index fa692c792..a6f5f1514 100644
--- a/src/main/java/org/traccar/protocol/T800xProtocol.java
+++ b/src/main/java/org/traccar/protocol/T800xProtocol.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2015 - 2019 Anton Tananaev (anton@traccar.org)
+ * Copyright 2015 - 2022 Anton Tananaev (anton@traccar.org)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -35,6 +35,13 @@ public class T800xProtocol extends BaseProtocol {
pipeline.addLast(new T800xProtocolDecoder(T800xProtocol.this));
}
});
+ addServer(new TrackerServer(true, getName()) {
+ @Override
+ protected void addProtocolHandlers(PipelineBuilder pipeline, Config config) {
+ pipeline.addLast(new T800xProtocolEncoder(T800xProtocol.this));
+ pipeline.addLast(new T800xProtocolDecoder(T800xProtocol.this));
+ }
+ });
}
}