aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-11-11 10:02:24 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-11-11 10:02:24 +1300
commitb21ac014140a61bb23801b9d07679a83e2282d6b (patch)
tree0b11e99a9c78f79a82a24f360e059a42ff705d2e /src/org/traccar/protocol
parent725bf4c712ecb5e03cdb40844136b4a5fc6ec8e2 (diff)
downloadtrackermap-server-b21ac014140a61bb23801b9d07679a83e2282d6b.tar.gz
trackermap-server-b21ac014140a61bb23801b9d07679a83e2282d6b.tar.bz2
trackermap-server-b21ac014140a61bb23801b9d07679a83e2282d6b.zip
Add GPS103 request photo command
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r--src/org/traccar/protocol/Gps103Protocol.java3
-rw-r--r--src/org/traccar/protocol/Gps103ProtocolEncoder.java2
2 files changed, 4 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/Gps103Protocol.java b/src/org/traccar/protocol/Gps103Protocol.java
index dcac04c5b..35515e2e7 100644
--- a/src/org/traccar/protocol/Gps103Protocol.java
+++ b/src/org/traccar/protocol/Gps103Protocol.java
@@ -35,7 +35,8 @@ public class Gps103Protocol extends BaseProtocol {
Command.TYPE_POSITION_PERIODIC,
Command.TYPE_POSITION_STOP,
Command.TYPE_ENGINE_STOP,
- Command.TYPE_ENGINE_RESUME);
+ Command.TYPE_ENGINE_RESUME,
+ Command.TYPE_REQUEST_PHOTO);
}
@Override
diff --git a/src/org/traccar/protocol/Gps103ProtocolEncoder.java b/src/org/traccar/protocol/Gps103ProtocolEncoder.java
index 9f0df8761..23942e554 100644
--- a/src/org/traccar/protocol/Gps103ProtocolEncoder.java
+++ b/src/org/traccar/protocol/Gps103ProtocolEncoder.java
@@ -57,6 +57,8 @@ public class Gps103ProtocolEncoder extends StringProtocolEncoder implements Stri
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);
+ case Command.TYPE_REQUEST_PHOTO:
+ return formatCommand(command, "**,imei:{%s},160", Command.KEY_UNIQUE_ID);
default:
Log.warning(new UnsupportedOperationException(command.getType()));
break;