connectionState
An Observable which emits the current connection state.
The possible connection states are:
ConnectionState.Disconnected which is the state before calling connect, and after the connection has been lost or disconnect has been called.
ConnectionState.Connecting which signals that the API is currently in the process of connecting to a remote device (so connect has been called, but has not completed yet).
ConnectionState.Connected which signals that the API is currently successfully connected to a remote device. The ConnectionState.Connected.connectionType property defines the type of connection that is currently used to communicate. If the connection-type changes, a new ConnectionState item will be emitted from this observable (so the ConnectionState items themselves are immutable).
Scheduler: The returned Observable will operate on the IO Scheduler.
See the possible states / classes within ConnectionState for more documentation of when and how the state changes.