Skip to content

Feature - add <Coordinated Set Name> characteristic to csip.py - #977

Open
markusjellitsch wants to merge 3 commits into
google:mainfrom
markusjellitsch:feature/csis-set-name
Open

Feature - add <Coordinated Set Name> characteristic to csip.py#977
markusjellitsch wants to merge 3 commits into
google:mainfrom
markusjellitsch:feature/csis-set-name

Conversation

@markusjellitsch

@markusjellitsch markusjellitsch commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Recently, the Bluetooth SIG adopted CSIS (Coordinated Set Identification Service) v1.1, which introduces a
new optional characteristic: Coordinated Set Name (UUID 0x2C1A). This PR adds the characteristic to csip,py. Moreover, tests have been added in test_csip.py

According to Spec.:

The Coordinated Set Name characteristic shall be the name of the Coordinated Set. The characteristic value is a UTF-8 string represented by a minimum of 0 octets and a maximum of 128 octets.

Comment thread bumble/profiles/csip.py Outdated
coordinated_set_size: gatt_client.CharacteristicProxy[bytes] | None = None
set_member_lock: gatt_client.CharacteristicProxy[bytes] | None = None
set_member_rank: gatt_client.CharacteristicProxy[bytes] | None = None
coordinated_set_name: gatt_client.CharacteristicProxy[bytes] | None = None

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

It would be even more convenient to use an adapter here, so that string decoding happens automatically. Use a UTF8CharacteristicProxyAdapter.
(see the audio_input_description charactertistic from aics.py for an example).
The adapter isn't really needed on the server side, since that value is static, so the conversion to bytes might as well be done inline in the constructor, like you have here, but on the client side, it's dynamic.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

agree...this makes sense.
I have updated the client (and test) to now use the UTF8CharacteristicProxyAdapter.

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