Skip to content

Add a "connectable" field to BluetoothDevice #253

@jracle

Description

@jracle

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions