Connected
Connected signals that there is an active connection to the remote device (initiated using SOCommOutsideAPI.connect).
The immutable connectionType field signals which type of connection is currently active. So in the event of an internal switch to WIFI, a new Connected state will be published with the connectionType set to ConnectionType.WIFI. If the SDK internally switched back to BLE, then after the WIFI connection has been teared down, a new state will be published with the connectionType set to ConnectionType.BLE again.
So there is no intermediate state when switching from ConnectionType.BLE to ConnectionType.WIFI, but the class Connected will be published again with the new connectionType.
Parameters
The type of connection ConnectionType.BLE or ConnectionType.WIFI which is currently active (BLE is always active if WIFI is active, too). This field is immutable, which means that if the connection type changes, a new ConnectionState will be published by SOCommOutsideAPI.connectionState.