Skip to content

Commit

Permalink
Bluetooth: TBS: Add support for long read with dirty bit
Browse files Browse the repository at this point in the history
The TBS spec states that if a value is changed during a
long read procedure, then the server shall reject
read requests with offset != 0 with a specific TBS GATT
error until the value has been read from the beginning again
(i.e. with offset = 0).

Signed-off-by: Emil Gydesen <[email protected]>
  • Loading branch information
Thalley committed Feb 10, 2025
1 parent c97c831 commit 4ce06d9
Show file tree
Hide file tree
Showing 2 changed files with 236 additions and 63 deletions.
5 changes: 5 additions & 0 deletions include/zephyr/bluetooth/audio/tbs.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@
extern "C" {
#endif

/** A characteristic value has changed while a Read Long Value Characteristic sub-procedure is in
* progress
*/
#define BT_TBS_ERR_VAL_CHANGED 0x80

/**
* @name Call States
* @{
Expand Down
Loading

0 comments on commit 4ce06d9

Please sign in to comment.