connect
Makes a connection to the peripheral.
This method may be called multiple times in case of a retry (when autoConnect is false).
Parameters
autoConnect
True to use auto connect feature, false to use direct connection.
preferredPhy
The preferred PHYs for connection.
Throws
If BLUETOOTH_CONNECT permission is denied.