connect
Connects to the given device.
Parameters
peripheral
The peripheral to connect to.
Throws
If the central manager has been closed.
If Bluetooth is disabled or not available.
If the permission to connect to a peripheral is denied.
If the Peripheral wasn't acquired from this manager by scanning, ranging, or using getPeripheralsById method.