aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/Stl060ProtocolDecoder.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/protocol/Stl060ProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/Stl060ProtocolDecoder.java7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/org/traccar/protocol/Stl060ProtocolDecoder.java b/src/org/traccar/protocol/Stl060ProtocolDecoder.java
index 72952121a..f27f36ab7 100644
--- a/src/org/traccar/protocol/Stl060ProtocolDecoder.java
+++ b/src/org/traccar/protocol/Stl060ProtocolDecoder.java
@@ -31,10 +31,7 @@ public class Stl060ProtocolDecoder extends BaseProtocolDecoder {
super(protocol);
}
- //$1,357804047969310,D001,AP29AW0963,01/01/13,13:24:47,1723.9582N,07834.0945E
- //,00100,010,0,0,0,0,
- //0,0008478660,1450,40,34,0,0,0,A
- private static final Pattern pattern = Pattern.compile(
+ private static final Pattern PATTERN = Pattern.compile(
".*\\$1," +
"(\\d+)," + // IMEI
"D001," + // Type
@@ -75,7 +72,7 @@ public class Stl060ProtocolDecoder extends BaseProtocolDecoder {
String sentence = (String) msg;
// Parse message
- Matcher parser = pattern.matcher(sentence);
+ Matcher parser = PATTERN.matcher(sentence);
if (!parser.matches()) {
return null;
}