aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
author5of9 <florian@voit.li>2017-06-02 22:06:50 +0200
committerGitHub <noreply@github.com>2017-06-02 22:06:50 +0200
commit37ffa38ad9cfab2c3b29f6aa389e08074bc0d7fb (patch)
tree61687fa49cd20f02e60d3ce52685764ecff7d387 /src/org/traccar
parent5283da7501d74e5f05a1c1ababc85bbd55202414 (diff)
parente196d58afbb6cac1b83ac5e464b68e759cbe5c87 (diff)
downloadtraccar-server-37ffa38ad9cfab2c3b29f6aa389e08074bc0d7fb.tar.gz
traccar-server-37ffa38ad9cfab2c3b29f6aa389e08074bc0d7fb.tar.bz2
traccar-server-37ffa38ad9cfab2c3b29f6aa389e08074bc0d7fb.zip
Merge pull request #3 from 5of9/5of9-patch-1-2
Update WondexProtocolEncoder.java
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/protocol/WondexProtocolEncoder.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/WondexProtocolEncoder.java b/src/org/traccar/protocol/WondexProtocolEncoder.java
index 8f9887b10..5034add8c 100644
--- a/src/org/traccar/protocol/WondexProtocolEncoder.java
+++ b/src/org/traccar/protocol/WondexProtocolEncoder.java
@@ -28,9 +28,15 @@ public class WondexProtocolEncoder extends StringProtocolEncoder {
switch (command.getType()) {
case Command.TYPE_REBOOT_DEVICE:
return formatCommand(command, "$WP+REBOOT={%s}", Command.KEY_DEVICE_PASSWORD);
+ case Command.TYPE_GET_DEVICESTATUS:
+ return formatCommand(command, "$WP+TEST={%s}", Command.KEY_DEVICE_PASSWORD);
+ case Command.TYPE_GET_GSMSTATUS:
+ return formatCommand(command, "$WP+GSMINFO={%s}", Command.KEY_DEVICE_PASSWORD);
+ case Command.TYPE_IDENTIFICATION:
+ return formatCommand(command, "$WP+IMEI={%s}", Command.KEY_DEVICE_PASSWORD);
case Command.TYPE_POSITION_SINGLE:
return formatCommand(command, "$WP+GETLOCATION={%s}", Command.KEY_DEVICE_PASSWORD);
- case Command.TYPE_IDENTIFICATION:
+ case Command.TYPE_GET_VERSION:
return formatCommand(command, "$WP+VER={%s}", Command.KEY_DEVICE_PASSWORD);
default:
Log.warning(new UnsupportedOperationException(command.getType()));