aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/protocol/TotemProtocol.java
diff options
context:
space:
mode:
authorMatjaž Črnko <m.crnko@txt.si>2022-01-04 21:38:01 +0100
committerMatjaž Črnko <m.crnko@txt.si>2022-01-04 21:38:01 +0100
commit1a32d6b9b7253716d5927200db12d287b134ee26 (patch)
treeb0c8c03466b03610b93373bd0acf5a3d077e593f /src/main/java/org/traccar/protocol/TotemProtocol.java
parent0ca865602a9d14004a2385e37af31a8d2976a5d7 (diff)
downloadtrackermap-server-1a32d6b9b7253716d5927200db12d287b134ee26.tar.gz
trackermap-server-1a32d6b9b7253716d5927200db12d287b134ee26.tar.bz2
trackermap-server-1a32d6b9b7253716d5927200db12d287b134ee26.zip
fix: PR Feedback - Work In Progress
Diffstat (limited to 'src/main/java/org/traccar/protocol/TotemProtocol.java')
-rw-r--r--src/main/java/org/traccar/protocol/TotemProtocol.java15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/main/java/org/traccar/protocol/TotemProtocol.java b/src/main/java/org/traccar/protocol/TotemProtocol.java
index ecf7c858a..417a4d6b0 100644
--- a/src/main/java/org/traccar/protocol/TotemProtocol.java
+++ b/src/main/java/org/traccar/protocol/TotemProtocol.java
@@ -25,7 +25,7 @@ import org.traccar.model.Command;
public class TotemProtocol extends BaseProtocol {
public TotemProtocol() {
- String[] supportedCommands = new String[]{
+ setSupportedDataCommands(
Command.TYPE_CUSTOM,
Command.TYPE_REBOOT_DEVICE,
Command.TYPE_FACTORY_RESET,
@@ -33,11 +33,18 @@ public class TotemProtocol extends BaseProtocol {
Command.TYPE_POSITION_SINGLE,
Command.TYPE_ENGINE_RESUME,
Command.TYPE_ENGINE_STOP
- };
- setSupportedDataCommands(supportedCommands);
+ );
setTextCommandEncoder(new TotemProtocolSmsEncoder(this));
- setSupportedTextCommands(supportedCommands);
+ setSupportedTextCommands(
+ Command.TYPE_CUSTOM,
+ Command.TYPE_REBOOT_DEVICE,
+ Command.TYPE_FACTORY_RESET,
+ Command.TYPE_GET_VERSION,
+ Command.TYPE_POSITION_SINGLE,
+ Command.TYPE_ENGINE_RESUME,
+ Command.TYPE_ENGINE_STOP
+ );
addServer(new TrackerServer(false, getName()) {
@Override