Instance Method

centralManager:didConnectPeripheral:

Invoked when a connection is successfully created with a peripheral.

Declaration

- (void)centralManager:(CBCentralManager *)central didConnectPeripheral:(CBPeripheral *)peripheral;

Parameters

central

The central manager providing this information.

peripheral

The peripheral that has been connected to the system.

Discussion

This method is invoked when a call to connectPeripheral:options: is successful. You typically implement this method to set the peripheral’s delegate and to discover its services.

See Also

Monitoring Connections with Peripherals

- centralManager:didDisconnectPeripheral:error:

Invoked when an existing connection with a peripheral is torn down.

- centralManager:didFailToConnectPeripheral:error:

Invoked when the central manager fails to create a connection with a peripheral.