Skip to content

Conversation

@barbibulle
Copy link
Collaborator

Add support for proper typing of HCI commands return parameters.
HCI commands are split into two subtypes: synchronous commands, which expect a "command complete" event with a
status a return parameters, and asynchronous commands, which expect a "command status" event with a status, but not return parameters (automatica handling of async command completion will be done in a separate PR, for how they remain
manually-coded).
Synchronous command subclasses have an associated return_parameters_class class, which gets instantiated when the "command complete" event is received.
Sending of commands can still be done with the legacy send_command method, but it is now preferred to use send_sync_command and send_async_commands to get proper typing support.

@barbibulle barbibulle marked this pull request as ready for review January 17, 2026 21:39
@barbibulle barbibulle requested a review from zxzxwu January 17, 2026 21:39
@zxzxwu zxzxwu changed the title typing surrport for HCI commands return parameters typing support for HCI commands return parameters Jan 19, 2026
@barbibulle barbibulle merged commit 7e89c8a into main Jan 19, 2026
55 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants