-
Notifications
You must be signed in to change notification settings - Fork 187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RunningAverageRssiFilter sampleExpiration modification ignored #30
Comments
Please, @davidgyoung, check this issue. |
Apologies for the delay, @fdiazgon, let me take a look and see what I can find. |
Reviewing this now, it appears that the documentation is currently wrong. You are correct in your observations, you cannot use:
The change in #128 was intended to shift this setting to the |
Fixed in AltBeacon/android-beacon-library#523 |
This fixes #627 which is a regression of #523 (AltBeacon/android-beacon-library-reference#30). It was introduced in commit f084042 (PR #484) where the `RunningAverageRssiFilter` has it's value constantly reset after every cycle in [`RangedBeacon#commitMeasurements`](f084042#diff-65311818bc092d4192549ca6a7932a8aR50).
This fixes #627 which is a regression of #523 (AltBeacon/android-beacon-library-reference#30). It was introduced in commit f084042 (PR #484) where the `RunningAverageRssiFilter` has it's value constantly reset after every cycle in [`RangedBeacon#commitMeasurements`](f084042#diff-65311818bc092d4192549ca6a7932a8aR50).
Hi.
I'm trying to modify the time interval of the
RunningAverageRssiFilter
as explained here: Adjusting the averaging time. I'm calling both methods in my Application class (I've seen in the reference application that all the configuration is done in this class), however, the new value is ignored.I've modified the
RunningAverageRssiFilter
class to log a message every time the methodsetSampleExpirationMilliseconds
is called:This method is called three times, as you can see in my Android Monitor:
The first one corresponds to the call made from my Application class. I think the other two calls are made from the
RangedBeacon
constructor:As a result, my configuration is ignored and
sampleExpirationMilliseconds
returns back to 20000. It seems that theRangedBeacon
class has a static method to modify the time interval too. Should not this method be called as well? My current solution:Edited: sorry, I meant to add this issue in the android-beacon-library repository.
The text was updated successfully, but these errors were encountered: