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
21This sample can be found under
22:zephyr_file:`samples/bluetooth/bap_broadcast_assistant` in the Zephyr tree.
23
24Check the :zephyr:code-sample-category:`bluetooth` samples for general information.
25
26Requirements
27************
28
29* BlueZ running on the host, or
30* A board with Bluetooth Low Energy 5.2 support
31* Broadcast Audio Source and Sink devices
32
33Building and Running
34********************
35
36The application will act as a broadcast assistant with optionally preconfigured
37filtering of broadcast sink and broadcast source names. By default, the application will
38search for and connect to the first broadcast audio sink found (advertising PACS and
39BASS UUIDs) and then search for and select the first broadcast audio source found
40(advertising a broadcast ID).
41
42Filter these by modifying the following configs:
43
44``CONFIG_SELECT_SINK_NAME``: Substring of BT name of the sink.
45
46and
47
48``CONFIG_SELECT_SOURCE_NAME``: Substring of BT name or broadcast name of the source.
49
50Building for an nrf52840dk
51--------------------------
52
53.. zephyr-app-commands::
54   :zephyr-app: samples/bluetooth/bap_broadcast_assistant/
55   :board: nrf52840dk/nrf52840
56   :goals: build
57