From 9cc4cb27a5de80794f11a2e659ecde0e44bbb7b6 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 12 Sep 2015 21:45:59 +1200 Subject: Improve PT502 decoder pattern --- src/org/traccar/protocol/Pt502ProtocolDecoder.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/org/traccar') diff --git a/src/org/traccar/protocol/Pt502ProtocolDecoder.java b/src/org/traccar/protocol/Pt502ProtocolDecoder.java index 310c345b0..d2436302d 100644 --- a/src/org/traccar/protocol/Pt502ProtocolDecoder.java +++ b/src/org/traccar/protocol/Pt502ProtocolDecoder.java @@ -16,15 +16,12 @@ */ package org.traccar.protocol; -import java.net.SocketAddress; +import java.net.SocketAddress; import java.util.Calendar; import java.util.TimeZone; import java.util.regex.Matcher; import java.util.regex.Pattern; - import org.jboss.netty.channel.Channel; -import org.jboss.netty.channel.ChannelHandlerContext; - import org.traccar.BaseProtocolDecoder; import org.traccar.model.Event; import org.traccar.model.Position; @@ -51,7 +48,7 @@ public class Pt502ProtocolDecoder extends BaseProtocolDecoder { "./" + "([01])+," + // Input "([01])+/" + // Output - "([^/]+)/" + // ADC + "([^/]+)?/" + // ADC "(\\d+)" + // Odometer "(?:/([^/]+)?/" + // RFID "(\\p{XDigit}{3}))?" + // State -- cgit v1.2.3