diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-12-30 22:47:25 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-12-30 22:47:25 +1300 |
commit | de60cf9d75d669a8078df32f7e11bf7af1970777 (patch) | |
tree | 16378c05ad2d716c4768f1f9209f8e4e12534053 /src/org/traccar/protocol/MiniFinderProtocolEncoder.java | |
parent | 3d9499fab03dc616d060c00047ec24a6163ea2fa (diff) | |
download | trackermap-server-de60cf9d75d669a8078df32f7e11bf7af1970777.tar.gz trackermap-server-de60cf9d75d669a8078df32f7e11bf7af1970777.tar.bz2 trackermap-server-de60cf9d75d669a8078df32f7e11bf7af1970777.zip |
Add more MiniFinder commands
Diffstat (limited to 'src/org/traccar/protocol/MiniFinderProtocolEncoder.java')
-rw-r--r-- | src/org/traccar/protocol/MiniFinderProtocolEncoder.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/org/traccar/protocol/MiniFinderProtocolEncoder.java b/src/org/traccar/protocol/MiniFinderProtocolEncoder.java index 96079745c..e5c43e29a 100644 --- a/src/org/traccar/protocol/MiniFinderProtocolEncoder.java +++ b/src/org/traccar/protocol/MiniFinderProtocolEncoder.java @@ -58,6 +58,8 @@ public class MiniFinderProtocolEncoder extends StringProtocolEncoder implements return formatCommand(command, "{%s}J1{%s}", Command.KEY_DEVICE_PASSWORD, Command.KEY_DATA); case Command.TYPE_ALARM_GEOFENCE: return formatCommand(command, "{%s}R1{%s}", Command.KEY_DEVICE_PASSWORD, Command.KEY_RADIUS); + case Command.TYPE_ALARM_VIBRATION: + return formatCommand(command, "{%s}W1,{%s}", Command.KEY_DEVICE_PASSWORD, Command.KEY_DATA); case Command.TYPE_SET_AGPS: return formatCommand(command, "{%s}AGPS{%s}", this, Command.KEY_DEVICE_PASSWORD, Command.KEY_ENABLE); case Command.TYPE_ALARM_FALL: @@ -69,6 +71,8 @@ public class MiniFinderProtocolEncoder extends StringProtocolEncoder implements case Command.TYPE_SOS_NUMBER: return formatCommand(command, "{%s}{%s}1,{%s}", this, Command.KEY_DEVICE_PASSWORD, Command.KEY_INDEX, Command.KEY_PHONE); + case Command.TYPE_SET_INDICATOR: + return formatCommand(command, "{%s}LED{%s}", Command.KEY_DEVICE_PASSWORD, Command.KEY_DATA); default: Log.warning(new UnsupportedOperationException(command.getType())); return null; |