aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authoramilasilva88 <amilasilva88@gmail.com>2015-08-15 09:05:31 +0800
committeramilasilva88 <amilasilva88@gmail.com>2015-08-15 09:05:31 +0800
commitf2c6f5aa0248c5b40e5aebd57e905fc2769937e9 (patch)
tree47b456e80c807b12ca27b93d940cecec4c678269 /src/org
parenta70f478740514e6e60ffbe49906a9c6150b2ec99 (diff)
parenta4a40243616cb2d29ca70f61dbca8502d343357a (diff)
downloadtrackermap-server-f2c6f5aa0248c5b40e5aebd57e905fc2769937e9.tar.gz
trackermap-server-f2c6f5aa0248c5b40e5aebd57e905fc2769937e9.tar.bz2
trackermap-server-f2c6f5aa0248c5b40e5aebd57e905fc2769937e9.zip
Merge https://github.com/tananaev/traccar
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/protocol/SuntechProtocolEncoder.java7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/org/traccar/protocol/SuntechProtocolEncoder.java b/src/org/traccar/protocol/SuntechProtocolEncoder.java
index 7bcb02088..2b5165995 100644
--- a/src/org/traccar/protocol/SuntechProtocolEncoder.java
+++ b/src/org/traccar/protocol/SuntechProtocolEncoder.java
@@ -15,12 +15,9 @@
*/
package org.traccar.protocol;
-import org.traccar.BaseProtocolEncoder;
import org.traccar.StringProtocolEncoder;
import org.traccar.model.Command;
-import java.util.Map;
-
public class SuntechProtocolEncoder extends StringProtocolEncoder {
@Override
@@ -28,9 +25,9 @@ public class SuntechProtocolEncoder extends StringProtocolEncoder {
switch (command.getType()) {
case Command.TYPE_ENGINE_STOP:
- return formatCommand(command, "CMD;{%s};02;Enable1\r", Command.KEY_UNIQUE_ID);
+ return formatCommand(command, "SA200CMD;{%s};02;Enable1\r", Command.KEY_UNIQUE_ID);
case Command.TYPE_ENGINE_RESUME:
- return formatCommand(command, "CMD;{%s};02;Disable1\n", Command.KEY_UNIQUE_ID);
+ return formatCommand(command, "SA200CMD;{%s};02;Disable1\r", Command.KEY_UNIQUE_ID);
}
return null;