Skip to content

Commit 1d1cd57

Browse files
Thalleycfriedt
authored andcommitted
Bluetooth: sample: Update iso_broadcast to use new ISO API
Update the sample to use the new ISO API. Signed-off-by: Emil Gydesen <[email protected]>
1 parent 7609185 commit 1d1cd57

File tree

1 file changed

+4
-4
lines changed
  • samples/bluetooth/iso_broadcast/src

1 file changed

+4
-4
lines changed

samples/bluetooth/iso_broadcast/src/main.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,13 @@ static struct bt_iso_chan_ops iso_ops = {
3636
};
3737

3838
static struct bt_iso_chan_io_qos iso_tx_qos = {
39-
.interval = 10000, /* in microseconds */
40-
.latency = 10, /* milliseconds */
4139
.sdu = 502, /* bytes */
4240
.rtn = 2,
4341
.phy = BT_GAP_LE_PHY_2M,
4442
};
4543

4644
static struct bt_iso_chan_qos bis_iso_qos = {
4745
.tx = &iso_tx_qos,
48-
.packing = 0, /* 0 - sequential, 1 - interleaved */
49-
.framing = 0, /* 0 - unframed, 1 - framed */
5046
};
5147

5248
static struct bt_iso_chan bis_iso_chan = {
@@ -59,6 +55,10 @@ static struct bt_iso_chan *bis[BIS_ISO_CHAN_COUNT] = { &bis_iso_chan };
5955
static struct bt_iso_big_create_param big_create_param = {
6056
.num_bis = BIS_ISO_CHAN_COUNT,
6157
.bis_channels = bis,
58+
.interval = 10000, /* in microseconds */
59+
.latency = 10, /* milliseconds */
60+
.packing = 0, /* 0 - sequential, 1 - interleaved */
61+
.framing = 0, /* 0 - unframed, 1 - framed */
6262
};
6363

6464
void main(void)

0 commit comments

Comments
 (0)