cordova-plugin-ble-central icon indicating copy to clipboard operation
cordova-plugin-ble-central copied to clipboard

Feature Request: isConnectable Property for Android

Open IngoKoch opened this issue 5 years ago • 2 comments

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

IngoKoch avatar Nov 23 '20 19:11 IngoKoch

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

atuljain2995 avatar Mar 25 '21 04:03 atuljain2995

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!)

peitschie avatar Nov 20 '21 07:11 peitschie