Instance Method

peripheralManager:didOpenL2CAPChannel:error:

Tells the delegate that the peripheral manager opened an L2CAP channel.

Declaration

- (void)peripheralManager:(CBPeripheralManager *)peripheral didOpenL2CAPChannel:(CBL2CAPChannel *)channel error:(NSError *)error;

Parameters

peripheral

The peripheral manager that opened the channel.

channel

The channel opened by the manager.

error

The error that occurred, or nil if no error occurred.

Discussion

The peripheral manager calls this method after you call publishL2CAPChannelWithEncryption:.

See Also

Using L2CAP Channels

- peripheralManager:didPublishL2CAPChannel:error:

Tells the delegate that the peripheral manager created a listener for incoming L2CAP channel connections.

- peripheralManager:didUnpublishL2CAPChannel:error:

Tells the delegate that the peripheral manager removed a published service from the local system.