samples: Bluetooth: iso_receive: Print ISO information
Update the sample to print the ISO information like flags, sequence number and timestamp received in the ISO receive callback. Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
This commit is contained in:
parent
9ff0c5c93d
commit
6f84446659
1 changed files with 3 additions and 2 deletions
|
@ -221,8 +221,9 @@ static void iso_recv(struct bt_iso_chan *chan, const struct bt_iso_recv_info *in
|
||||||
}
|
}
|
||||||
|
|
||||||
str_len = bin2hex(buf->data, buf->len, data_str, sizeof(data_str));
|
str_len = bin2hex(buf->data, buf->len, data_str, sizeof(data_str));
|
||||||
printk("Incoming data channel %p len %u: %s (counter value %u)\n",
|
printk("Incoming data channel %p flags 0x%x sn %u ts %u len %u: %s "
|
||||||
chan, buf->len, data_str, count);
|
"(counter value %u)\n", chan, info->flags, info->sn, info->ts,
|
||||||
|
buf->len, data_str, count);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void iso_connected(struct bt_iso_chan *chan)
|
static void iso_connected(struct bt_iso_chan *chan)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue