Contents

peripheralManager(_:didUnpublishL2CAPChannel:error:)

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

Declaration

optional func peripheralManager(_ peripheral: CBPeripheralManager, didUnpublishL2CAPChannel PSM: CBL2CAPPSM, error: (any Error)?)

Parameters

  • peripheral:

    The peripheral manager that stopped publishing.

  • PSM:

    The Protocol/Service Multiplexer (PSM) of the channel that was unpublished.

  • error:

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

Discussion

The peripheral manager calls this method after you call unpublishL2CAPChannel(_:).

See Also

Using L2CAP Channels