diff options
author | 5of9 <florian@voit.li> | 2017-06-02 18:43:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-02 18:43:26 +0200 |
commit | e196d58afbb6cac1b83ac5e464b68e759cbe5c87 (patch) | |
tree | 7384b12a0fad979fcf9f3b3821e9202a711bc578 /src/org | |
parent | 4268c1f1840349297a61e6972a61404f3f0e5e04 (diff) | |
download | trackermap-server-e196d58afbb6cac1b83ac5e464b68e759cbe5c87.tar.gz trackermap-server-e196d58afbb6cac1b83ac5e464b68e759cbe5c87.tar.bz2 trackermap-server-e196d58afbb6cac1b83ac5e464b68e759cbe5c87.zip |
Update WondexProtocolEncoder.java
Identifaction was wrong, Result was the Version, Identification added and Version corrected, added Battery Status and GSM Status, as also added in the command.java and wondexprotocol.java
Diffstat (limited to 'src/org')
-rw-r--r-- | src/org/traccar/protocol/WondexProtocolEncoder.java | 8 |
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())); |