• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

src/29-Dec-2025-12990

CMakeLists.txtD29-Dec-2025205 107

README.rstD29-Dec-2025883 2718

prj.confD29-Dec-2025227 109

sample.yamlD29-Dec-2025374 1615

README.rst

1.. zephyr:code-sample:: ble_peripheral_ans
2   :name: Peripheral ANS
3   :relevant-api: bluetooth
4
5   Send notification using Alert Notification Service (ANS).
6
7Overview
8********
9
10This sample demonstrates the usage of ANS by acting as a peripheral periodically sending
11notifications to the connected remote device.
12
13Requirements
14************
15
16* A board with Bluetooth LE support
17* Smartphone with Bluetooth LE app (ADI Attach, nRF Connect, etc.) or dedicated Bluetooth LE sniffer
18
19Building and Running
20********************
21
22To start receiving alerts over the connection, refer to
23`GATT Specification Supplement <https://btprodspecificationrefs.blob.core.windows.net/gatt-specification-supplement/GATT_Specification_Supplement.pdf>`_
24section 3.12 for byte array to enable/disable notifications and control the service.
25
26See :zephyr:code-sample-category:`bluetooth` samples for details.
27