Remove depreacated L2CAP APIs

This commit is contained in:
Josh Wu
2025-08-27 14:15:08 +08:00
parent 8bda7d2212
commit 6091e6365d
4 changed files with 19 additions and 109 deletions

View File

@@ -1147,7 +1147,9 @@ class Protocol(utils.EventEmitter):
A 'connection' event will be emitted when a connection is made, and a 'start'
event will be emitted when the protocol is ready to be used on that connection.
"""
device.register_l2cap_server(avctp.AVCTP_PSM, self._on_avctp_connection)
device.create_l2cap_server(
l2cap.ClassicChannelSpec(avctp.AVCTP_PSM), self._on_avctp_connection
)
async def connect(self, connection: Connection) -> None:
"""