Skip to content

Conversation

@barbibulle
Copy link
Collaborator

This allows setting shorter connection intervals with controllers that support the feature (introduced in spec version 6.2)

@barbibulle barbibulle requested a review from zxzxwu January 22, 2026 21:55
bumble/hci.py Outdated
frame_space_min: int = field(metadata=metadata(2))
frame_space_max: int = field(metadata=metadata(2))
phys: int = field(metadata=PhyBit.type_metadata(1))
spacing_types: int = field(metadata=SpacingType.type_metadata(1))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be SpacingType.type_metadata(2)?
image

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes!

)

if self.cis_enabled:
if self.cis_enabled and self.host.supports_command(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am thinking if we should have some warning if some configs cannot be fulfilled due to the lack of support in controller, but it will make the flow control a bit too long-winded here.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea. We'd have to think about how to make this non-intrusive. For now, the device config can specify a number of enabled flags, but that doesn't necessarily mean they're required. An app could enable a number of features, but still work if those are not present. We wouldn't want to warn in that case.
What may make sense is to have some checker function that allows the caller to check compatibiliyt/availability of certain features (like we do for example in auracast to check if perdiodic advertising is supported when attempting a scan command.

@barbibulle barbibulle merged commit 022323b into main Jan 24, 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