diff options
Diffstat (limited to 'src/org/traccar/BaseProtocol.java')
-rw-r--r-- | src/org/traccar/BaseProtocol.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/org/traccar/BaseProtocol.java b/src/org/traccar/BaseProtocol.java index 826a290d0..446f57d65 100644 --- a/src/org/traccar/BaseProtocol.java +++ b/src/org/traccar/BaseProtocol.java @@ -22,6 +22,7 @@ import org.traccar.model.Command; import javax.xml.bind.DatatypeConverter; import java.util.Arrays; +import java.util.Collection; import java.util.HashSet; import java.util.Set; @@ -44,6 +45,11 @@ public abstract class BaseProtocol implements Protocol { } @Override + public Collection<String> getSupportedCommands() { + return supportedCommands; + } + + @Override public void sendCommand(ActiveDevice activeDevice, Command command) { if (command.getType().equals(Command.TYPE_CUSTOM)) { String data = (String) command.getAttributes().get(Command.KEY_DATA); |