aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-07-29 14:14:40 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-07-29 14:14:40 +1200
commitcaabd4150ebbb46e4fdb671b7e83dc8463c4b9f3 (patch)
tree8e3818d779aa66251a1cac3357431acba1cdd6ca /src/org
parent2a279912a3f466e78f78762ee669e14e044cdcd5 (diff)
downloadtrackermap-server-caabd4150ebbb46e4fdb671b7e83dc8463c4b9f3.tar.gz
trackermap-server-caabd4150ebbb46e4fdb671b7e83dc8463c4b9f3.tar.bz2
trackermap-server-caabd4150ebbb46e4fdb671b7e83dc8463c4b9f3.zip
Return imei back to GPS103
Diffstat (limited to 'src/org')
-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 967914811..3273d2706 100644
--- a/src/org/traccar/protocol/Gps103ProtocolEncoder.java
+++ b/src/org/traccar/protocol/Gps103ProtocolEncoder.java
@@ -42,13 +42,13 @@ public class Gps103ProtocolEncoder extends StringProtocolEncoder implements Stri
switch (command.getType()) {
case Command.TYPE_POSITION_STOP:
- return formatCommand(command, "**,{%s},A;", Command.KEY_UNIQUE_ID);
+ return formatCommand(command, "**,imei:{%s},A;", Command.KEY_UNIQUE_ID);
case Command.TYPE_POSITION_FIX:
- return formatCommand(command, "**,{%s},C,{%s};", this, Command.KEY_UNIQUE_ID, Command.KEY_FREQUENCY);
+ return formatCommand(command, "**,imei:{%s},C,{%s};", this, Command.KEY_UNIQUE_ID, Command.KEY_FREQUENCY);
case Command.TYPE_ENGINE_STOP:
- return formatCommand(command, "**,{%s},J;", Command.KEY_UNIQUE_ID);
+ return formatCommand(command, "**,imei:{%s},J;", Command.KEY_UNIQUE_ID);
case Command.TYPE_ENGINE_RESUME:
- return formatCommand(command, "**,{%s},K;", Command.KEY_UNIQUE_ID);
+ return formatCommand(command, "**,imei:{%s},K;", Command.KEY_UNIQUE_ID);
}
return null;