Companion

object Companion

Functions

Link copied to clipboard
@RequiresPermission(value = "android.permission.BLUETOOTH_CONNECT")
suspend fun create(context: Context, scope: CoroutineScope, vararg config: ServerBleGattServiceConfig, mock: MockServerDevice? = null, options: ServerConnectionOption = ServerConnectionOption()): ServerBleGatt

Declares and starts server based on config. It can be either real BLE server or mocked variant which run locally on a device.