connect
Initiates a connection to the Bluetooth device.
This method transitions the state machine from ConnectionState.Disconnected to ConnectionState.Connecting. If the connection is successful, the state will automatically progress through ConnectionState.Connected and then to ConnectionState.Ready after service discovery completes.
If already connected or connecting, this method logs a warning and returns without taking any action.
The connection attempt uses autoConnect = false, meaning it will try to connect immediately rather than waiting for the device to become available.
See also
Throws
if Bluetooth permissions are not granted.