BleGattConnectOptions

data class BleGattConnectOptions(val autoConnect: Boolean = false, val phy: BleGattPhy? = null, val closeOnDisconnect: Boolean = true, val bufferSize: Int = 10)

Connection options for establishing BLE connection.

Constructors

Link copied to clipboard
constructor(autoConnect: Boolean = false, phy: BleGattPhy? = null, closeOnDisconnect: Boolean = true, bufferSize: Int = 10)

Properties

Link copied to clipboard
val autoConnect: Boolean = false

Whether to directly connect to the remote device (false) or to automatically connect as soon as the remote device becomes available (true).

Link copied to clipboard
val bufferSize: Int = 10

Buffer size for events emitted by BluetoothGattCallback.

Link copied to clipboard

Closes GATT on first disconnect event. ClientBleGatt shouldn't be used after that.

Link copied to clipboard
val phy: BleGattPhy? = null

Only takes effect if autoConnect is set to false.