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

Feature Request: isConnectable Property for Android #823

Closed
IngoKoch opened this issue Nov 23, 2020 · 2 comments · Fixed by #993
Closed

Feature Request: isConnectable Property for Android #823

IngoKoch opened this issue Nov 23, 2020 · 2 comments · Fixed by #993

Comments

@IngoKoch
Copy link

Advertising Information on iOS offers a flag isConnectable (kCBAdvDataIsConnectable).
Would it be possible to issue such a flag on Android as well? As far as I know it is available since Android 8.0.
Source: https://stackoverflow.com/questions/28467590/detecting-whether-a-ble-device-is-connectable-on-android

@atuljain2995
Copy link

atuljain2995 commented Mar 25, 2021

I am stuck in determining whether BLE device is connectable or not, by analyzing advertisement data. Please help how to find the PUD from advertisement data?

https://stackoverflow.com/questions/66783413/i-am-stuck-in-determining-whether-ble-device-is-connectable-or-not-by-analyzing/66790124#66790124

@peitschie
Copy link
Collaborator

This is related to #192.

It's possible to parse this manually out of the advertising payload directly, but it is a bit tricky.
I agree there may be some benefit to exposing more of the properties from https://developer.android.com/reference/android/bluetooth/le/ScanResult.html#isConnectable().

Patches to do this would be welcome (especially if they update documentation and the iOS implementation also for consistency!)

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

Successfully merging a pull request may close this issue.

3 participants