diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-07-08 11:25:44 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-07-08 11:25:44 +1200 |
commit | 09e0d8de59fd662efd210be521e772ba59170c37 (patch) | |
tree | bcd1f44f25d4513c5016dfe077ec1ca48ea93603 /src/org/traccar/protocol/Pt502ProtocolEncoder.java | |
parent | a413abaf255fdb70ed8c77c801d277fbfc558bbb (diff) | |
download | trackermap-server-09e0d8de59fd662efd210be521e772ba59170c37.tar.gz trackermap-server-09e0d8de59fd662efd210be521e772ba59170c37.tar.bz2 trackermap-server-09e0d8de59fd662efd210be521e772ba59170c37.zip |
Implement PT502 photo request
Diffstat (limited to 'src/org/traccar/protocol/Pt502ProtocolEncoder.java')
-rw-r--r-- | src/org/traccar/protocol/Pt502ProtocolEncoder.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/org/traccar/protocol/Pt502ProtocolEncoder.java b/src/org/traccar/protocol/Pt502ProtocolEncoder.java index b8ca8ab15..d8aeb6e5d 100644 --- a/src/org/traccar/protocol/Pt502ProtocolEncoder.java +++ b/src/org/traccar/protocol/Pt502ProtocolEncoder.java @@ -31,6 +31,8 @@ public class Pt502ProtocolEncoder extends StringProtocolEncoder { return formatCommand(command, "#TMZ{%s}\r\n", Command.KEY_TIMEZONE); case Command.TYPE_ALARM_SPEED: return formatCommand(command, "#SPD{%s}\r\n", Command.KEY_DATA); + case Command.TYPE_REQUEST_PHOTO: + return formatCommand(command, "#PHO\r\n"); default: Log.warning(new UnsupportedOperationException(command.getType())); break; |