From a1b426ce486cd00b08307b0ac53a2fb6d90bf724 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 5 Aug 2017 11:01:51 +1200 Subject: Fix Cradlepoint RSSI decoding --- src/org/traccar/protocol/CradlepointProtocolDecoder.java | 6 +++--- 1 file 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()); -- cgit v1.2.3