Companion

object Companion

Functions

Link copied to clipboard
@RequiresPermission(value = "android.permission.BLUETOOTH_CONNECT")
suspend fun connect(context: Context, macAddress: String, scope: CoroutineScope, options: BleGattConnectOptions = BleGattConnectOptions()): ClientBleGatt
@RequiresPermission(value = "android.permission.BLUETOOTH_CONNECT")
suspend fun connect(context: Context, device: ServerDevice, scope: CoroutineScope, options: BleGattConnectOptions = BleGattConnectOptions()): ClientBleGatt

Connects to the specified device. Device is provided using mac address.