1.. zephyr:code-sample:: bluetooth_bap_unicast_server
2   :name: Basic Audio Profile (BAP) Unicast Audio Server
3   :relevant-api: bluetooth bt_audio bt_bap bt_pacs
4
5   Use BAP Unicast Server functionality.
6
7Overview
8********
9
10Application demonstrating the BAP Unicast Server functionality.
11Starts advertising and awaits connection from a BAP Unicast Client.
12
13This sample can be found under
14:zephyr_file:`samples/bluetooth/bap_unicast_server` in the Zephyr tree.
15
16Check the :zephyr:code-sample-category:`bluetooth` samples for general information.
17
18Requirements
19************
20
21* BlueZ running on the host, or
22* A board with Bluetooth Low Energy 5.2 support
23
24Building and Running
25********************
26
27When building targeting an nrf52 series board with the Zephyr Bluetooth Controller,
28use ``-DEXTRA_CONF_FILE=overlay-bt_ll_sw_split.conf`` to enable the required ISO
29feature support.
30
31Building for an nrf52840dk
32--------------------------
33
34.. zephyr-app-commands::
35   :zephyr-app: samples/bluetooth/bap_unicast_server/
36   :board: nrf52840dk/nrf52840
37   :goals: build
38   :gen-args: -DEXTRA_CONF_FILE=overlay-bt_ll_sw_split.conf
39
40Building for an nrf5340dk
41-------------------------
42
43You can build both the application core image and an appropriate controller image for the network
44core with:
45
46.. zephyr-app-commands::
47   :zephyr-app: samples/bluetooth/bap_unicast_server/
48   :board: nrf5340dk/nrf5340/cpuapp
49   :goals: build
50   :west-args: --sysbuild
51
52If you prefer to only build the application core image, you can do so by doing instead:
53
54.. zephyr-app-commands::
55   :zephyr-app: samples/bluetooth/bap_unicast_server/
56   :board: nrf5340dk/nrf5340/cpuapp
57   :goals: build
58
59In that case you can pair this application core image with the
60:zephyr:code-sample:`bluetooth_hci_ipc` sample
61:zephyr_file:`samples/bluetooth/hci_ipc/nrf5340_cpunet_iso-bt_ll_sw_split.conf` configuration.
62
63Building for a simulated nrf52_bsim
64-----------------------------------
65
66Similarly to how you would for real HW, you can do:
67
68.. zephyr-app-commands::
69   :zephyr-app: samples/bluetooth/bap_unicast_server/
70   :board: nrf52_bsim
71   :goals: build
72   :gen-args: -DEXTRA_CONF_FILE=overlay-bt_ll_sw_split.conf
73
74Note this will produce a Linux executable in :file:`./build/zephyr/zephyr.exe`.
75For more information, check :ref:`this board documentation <nrf52_bsim>`.
76
77Building for a simulated nrf5340bsim
78------------------------------------
79
80.. zephyr-app-commands::
81   :zephyr-app: samples/bluetooth/bap_unicast_server/
82   :board: nrf5340bsim/nrf5340/cpuapp
83   :goals: build
84   :west-args: --sysbuild
85