As @beaufortfrancois suggests (following @Vudentz remark) in pull-request #239 , it would be valuable to add a boolean connectable member to BluetoothDevice.
Instances of BluetoothDevice return by a regular requestLEScan (the one without explicitly filtering out connectable devices) have no hint whether or not we can connect to their GATT server.
Once we get device from requestDevice, such a BluetoothDevice instance would also hold same boolean connectable member. Subsequent call to .gatt.connect() would fail if connectable is false.
..oh and I already acknowledge I'll be opposed the fact that we can pre-filter devices (see #243)
As @beaufortfrancois suggests (following @Vudentz remark) in pull-request #239 , it would be valuable to add a
boolean connectablemember toBluetoothDevice.Instances of
BluetoothDevicereturn by a regularrequestLEScan(the one without explicitly filtering out connectable devices) have no hint whether or not we can connect to their GATT server.Once we get device from
requestDevice, such aBluetoothDeviceinstance would also hold sameboolean connectablemember. Subsequent call to.gatt.connect()would fail ifconnectableisfalse...oh and I already acknowledge I'll be opposed the fact that we can pre-filter devices (see #243)