aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/WatchProtocolEncoder.java
diff options
context:
space:
mode:
authorGavriel Fleischer <flocsy@gmail.com>2019-03-13 11:59:07 +0200
committerGavriel Fleischer <flocsy@gmail.com>2019-03-13 11:59:07 +0200
commitc2fa366c08519828b81e57665540f6525d049577 (patch)
tree7ff4a6adb66feb8068a5375c960020410d938ba7 /src/org/traccar/protocol/WatchProtocolEncoder.java
parent81d4920ba7e45d762f7e276195b9b085e88249a4 (diff)
downloadtrackermap-server-c2fa366c08519828b81e57665540f6525d049577.tar.gz
trackermap-server-c2fa366c08519828b81e57665540f6525d049577.tar.bz2
trackermap-server-c2fa366c08519828b81e57665540f6525d049577.zip
added POWEROFF 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: