state

abstract val state: StateFlow<State>

Provides a conflated Flow of the Peripheral's State.

After connect is called, the state will typically transition through the following states:

            connect()
:
v
.----------------------.
| Connecting.Bluetooth |
'----------------------'
|
v
.---------------------.
| Connecting.Services |
'---------------------'
|
v
.---------------------. .-----------.
| Connecting.Observes | ---> | Connected |
'---------------------' '-----------'
:
disconnect() or
connection drop
:
v
.---------------. .--------------.
| Disconnecting | ----> | Disconnected |
'---------------' '--------------'