mirror of
https://github.com/google/bumble.git
synced 2026-06-16 09:52:27 +00:00
Allow register HCI packets with custom names
This commit is contained in:
@@ -238,6 +238,15 @@ def test_HCI_Command():
|
||||
command = hci.HCI_Command(op_code=0x5566, parameters=bytes.fromhex('AABBCC'))
|
||||
basic_check(command)
|
||||
|
||||
@hci.HCI_Command.command
|
||||
class CustomCommand(hci.HCI_Command):
|
||||
op_code = 0x7788
|
||||
name = 'Custom Command'
|
||||
|
||||
basic_check(CustomCommand())
|
||||
assert CustomCommand().op_code == 0x7788
|
||||
assert CustomCommand().name == 'Custom Command'
|
||||
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
@pytest.mark.parametrize(
|
||||
|
||||
Reference in New Issue
Block a user