Skip to content
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

Rssi Refreshing rate? #12

Closed
zeeshan0309 opened this issue Dec 5, 2020 · 1 comment
Closed

Rssi Refreshing rate? #12

zeeshan0309 opened this issue Dec 5, 2020 · 1 comment

Comments

@zeeshan0309
Copy link

How long does it take to actually reload/update new rssi values? I tested the sample code on my mobile, but it takes more than 3 minutes to update the rssi values

@vipero07
Copy link
Member

vipero07 commented Dec 8, 2020

Unfortunately the updates are left up to Android OS. For battery conservation and security reasons calling startscan in android is throttled. Each different android version has unique throttling to make matters worse.

  • Android 8.0 and 8.1 are throttled to once every 30 minutes
  • Android 9 allows 4 calls in a 2 minute burst for foreground applications, and once every 30 minutes for background apps.
  • Android 10 and higher is the same as 9 but has dev options to change the throttling for local development (which would obviously not apply to application users)

For more information see: Wifi Scan Throttling

This also is unique to wifi scanning, not explicitly RSSI updates, I imagine its possible the RSSI values may not even update upon receiving a new wifi scan result but that is lower level kernel stuff that devs don't have access to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants