DefaultDeviceWrapper

Default implementation of DeviceWrapper

Parameters

device

the BluetoothDevice being wrapped

Constructors

Link copied to clipboard
constructor(device: BluetoothDevice)

Properties

Link copied to clipboard

The BondState of the device

Link copied to clipboard
open override val identifier: Identifier
Link copied to clipboard
open override val name: String?

Functions

Link copied to clipboard
open override fun connectGatt(context: Context, autoConnect: Boolean, callback: BluetoothGattCallback): BluetoothGattWrapper

Connects to the GATT Server hosted by the BluetoothDevice

Link copied to clipboard
open override fun createBond()

Creates a bond with the device (pair)

Link copied to clipboard
open override fun removeBond()

Removes the bond from the device (unpair)