aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/Gps103ProtocolEncoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-07-29 16:08:08 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-07-29 16:08:08 +1200
commit1e0f0b2d38f15f3bac670319f52c2925cdaecc3c (patch)
tree628e2fe0afd867f81c8360e443b453bf08f0f8f8 /src/org/traccar/protocol/Gps103ProtocolEncoder.java
parentc534819d12b984e845f41a95efa3f0ef7b6ebbe6 (diff)
downloadtrackermap-server-1e0f0b2d38f15f3bac670319f52c2925cdaecc3c.tar.gz
trackermap-server-1e0f0b2d38f15f3bac670319f52c2925cdaecc3c.tar.bz2
trackermap-server-1e0f0b2d38f15f3bac670319f52c2925cdaecc3c.zip
Rename some commands
Diffstat (limited to 'src/org/traccar/protocol/Gps103ProtocolEncoder.java')
-rw-r--r--src/org/traccar/protocol/Gps103ProtocolEncoder.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/Gps103ProtocolEncoder.java b/src/org/traccar/protocol/Gps103ProtocolEncoder.java
index 3273d2706..df0b50954 100644
--- a/src/org/traccar/protocol/Gps103ProtocolEncoder.java
+++ b/src/org/traccar/protocol/Gps103ProtocolEncoder.java
@@ -43,7 +43,9 @@ public class Gps103ProtocolEncoder extends StringProtocolEncoder implements Stri
switch (command.getType()) {
case Command.TYPE_POSITION_STOP:
return formatCommand(command, "**,imei:{%s},A;", Command.KEY_UNIQUE_ID);
- case Command.TYPE_POSITION_FIX:
+ case Command.TYPE_POSITION_SINGLE:
+ return formatCommand(command, "**,imei:{%s},B;", Command.KEY_UNIQUE_ID);
+ case Command.TYPE_POSITION_PERIODIC:
return formatCommand(command, "**,imei:{%s},C,{%s};", this, Command.KEY_UNIQUE_ID, Command.KEY_FREQUENCY);
case Command.TYPE_ENGINE_STOP:
return formatCommand(command, "**,imei:{%s},J;", Command.KEY_UNIQUE_ID);