From 7c8a732d577d6748b9223f720d2dde70f5ebfc41 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 13 Mar 2013 20:34:11 +1300 Subject: Fix T55 regular expression --- src/org/traccar/protocol/T55ProtocolDecoder.java | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) (limited to 'src/org') diff --git a/src/org/traccar/protocol/T55ProtocolDecoder.java b/src/org/traccar/protocol/T55ProtocolDecoder.java index 57810be3b..b95b9fc5a 100644 --- a/src/org/traccar/protocol/T55ProtocolDecoder.java +++ b/src/org/traccar/protocol/T55ProtocolDecoder.java @@ -26,19 +26,10 @@ import org.traccar.ServerManager; import org.traccar.helper.Log; import org.traccar.model.Position; -/** - * T55 tracker protocol decoder - */ public class T55ProtocolDecoder extends BaseProtocolDecoder { - /** - * Device ID - */ private Long deviceId; - /** - * Initialize - */ public T55ProtocolDecoder(ServerManager serverManager) { super(serverManager); } @@ -54,14 +45,11 @@ public class T55ProtocolDecoder extends BaseProtocolDecoder { "([NS])," + "(\\d{3})(\\d{2}\\.\\d+)," + // Longitude (DDDMM.MMMM) "([EW])," + - "(\\d+\\.\\d{2})?," + // Speed - "(\\d+\\.\\d{2})?," + // Course + "(\\d+\\.?\\d*)?," + // Speed + "(\\d+\\.?\\d*)?," + // Course "(\\d{2})(\\d{2})(\\d{2})" + // Date (DDMMYY) ".+"); // Other (Checksumm) - /** - * Decode message - */ @Override protected Object decode( ChannelHandlerContext ctx, Channel channel, Object msg) -- cgit v1.2.3