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

Scan setting phy is irrelevant #20

Open
clackmac opened this issue May 9, 2020 · 1 comment
Open

Scan setting phy is irrelevant #20

clackmac opened this issue May 9, 2020 · 1 comment

Comments

@clackmac
Copy link

clackmac commented May 9, 2020

This is not exactly an issue, but wanted to mentioned that on the TcnBluetoothManager, there's:

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
   setPhy(ScanSettings.PHY_LE_ALL_SUPPORTED)
    setLegacy(true)
}

But the documentation clearly states: This is used only if ScanSettings.Builder#setLegacy is set to false.

@ivnsch
Copy link
Collaborator

ivnsch commented May 11, 2020

Thanks for pointing it out! There's other point here that would be interesting to clarify:

The doc of setLegacy states:

Set whether only legacy advertisments should be returned in scan results.

Why are we interested in only legacy advertisements?
@zssz

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