From 6f8444665966552b1aaeca0efaa8367a7f0f10bc Mon Sep 17 00:00:00 2001 From: Vinayak Kariappa Chettimada Date: Fri, 22 Apr 2022 07:21:49 +0530 Subject: [PATCH] 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 --- samples/bluetooth/iso_receive/src/main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/samples/bluetooth/iso_receive/src/main.c b/samples/bluetooth/iso_receive/src/main.c index 586fea29a79..010c286848d 100644 --- a/samples/bluetooth/iso_receive/src/main.c +++ b/samples/bluetooth/iso_receive/src/main.c @@ -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)); - printk("Incoming data channel %p len %u: %s (counter value %u)\n", - chan, buf->len, data_str, count); + printk("Incoming data channel %p flags 0x%x sn %u ts %u len %u: %s " + "(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)