Keep old method as deprecated to keep api stable
@@ -284,6 +284,16 @@ public class Beacon implements Parcelable, Serializable {
mDistance = null; // force calculation of accuracy and proximity next time they are requested
}
+ /**
+ * @deprecated To be removed in a future release. Use
+ * {@link org.altbeacon.beacon.Beacon#getRunningAverageRssi()}
+ * instead.
+ */
+ @Deprecated
+ public double getRunningAverageRssi(double rssi) {
+ return mRunningAverageRssi = rssi;
+ }
+
/**
* Returns the running average rssi
* @return double
@@ -295,7 +305,6 @@ public class Beacon implements Parcelable, Serializable {
return mRssi;
}
-
/**
* Sets the most recently measured rssi for use in distance calculations if a running average is
* not available
