diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-11-26 10:00:32 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2018-11-26 10:00:51 +1300 |
commit | 4c6089f544c429dad9cf36cdafe3054cba164033 (patch) | |
tree | 8a4c7ea7411fd98f9228245293a66c9de0653e54 /src/org/traccar/protocol/Tk103ProtocolEncoder.java | |
parent | 0e113dad3125ed72d37a522d117e1436ef48524f (diff) | |
download | trackermap-server-4c6089f544c429dad9cf36cdafe3054cba164033.tar.gz trackermap-server-4c6089f544c429dad9cf36cdafe3054cba164033.tar.bz2 trackermap-server-4c6089f544c429dad9cf36cdafe3054cba164033.zip |
Add power off command
Diffstat (limited to 'src/org/traccar/protocol/Tk103ProtocolEncoder.java')
-rw-r--r-- | src/org/traccar/protocol/Tk103ProtocolEncoder.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/org/traccar/protocol/Tk103ProtocolEncoder.java b/src/org/traccar/protocol/Tk103ProtocolEncoder.java index d4544707a..98edc8cb5 100644 --- a/src/org/traccar/protocol/Tk103ProtocolEncoder.java +++ b/src/org/traccar/protocol/Tk103ProtocolEncoder.java @@ -50,6 +50,8 @@ public class Tk103ProtocolEncoder extends StringProtocolEncoder { return formatAlt(command, "{%s}", Command.KEY_DATA); case Command.TYPE_GET_VERSION: return formatAlt(command, "*about*"); + case Command.TYPE_POWER_OFF: + return formatAlt(command, "*turnoff*"); case Command.TYPE_REBOOT_DEVICE: return formatAlt(command, "88888888"); case Command.TYPE_POSITION_SINGLE: |