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