From 282d1f68fd81861529d47d23c02624a02d07dc8e Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Fri, 8 Jul 2016 10:35:39 +0500 Subject: - l10n strings for new command types - Added identification command for wondex protocol --- src/org/traccar/protocol/WondexProtocol.java | 3 ++- src/org/traccar/protocol/WondexProtocolEncoder.java | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'src/org/traccar') diff --git a/src/org/traccar/protocol/WondexProtocol.java b/src/org/traccar/protocol/WondexProtocol.java index e7144eabe..78e090f03 100644 --- a/src/org/traccar/protocol/WondexProtocol.java +++ b/src/org/traccar/protocol/WondexProtocol.java @@ -31,7 +31,8 @@ public class WondexProtocol extends BaseProtocol { super("wondex"); setSupportedCommands( Command.TYPE_REBOOT_DEVICE, - Command.TYPE_POSITION_SINGLE); + Command.TYPE_POSITION_SINGLE, + Command.TYPE_IDENTIFICATION); } @Override diff --git a/src/org/traccar/protocol/WondexProtocolEncoder.java b/src/org/traccar/protocol/WondexProtocolEncoder.java index c8bc58b40..9d000d9ea 100644 --- a/src/org/traccar/protocol/WondexProtocolEncoder.java +++ b/src/org/traccar/protocol/WondexProtocolEncoder.java @@ -16,6 +16,8 @@ public class WondexProtocolEncoder extends StringProtocolEncoder { return formatCommand(command, "$WP+REBOOT={%s}", Command.KEY_DEVICE_PASSWORD); case Command.TYPE_POSITION_SINGLE: return formatCommand(command, "$WP+GETLOCATION={%s}", Command.KEY_DEVICE_PASSWORD); + case Command.TYPE_IDENTIFICATION: + return formatCommand(command, "$WP+VER={%s}", Command.KEY_DEVICE_PASSWORD); default: Log.warning(new UnsupportedOperationException(command.getType())); break; -- cgit v1.2.3