samples: Bluetooth: Add broadcast sink data validation
Add validation of incoming ISO data for the broadcast sink sample. Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
This commit is contained in:
parent
54126ec4e5
commit
34c9587539
1 changed files with 10 additions and 0 deletions
|
@ -90,6 +90,16 @@ static void stream_recv_cb(struct bt_bap_stream *stream,
|
|||
{
|
||||
static uint32_t recv_cnt;
|
||||
|
||||
if (info->flags & BT_ISO_FLAGS_ERROR) {
|
||||
printk("ISO receive error\n");
|
||||
return;
|
||||
}
|
||||
|
||||
if (info->flags & BT_ISO_FLAGS_LOST) {
|
||||
printk("ISO receive lost\n");
|
||||
return;
|
||||
}
|
||||
|
||||
recv_cnt++;
|
||||
if ((recv_cnt % 1000U) == 0U) {
|
||||
printk("Received %u total ISO packets\n", recv_cnt);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue