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

..--

src/04-Jan-2025-8760

CMakeLists.txtD04-Jan-2025166 86

README.rstD04-Jan-2025844 2819

prj.confD04-Jan-202558 43

sample.yamlD04-Jan-2025335 1413

README.rst

1.. zephyr:code-sample:: ble_peripheral_nus
2   :name: Peripheral NUS
3   :relevant-api: bluetooth
4
5   Implement a simple echo server using the Nordic UART Service (NUS).
6
7Overview
8********
9
10This sample demonstrates the usage of the NUS service (Nordic UART Service) as a serial
11endpoint to exchange data. In this case, the sample assumes the data is UTF-8 encoded,
12but it may be binary data. Once the user connects to the device and subscribes to the TX
13characteristic, it will start receiving periodic notifications with "Hello World!\n".
14
15Requirements
16************
17
18* BlueZ running on the host, or
19* A board with Bluetooth LE support
20
21Building and Running
22********************
23
24This sample can be found under :zephyr_file:`samples/bluetooth/peripheral_nus` in the
25Zephyr tree.
26
27See :zephyr:code-sample-category:`bluetooth` samples for details.
28