From 6e9078d60e585722bb95591f5a46566330708260 Mon Sep 17 00:00:00 2001 From: Hui Peng Date: Wed, 22 Mar 2023 00:37:34 -0700 Subject: [PATCH] Add implemenetation of HCI_PIN_Code_Request_Reply_Command --- bumble/hci.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/bumble/hci.py b/bumble/hci.py index 083da81..a8403b9 100644 --- a/bumble/hci.py +++ b/bumble/hci.py @@ -2097,6 +2097,24 @@ class HCI_Link_Key_Request_Negative_Reply_Command(HCI_Command): ''' +# ----------------------------------------------------------------------------- +@HCI_Command.command( + fields=[ + ('bd_addr', Address.parse_address), + ('pin_code_length', 1), + ('pin_code', '*'), + ], + return_parameters_fields=[ + ('status', STATUS_SPEC), + ('bd_addr', Address.parse_address), + ], +) +class HCI_PIN_Code_Request_Reply_Command(HCI_Command): + ''' + See Bluetooth spec @ 7.1.12 PIN Code Request Reply Command + ''' + + # ----------------------------------------------------------------------------- @HCI_Command.command( fields=[('bd_addr', Address.parse_address)],