Re: [web-bluetooth] Add a "connectable" field to BluetoothDevice

The Android Bluetooth API's scan results do indicate if the advertisement indicated connectable or not: https://developer.android.com/reference/android/bluetooth/le/ScanResult.html#isConnectable() . This API is available since Android 8.0 aka API Level 26. 

However, please be aware the the Bluetooth spec allows for a device to interleave connectable and non-connectable advertisement, and in fact this is commonly used with beacons. It may make more sense to stick closer to the spec, and indicate connectability per advertisement packet, rather than per device.

-- 
GitHub Notification of comment by mkv123
Please view or discuss this issue at https://github.com/WebBluetoothCG/web-bluetooth/issues/253#issuecomment-414199320 using your GitHub account

Received on Monday, 20 August 2018 05:14:21 UTC