Skip to content

Conversation

@zxzxwu
Copy link
Collaborator

@zxzxwu zxzxwu commented Jul 2, 2025

No description provided.

@zxzxwu zxzxwu force-pushed the l2cap branch 2 times, most recently from 09475d9 to 3dd79b6 Compare July 2, 2025 04:26
@zxzxwu zxzxwu changed the title Migrate L2CAP packets to dataclasses [WIP] Migrate L2CAP packets to dataclasses Jul 2, 2025
@zxzxwu zxzxwu force-pushed the l2cap branch 2 times, most recently from ce8323b to d21b9c5 Compare July 4, 2025 04:37
@zxzxwu zxzxwu marked this pull request as draft July 4, 2025 04:48
@zxzxwu zxzxwu changed the title [WIP] Migrate L2CAP packets to dataclasses Migrate L2CAP packets to dataclasses Jul 19, 2025
@zxzxwu zxzxwu marked this pull request as ready for review July 19, 2025 14:01
bumble/l2cap.py Outdated
fields: ClassVar[hci.Fields] = ()
code: int = dataclasses.field(default=0, init=False)
name: str = dataclasses.field(default='', init=False)
_parameters: Optional[bytes] = dataclasses.field(default=None, init=False)
Copy link
Collaborator

Choose a reason for hiding this comment

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

This should be called data rather than parameters, as per the spec (parameters is really a command/event concept).

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done, renamed parameters -> data

@zxzxwu zxzxwu merged commit 1a81c5d into google:main Jul 20, 2025
57 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