aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-08-14 15:04:57 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-08-14 15:04:57 +1200
commita4a40243616cb2d29ca70f61dbca8502d343357a (patch)
treefed867ce77608506c3c3901f9aff951896a50e98 /src
parentc635c9c510394e95c2d7dd30e178a8483818c486 (diff)
downloadtraccar-server-a4a40243616cb2d29ca70f61dbca8502d343357a.tar.gz
traccar-server-a4a40243616cb2d29ca70f61dbca8502d343357a.tar.bz2
traccar-server-a4a40243616cb2d29ca70f61dbca8502d343357a.zip
Change Suntech command format (fix #1344)
Diffstat (limited to 'src')
-rw-r--r--src/org/traccar/protocol/SuntechProtocolEncoder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/SuntechProtocolEncoder.java b/src/org/traccar/protocol/SuntechProtocolEncoder.java
index 6d1306645..2b5165995 100644
--- a/src/org/traccar/protocol/SuntechProtocolEncoder.java
+++ b/src/org/traccar/protocol/SuntechProtocolEncoder.java
@@ -25,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\r", Command.KEY_UNIQUE_ID);
+ return formatCommand(command, "SA200CMD;{%s};02;Disable1\r", Command.KEY_UNIQUE_ID);
}
return null;