From b758825164108249da5a59a843dc31c603d58e53 Mon Sep 17 00:00:00 2001 From: Gilles Boccon-Gibod Date: Sat, 22 Jul 2023 13:04:39 -0700 Subject: [PATCH] add flow control command --- bumble/controller.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/bumble/controller.py b/bumble/controller.py index 9dd14dc..688fcd7 100644 --- a/bumble/controller.py +++ b/bumble/controller.py @@ -825,6 +825,15 @@ class Controller: ret = HCI_INVALID_HCI_COMMAND_PARAMETERS_ERROR return bytes([ret]) + def on_hci_set_controller_to_host_flow_control_command(self, _command): + ''' + See Bluetooth spec Vol 4, Part E - 7.3.38 Set Controller To Host Flow Control + Command + ''' + # For now we just accept the command but ignore the values. + # TODO: respect the passed in values. + return bytes([HCI_SUCCESS]) + def on_hci_host_buffer_size_command(self, _command): ''' See Bluetooth spec Vol 4, Part E - 7.3.39 Host Buffer Size Command