README.rst
1.. zephyr:code-sample:: bluetooth_bap_broadcast_assistant
2 :name: Basic Audio Profile (BAP) Broadcast Audio Assistant
3 :relevant-api: bluetooth bt_audio bt_bap bt_conn
4
5 Use BAP Broadcast Assistant functionality.
6
7Overview
8********
9
10Application demonstrating the BAP Broadcast Assistant functionality.
11
12The sample will automatically try to connect to a device in the BAP Scan Delegator
13role (advertising support for the Broadcast Audio Scan Service (BASS)).
14It will then search for a broadcast source and (if found) add the broadcast ID to
15the BAP Scan Delegator.
16
17Practical use of this sample requires a sink (e.g. the BAP Broadcast Audio Sink sample or
18a set of BAP Broadcast capable earbuds) and a source (e.g. the BAP Broadcast Audio
19Source sample).
20
21Check the :zephyr:code-sample-category:`bluetooth` samples for general information.
22
23Requirements
24************
25
26* BlueZ running on the host, or
27* A board with Bluetooth Low Energy 5.2 support
28* Broadcast Audio Source and Sink devices
29
30Building and Running
31********************
32
33The application will act as a broadcast assistant with optionally preconfigured
34filtering of broadcast sink and broadcast source names. By default, the application will
35search for and connect to the first broadcast audio sink found (advertising PACS and
36BASS UUIDs) and then search for and select the first broadcast audio source found
37(advertising a broadcast ID).
38
39Filter these by modifying the following configs:
40
41``CONFIG_SELECT_SINK_NAME``: Substring of BT name of the sink.
42
43and
44
45``CONFIG_SELECT_SOURCE_NAME``: Substring of BT name or broadcast name of the source.
46
47Building for an nrf52840dk
48--------------------------
49
50.. zephyr-app-commands::
51 :zephyr-app: samples/bluetooth/bap_broadcast_assistant/
52 :board: nrf52840dk/nrf52840
53 :goals: build
54