aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-07-27 13:30:47 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-07-27 13:30:47 +1200
commitff1d1e3d8d97212dd82dd7d965d5f3306771c888 (patch)
treeaf4c0645df21f3093e518b4484d7018b75e1b49a /src/org/traccar
parentd8cd9c2bba2b3bea5f6af15189f868fa6cffd9b0 (diff)
downloadtraccar-server-ff1d1e3d8d97212dd82dd7d965d5f3306771c888.tar.gz
traccar-server-ff1d1e3d8d97212dd82dd7d965d5f3306771c888.tar.bz2
traccar-server-ff1d1e3d8d97212dd82dd7d965d5f3306771c888.zip
Fix GPS103 commands format
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/protocol/Gps103ProtocolEncoder.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/org/traccar/protocol/Gps103ProtocolEncoder.java b/src/org/traccar/protocol/Gps103ProtocolEncoder.java
index 27fea8237..5d0e0ddd1 100644
--- a/src/org/traccar/protocol/Gps103ProtocolEncoder.java
+++ b/src/org/traccar/protocol/Gps103ProtocolEncoder.java
@@ -51,13 +51,13 @@ public class Gps103ProtocolEncoder extends BaseProtocolEncoder {
switch (command.getType()) {
case Command.TYPE_POSITION_STOP:
- return formatCommand(command, "**,imei:{%s},A", Command.KEY_UNIQUE_ID);
+ return formatCommand(command, "**,imei:{%s},A;", Command.KEY_UNIQUE_ID);
case Command.TYPE_POSITION_FIX:
- return formatCommand(command, "**,imei:{%s},C,{%s}", Command.KEY_UNIQUE_ID, Command.KEY_FREQUENCY);
+ return formatCommand(command, "**,imei:{%s},C,{%s};", Command.KEY_UNIQUE_ID, Command.KEY_FREQUENCY);
case Command.TYPE_ENGINE_STOP:
- return formatCommand(command, "**,imei:{%s},K", Command.KEY_UNIQUE_ID);
+ return formatCommand(command, "**,imei:{%s},K;", Command.KEY_UNIQUE_ID);
case Command.TYPE_ENGINE_RESUME:
- return formatCommand(command, "**,imei:{%s},J", Command.KEY_UNIQUE_ID);
+ return formatCommand(command, "**,imei:{%s},J;", Command.KEY_UNIQUE_ID);
}
return null;