diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-08-05 11:01:51 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2017-08-05 11:14:05 +1200 |
commit | a1b426ce486cd00b08307b0ac53a2fb6d90bf724 (patch) | |
tree | 0a2ef6024883e4862fbedc0578a937c0c0091450 | |
parent | 441b80aee6dd90d4e472c0036ca00ecad2ee9c91 (diff) | |
download | trackermap-server-a1b426ce486cd00b08307b0ac53a2fb6d90bf724.tar.gz trackermap-server-a1b426ce486cd00b08307b0ac53a2fb6d90bf724.tar.bz2 trackermap-server-a1b426ce486cd00b08307b0ac53a2fb6d90bf724.zip |
Fix Cradlepoint RSSI decoding
-rw-r--r-- | src/org/traccar/protocol/CradlepointProtocolDecoder.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/org/traccar/protocol/CradlepointProtocolDecoder.java b/src/org/traccar/protocol/CradlepointProtocolDecoder.java index 1ba50f04b..a1b42edf9 100644 --- a/src/org/traccar/protocol/CradlepointProtocolDecoder.java +++ b/src/org/traccar/protocol/CradlepointProtocolDecoder.java @@ -1,5 +1,5 @@ /* - * Copyright 2016 Anton Tananaev (anton@traccar.org) + * Copyright 2016 - 2017 Anton Tananaev (anton@traccar.org) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -43,7 +43,7 @@ public class CradlepointProtocolDecoder extends BaseProtocolDecoder { .expression("([^,]+),") // carrier .expression("([^,]+)?,") // serdis .number("(-?d+),") // rsrp - .number("(-?d+),") // dbm + .number("(-?d+),") // rssi .number("(-?d+),") // rsrq .expression("([^,]+)?,") // ecio .expression("([^,]+)?") // wan ip @@ -75,7 +75,7 @@ public class CradlepointProtocolDecoder extends BaseProtocolDecoder { position.setSpeed(parser.nextDouble(0)); position.setCourse(parser.nextDouble(0)); - parser.skip(4); + parser.skip(3); position.set(Position.KEY_RSSI, parser.nextDouble()); |