Instance Method

peripheralManager:didPublishL2CAPChannel:error:

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

Declaration

- (void)peripheralManager:(CBPeripheralManager *)peripheral didPublishL2CAPChannel:(CBL2CAPPSM)PSM error:(NSError *)error;

Parameters

peripheral

The peripheral manager that published the channel.

PSM

The Protocol/Service Multiplexer (PSM) of the published channel.

error

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

Discussion

The peripheral manager calls this method after you call publishL2CAPChannelWithEncryption:. The PSM parameter contains the PSM assigned for the published channel.

See Also

Using L2CAP Channels

- peripheralManager:didUnpublishL2CAPChannel:error:

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

- peripheralManager:didOpenL2CAPChannel:error:

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