diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-04-14 19:17:24 +1200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-14 19:17:24 +1200 |
commit | 994efc29d550e3f4a69f65ee60aa51816f352d45 (patch) | |
tree | adf94921fedc0daf9cd7f3d3f5fafd3f796b35cd /src/org/traccar | |
parent | becfb50e86d90c57ab9549d728add83b8df9fd75 (diff) | |
parent | cc835f74f47a7f1e4f052d1f7ed77965cf1be133 (diff) | |
download | trackermap-server-994efc29d550e3f4a69f65ee60aa51816f352d45.tar.gz trackermap-server-994efc29d550e3f4a69f65ee60aa51816f352d45.tar.bz2 trackermap-server-994efc29d550e3f4a69f65ee60aa51816f352d45.zip |
Merge pull request #3844 from parveenkumardeeva/TK103-Control_Output
Tk103 control output
Diffstat (limited to 'src/org/traccar')
-rw-r--r-- | src/org/traccar/protocol/Tk103Protocol.java | 3 | ||||
-rw-r--r-- | src/org/traccar/protocol/Tk103ProtocolEncoder.java | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/Tk103Protocol.java b/src/org/traccar/protocol/Tk103Protocol.java index 6ef9c0a56..e23982c74 100644 --- a/src/org/traccar/protocol/Tk103Protocol.java +++ b/src/org/traccar/protocol/Tk103Protocol.java @@ -47,7 +47,8 @@ public class Tk103Protocol extends BaseProtocol { Command.TYPE_REBOOT_DEVICE, Command.TYPE_SET_ODOMETER, Command.TYPE_ENGINE_STOP, - Command.TYPE_ENGINE_RESUME); + Command.TYPE_ENGINE_RESUME, + Command.TYPE_OUTPUT_CONTROL); } @Override diff --git a/src/org/traccar/protocol/Tk103ProtocolEncoder.java b/src/org/traccar/protocol/Tk103ProtocolEncoder.java index 946f3ad73..3ec562cc3 100644 --- a/src/org/traccar/protocol/Tk103ProtocolEncoder.java +++ b/src/org/traccar/protocol/Tk103ProtocolEncoder.java @@ -97,6 +97,8 @@ public class Tk103ProtocolEncoder extends StringProtocolEncoder { return formatCommand(command, "({%s}AV010)", Command.KEY_UNIQUE_ID); case Command.TYPE_ENGINE_RESUME: return formatCommand(command, "({%s}AV011)", Command.KEY_UNIQUE_ID); + case Command.TYPE_OUTPUT_CONTROL: + return formatCommand(command, "({%s}AV00{%s})", Command.KEY_UNIQUE_ID, Command.KEY_DATA); default: Log.warning(new UnsupportedOperationException(command.getType())); return null; |