GattServerConnectFlow


interface GattServerConnectFlow : Flow


A flow of GattServerConnectRequest returned by calling BluetoothLe.openGattServer.

Summary

Public functions

suspend Unit

Updates the services provided by the opened GATT server.

Inherited functions

From kotlinx.coroutines.flow.Flow

Public functions

updateServices

Added in 1.0.0-alpha02
suspend fun updateServices(services: List<GattService>): Unit

Updates the services provided by the opened GATT server.

Parameters
services: List<GattService>

a new list of services that should be provided

Throws
kotlin.IllegalStateException

if it's called before the server is opened.