aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/WondexProtocolEncoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-06-04 11:17:47 +1200
committerGitHub <noreply@github.com>2017-06-04 11:17:47 +1200
commit40cb222dddfe3c0acdf6043617e00d7deaa4646c (patch)
tree6be53c9eea90e2f8c6ca4660eced01eeeb940f62 /src/org/traccar/protocol/WondexProtocolEncoder.java
parent4268c1f1840349297a61e6972a61404f3f0e5e04 (diff)
parentd6e8af781b125cf11b6a74b51ac6283e3235ad50 (diff)
downloadtrackermap-server-40cb222dddfe3c0acdf6043617e00d7deaa4646c.tar.gz
trackermap-server-40cb222dddfe3c0acdf6043617e00d7deaa4646c.tar.bz2
trackermap-server-40cb222dddfe3c0acdf6043617e00d7deaa4646c.zip
Merge pull request #3217 from 5of9/master
Wondex upgrade and fix for a little missing thing
Diffstat (limited to 'src/org/traccar/protocol/WondexProtocolEncoder.java')
-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..6258c1fe6 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_DEVICE_STATUS:
+ return formatCommand(command, "$WP+TEST={%s}", Command.KEY_DEVICE_PASSWORD);
+ case Command.TYPE_GET_MODEM_STATUS:
+ 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()));