aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/WatchProtocolEncoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-03-13 08:35:26 -0700
committerGitHub <noreply@github.com>2019-03-13 08:35:26 -0700
commite3e57a159842a97d6e0dff1b067cb241848b03da (patch)
treea2b552186cb6afbffc16c4c1a07d34aff69400bf /src/org/traccar/protocol/WatchProtocolEncoder.java
parent477af677bc869f04a4cd8d734611218d20a40e21 (diff)
parentc2fa366c08519828b81e57665540f6525d049577 (diff)
downloadtrackermap-server-e3e57a159842a97d6e0dff1b067cb241848b03da.tar.gz
trackermap-server-e3e57a159842a97d6e0dff1b067cb241848b03da.tar.bz2
trackermap-server-e3e57a159842a97d6e0dff1b067cb241848b03da.zip
Merge pull request #4246 from flocsy/watch-poweroff
Added power off to 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 df29d83a9..264aec81f 100644
--- a/src/org/traccar/protocol/WatchProtocolEncoder.java
+++ b/src/org/traccar/protocol/WatchProtocolEncoder.java
@@ -139,6 +139,8 @@ public class WatchProtocolEncoder extends StringProtocolEncoder implements Strin
return formatTextCommand(channel, command, "LOWBAT,{%s}", Command.KEY_ENABLE);
case Command.TYPE_REBOOT_DEVICE:
return formatTextCommand(channel, command, "RESET");
+ case Command.TYPE_POWER_OFF:
+ return formatTextCommand(channel, command, "POWEROFF");
case Command.TYPE_ALARM_REMOVE:
return formatTextCommand(channel, command, "REMOVE,{%s}", Command.KEY_ENABLE);
case Command.TYPE_SILENCE_TIME: