aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/Gps103ProtocolEncoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-07-29 16:15:11 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-07-29 16:15:11 +1200
commit4dc04ca89ccdc4a63a4c454baa3bb4bc58829951 (patch)
tree86413fe3f51f1f66374aad7f56db03e8a4d483e3 /src/org/traccar/protocol/Gps103ProtocolEncoder.java
parent87d893cb122ea94e57e91a46b71278e5ba886d7c (diff)
downloadtrackermap-server-4dc04ca89ccdc4a63a4c454baa3bb4bc58829951.tar.gz
trackermap-server-4dc04ca89ccdc4a63a4c454baa3bb4bc58829951.tar.bz2
trackermap-server-4dc04ca89ccdc4a63a4c454baa3bb4bc58829951.zip
Add more command types
Diffstat (limited to 'src/org/traccar/protocol/Gps103ProtocolEncoder.java')
-rw-r--r--src/org/traccar/protocol/Gps103ProtocolEncoder.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/org/traccar/protocol/Gps103ProtocolEncoder.java b/src/org/traccar/protocol/Gps103ProtocolEncoder.java
index df0b50954..147451e3b 100644
--- a/src/org/traccar/protocol/Gps103ProtocolEncoder.java
+++ b/src/org/traccar/protocol/Gps103ProtocolEncoder.java
@@ -51,6 +51,10 @@ public class Gps103ProtocolEncoder extends StringProtocolEncoder implements Stri
return formatCommand(command, "**,imei:{%s},J;", Command.KEY_UNIQUE_ID);
case Command.TYPE_ENGINE_RESUME:
return formatCommand(command, "**,imei:{%s},K;", Command.KEY_UNIQUE_ID);
+ case Command.TYPE_ALARM_ARM:
+ return formatCommand(command, "**,imei:{%s},L;", Command.KEY_UNIQUE_ID);
+ case Command.TYPE_ALARM_DISARM:
+ return formatCommand(command, "**,imei:{%s},M;", Command.KEY_UNIQUE_ID);
}
return null;