aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjorgejimenez88 <jorgejimenez88@outlook.com>2015-08-20 15:12:24 -0500
committerjorgejimenez88 <jorgejimenez88@outlook.com>2015-08-20 15:12:24 -0500
commit89a615dff136fc590bd0cdeb1bb8d06ea17d24c9 (patch)
treef092e7d7959222dd799ea1ce21bfccd96065545f /src
parentf9501ab4213f462a2ee645fee34f754fa47d08b1 (diff)
downloadtraccar-server-89a615dff136fc590bd0cdeb1bb8d06ea17d24c9.tar.gz
traccar-server-89a615dff136fc590bd0cdeb1bb8d06ea17d24c9.tar.bz2
traccar-server-89a615dff136fc590bd0cdeb1bb8d06ea17d24c9.zip
Create MeitrackProtocolEncoder
Diffstat (limited to 'src')
-rw-r--r--src/org/traccar/protocol/MeitrackProtocolEncoder.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/org/traccar/protocol/MeitrackProtocolEncoder.java b/src/org/traccar/protocol/MeitrackProtocolEncoder.java
index d03a6cd1b..d5eca9a97 100644
--- a/src/org/traccar/protocol/MeitrackProtocolEncoder.java
+++ b/src/org/traccar/protocol/MeitrackProtocolEncoder.java
@@ -25,13 +25,13 @@ public class MeitrackProtocolEncoder extends StringProtocolEncoder {
switch (command.getType()) {
case Command.TYPE_ENGINE_STOP:
- return formatCommand(command, "C01,0,12222");
+ return formatCommand(command, "@@M34,{%s},C01,0,12222*18\r\n", Command.KEY_UNIQUE_ID);
case Command.TYPE_ENGINE_RESUME:
- return formatCommand(command, "C01,0,02222");
+ return formatCommand(command, "@@M34,{%s},C01,0,02222*18\r\n", Command.KEY_UNIQUE_ID);
case Command.TYPE_ALARM_ARM:
- return formatCommand(command, "C01,0,22122");
+ return formatCommand(command, "@@M34,{%s},C01,0,22122*18\r\n", Command.KEY_UNIQUE_ID);
case Command.TYPE_ALARM_DISARM:
- return formatCommand(command, "C01,0,22022");
+ return formatCommand(command, "@@M34,{%s},C01,0,22022*18\r\n", Command.KEY_UNIQUE_ID);
}
return null;