mirror of
https://github.com/google/bumble.git
synced 2026-05-06 03:38:01 +00:00
device: handle HCI passkey notification event
This commit is contained in:
@@ -2159,6 +2159,15 @@ class Device(CompositeEventEmitter):
|
||||
HCI_User_Passkey_Request_Negative_Reply_Command(bd_addr=connection.peer_address)
|
||||
)
|
||||
|
||||
# [Classic only]
|
||||
@host_event_handler
|
||||
@with_connection_from_address
|
||||
def on_authentication_user_passkey_notification(self, connection, passkey):
|
||||
# Ask what the pairing config should be for this connection
|
||||
pairing_config = self.pairing_config_factory(connection)
|
||||
|
||||
asyncio.create_task(pairing_config.delegate.display_number(passkey))
|
||||
|
||||
# [Classic only]
|
||||
@host_event_handler
|
||||
@try_with_connection_from_address
|
||||
|
||||
Reference in New Issue
Block a user