connect

suspend fun Flow<Device?>.connect(reconnectionSettings: ConnectionSettings.ReconnectionSettings? = null)

Attempts to connect to the Device from a Flow of Device When this method completes, the devices should be in a ConnectableDeviceState.Connected state

Return

true if connection was successful

Parameters

reconnectionSettings

the ConnectionSettings.ReconnectionSettings to use if the Device disconnects after connecting. If null the default will be used.