aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/protocol/TopinProtocol.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-11-13 10:26:56 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2021-11-13 10:26:56 -0800
commit33f20c440ee2a132c222781c4197dff10ecc6b3c (patch)
tree4d506cc1f1441e9f27ebd5959a5110085b6f8d41 /src/main/java/org/traccar/protocol/TopinProtocol.java
parentf0f22ee3e7f038a570800df10f1f29bb49a1a379 (diff)
downloadtrackermap-server-33f20c440ee2a132c222781c4197dff10ecc6b3c.tar.gz
trackermap-server-33f20c440ee2a132c222781c4197dff10ecc6b3c.tar.bz2
trackermap-server-33f20c440ee2a132c222781c4197dff10ecc6b3c.zip
Add Topin protocol encoder
Diffstat (limited to 'src/main/java/org/traccar/protocol/TopinProtocol.java')
-rw-r--r--src/main/java/org/traccar/protocol/TopinProtocol.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/TopinProtocol.java b/src/main/java/org/traccar/protocol/TopinProtocol.java
index 844dd7518..d28afbf94 100644
--- a/src/main/java/org/traccar/protocol/TopinProtocol.java
+++ b/src/main/java/org/traccar/protocol/TopinProtocol.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2019 Anton Tananaev (anton@traccar.org)
+ * Copyright 2019 - 2021 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.
@@ -18,13 +18,17 @@ package org.traccar.protocol;
import org.traccar.BaseProtocol;
import org.traccar.PipelineBuilder;
import org.traccar.TrackerServer;
+import org.traccar.model.Command;
public class TopinProtocol extends BaseProtocol {
public TopinProtocol() {
+ setSupportedDataCommands(
+ Command.TYPE_SOS_NUMBER);
addServer(new TrackerServer(false, getName()) {
@Override
protected void addProtocolHandlers(PipelineBuilder pipeline) {
+ pipeline.addLast(new TopinProtocolEncoder(TopinProtocol.this));
pipeline.addLast(new TopinProtocolDecoder(TopinProtocol.this));
}
});