diff options
author | Alexander Menk <menk@mestrona.net> | 2016-12-20 08:41:59 +0100 |
---|---|---|
committer | Alexander Menk <menk@mestrona.net> | 2016-12-20 08:41:59 +0100 |
commit | 884f0d60bb31b063fdac35d91dcd51fe3987f9be (patch) | |
tree | b66018eafc4c99f6368d9e535cc5eb8ad2d605c3 /src/org/traccar/protocol/WatchProtocolEncoder.java | |
parent | 2c8187fbef2838d90dd39e7636a7f30a6ac3e343 (diff) | |
download | trackermap-server-884f0d60bb31b063fdac35d91dcd51fe3987f9be.tar.gz trackermap-server-884f0d60bb31b063fdac35d91dcd51fe3987f9be.tar.bz2 trackermap-server-884f0d60bb31b063fdac35d91dcd51fe3987f9be.zip |
#2702Implement setHearts for watch Protocol
Using this function you can display a certain amount of hearts on the watch.
Nothing more, nothing less.
Diffstat (limited to 'src/org/traccar/protocol/WatchProtocolEncoder.java')
-rw-r--r-- | src/org/traccar/protocol/WatchProtocolEncoder.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/org/traccar/protocol/WatchProtocolEncoder.java b/src/org/traccar/protocol/WatchProtocolEncoder.java index a84cf9ef0..aa7db6a32 100644 --- a/src/org/traccar/protocol/WatchProtocolEncoder.java +++ b/src/org/traccar/protocol/WatchProtocolEncoder.java @@ -106,6 +106,8 @@ public class WatchProtocolEncoder extends StringProtocolEncoder { return formatCommand(command, "UPLOAD,{%s}", Command.KEY_FREQUENCY); case Command.TYPE_SET_TIMEZONE: return formatCommand(command, "LZ,,{%s}", Command.KEY_TIMEZONE); + case Command.TYPE_SET_HEARTS: + return formatCommand(command, "FLOWER,{%s}", Command.KEY_HEARTS); default: Log.warning(new UnsupportedOperationException(command.getType())); break; |