Problems in understanding GTBS - TBS relation in subsys/bluetooth/audio/tbs.c #71883
-
Hi community, I am currently trying to understand how the Generic TBS and TBS instances are handled in the implementation, especially how the init is done in 'subsys/bluetooth/audio/tbs.c' bt_tbs_init() function. There I can see that bt_gatt_service_register() is only done on the tbs instances but not for gtbs, right? I would like to know if this is by intention or a bug? Any help understanding this deeper is very much appreciated. Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
cc @Thalley |
Beta Was this translation helpful? Give feedback.
-
GTBS is statically registered via BT_GATT_SERVICE_DEFINE(gtbs_svc, BT_TBS_SERVICE_DEFINE(BT_UUID_GTBS, >bs_inst.inst)); when The other TBS uses It's a moot point though, because we want to move towards dynamically registering them: #41738 |
Beta Was this translation helpful? Give feedback.
GTBS is statically registered via
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