Establishes a local connection to a peripheral.
- iOS 5.0+
- macOS 10.7+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 4.0+
- Core Bluetooth
The peripheral to which the central is attempting to connect.
A dictionary to customize the behavior of the connection. For available options, see Peripheral Connection Options.
After successfully establishing a local connection to a peripheral, the central manager object calls the
central method of its delegate object. If the connection attempt fails, the central manager object calls the
central method of its delegate object instead. Attempts to connect to a peripheral don’t time out. To explicitly cancel a pending connection to a peripheral, call the
cancel method. Deallocating
peripheral also implicitly calls