diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-11-06 18:48:32 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-11-06 18:48:32 +1300 |
commit | 87a8c80f324ede8f8faa54800f286e18b969ffd1 (patch) | |
tree | 66ade073122ad19ea367ff4d19e7fbd226afa9f3 /src/org/traccar/protocol/HaicomProtocolDecoder.java | |
parent | 10bd96dac0150d9b19623cd86369f8985bda802c (diff) | |
download | trackermap-server-87a8c80f324ede8f8faa54800f286e18b969ffd1.tar.gz trackermap-server-87a8c80f324ede8f8faa54800f286e18b969ffd1.tar.bz2 trackermap-server-87a8c80f324ede8f8faa54800f286e18b969ffd1.zip |
Fix pattern comments formatting
Diffstat (limited to 'src/org/traccar/protocol/HaicomProtocolDecoder.java')
-rw-r--r-- | src/org/traccar/protocol/HaicomProtocolDecoder.java | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/org/traccar/protocol/HaicomProtocolDecoder.java b/src/org/traccar/protocol/HaicomProtocolDecoder.java index d187a4a63..db6090650 100644 --- a/src/org/traccar/protocol/HaicomProtocolDecoder.java +++ b/src/org/traccar/protocol/HaicomProtocolDecoder.java @@ -34,22 +34,22 @@ public class HaicomProtocolDecoder extends BaseProtocolDecoder { private static final Pattern PATTERN = new PatternBuilder() .text("$GPRS") - .number("(d+),") // IMEI - .expression("([^,]+),") // Version - .number("(dd)(dd)(dd),") // Date - .number("(dd)(dd)(dd),") // Time - .number("(d)") // Flags - .number("(dd)(d{5})") // Latitude (DDMMMMM) - .number("(ddd)(d{5}),") // Longitude (DDDMMMMM) - .number("(d+),") // Speed - .number("(d+),") // Course - .number("(d+),") // Status - .number("(d+)?,") // GPRS counting value - .number("(d+)?,") // GPS power saving counting value - .number("(d+),") // Switch status - .number("(d+)") // Relay status - .expression("(?:[LH]{2})?") // Power status - .number("#V(d+)") // Battery + .number("(d+),") // imei + .expression("([^,]+),") // version + .number("(dd)(dd)(dd),") // date + .number("(dd)(dd)(dd),") // time + .number("(d)") // flags + .number("(dd)(d{5})") // latitude + .number("(ddd)(d{5}),") // longitude + .number("(d+),") // speed + .number("(d+),") // course + .number("(d+),") // status + .number("(d+)?,") // gprs counting value + .number("(d+)?,") // gps power saving counting value + .number("(d+),") // switch status + .number("(d+)") // relay status + .expression("(?:[LH]{2})?") // power status + .number("#V(d+)") // battery .any() .compile(); |