publishL2CAPChannel(withEncryption:)
Creates a listener for incoming L2CAP channel connections.
Declaration
func publishL2CAPChannel(withEncryption encryptionRequired: Bool)Parameters
Discussion
The system determines an unused Protocol and Service Multiplexer (PSM) at the time of publishing, and provides it to your app with peripheralManager(_:didPublishL2CAPChannel:error:). L2CAP channels aren’t discoverable by themselves, so it’s the app’s responsibility to handle PSM discovery on the client.