Connected

data class Connected(val scope: CoroutineScope) : State

Peripheral is ready (i.e. has connected, discovered services and wired up observers).

Constructors

Link copied to clipboard
constructor(scope: CoroutineScope)

Properties

Link copied to clipboard
val scope: CoroutineScope

Connection scope that can be used to launch coroutines, and is cancelled upon connection loss, disconnect or closure. The CoroutineScope is a supervisor scope, meaning any failures in launched coroutines will not fail other launched coroutines nor cause a disconnect.

Functions

Link copied to clipboard
open override fun toString(): String