From 8794c964069b11e44a79b1e5f9dabac6799f18cd Mon Sep 17 00:00:00 2001 From: Anshul Jain Date: Wed, 3 May 2017 18:00:07 +0530 Subject: Send any custom commands for GT06. --- src/org/traccar/protocol/Gt06ProtocolEncoder.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/org/traccar/protocol/Gt06ProtocolEncoder.java') diff --git a/src/org/traccar/protocol/Gt06ProtocolEncoder.java b/src/org/traccar/protocol/Gt06ProtocolEncoder.java index 7298f0ff6..a3e0a2264 100644 --- a/src/org/traccar/protocol/Gt06ProtocolEncoder.java +++ b/src/org/traccar/protocol/Gt06ProtocolEncoder.java @@ -63,6 +63,8 @@ public class Gt06ProtocolEncoder extends BaseProtocolEncoder { return encodeContent(alternative ? "DYD,123456#" : "Relay,1#"); case Command.TYPE_ENGINE_RESUME: return encodeContent(alternative ? "HFYD,123456#" : "Relay,0#"); + case Command.TYPE_CUSTOM: + return encodeContent(command.getString(Command.KEY_DATA)); default: Log.warning(new UnsupportedOperationException(command.getType())); break; -- cgit v1.2.3