aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/WatchProtocolEncoder.java
diff options
context:
space:
mode:
authorAlexander Menk <menk@mestrona.net>2016-12-19 14:04:54 +0100
committerAlexander Menk <menk@mestrona.net>2016-12-19 14:04:54 +0100
commitcdf1dfe387b6f682680746a770941d84f52ebd05 (patch)
tree9849ad6194bddecf1d0baa953adaff609cf2d3c1 /src/org/traccar/protocol/WatchProtocolEncoder.java
parent037c56737afbae584a0e7637094ea0aa1b359675 (diff)
downloadtrackermap-server-cdf1dfe387b6f682680746a770941d84f52ebd05.tar.gz
trackermap-server-cdf1dfe387b6f682680746a770941d84f52ebd05.tar.bz2
trackermap-server-cdf1dfe387b6f682680746a770941d84f52ebd05.zip
#2702 Implement POSITION_PERIODIC for watch Protocol
Diffstat (limited to 'src/org/traccar/protocol/WatchProtocolEncoder.java')
-rw-r--r--src/org/traccar/protocol/WatchProtocolEncoder.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/org/traccar/protocol/WatchProtocolEncoder.java b/src/org/traccar/protocol/WatchProtocolEncoder.java
index 0b6a83ce9..41f189a89 100644
--- a/src/org/traccar/protocol/WatchProtocolEncoder.java
+++ b/src/org/traccar/protocol/WatchProtocolEncoder.java
@@ -102,6 +102,8 @@ public class WatchProtocolEncoder extends StringProtocolEncoder {
return formatCommand(command, "PHB,{%s}", Command.KEY_DATA);
case Command.TYPE_VOICE_MESSAGE:
return formatCommand(command, "TK," + getBinaryData(command));
+ case Command.TYPE_POSITION_PERIODIC:
+ return formatCommand(command, "UPLOAD,{%s}", Command.KEY_FREQUENCY);
default:
Log.warning(new UnsupportedOperationException(command.getType()));
break;