Skip to content

Problems in understanding GTBS - TBS relation in subsys/bluetooth/audio/tbs.c #71883

Closed Answered by Thalley
lukas-fwdev asked this question in Q&A
Discussion options

You must be logged in to vote

GTBS is statically registered via

BT_GATT_SERVICE_DEFINE(gtbs_svc, BT_TBS_SERVICE_DEFINE(BT_UUID_GTBS, &gtbs_inst.inst));

when CONFIG_BT_GTBS=y.

The other TBS uses bt_gatt_service_register because at the time of the implementation, we did not have a way of statically registering multiple services (we do now, but haven't been implemented).

It's a moot point though, because we want to move towards dynamically registering them: #41738

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@lukas-fwdev
Comment options

Answer selected by lukas-fwdev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants