zephyr/samples/bluetooth/peripheral_ots
Abe Kohandel 190848177e bluetooth: ots: Enable testing with assert
Fix compilation and logic issues to allow testing OTS functionality with
assert enabled.

The compilation fixes are simple and do not require an explanation.

The assertion in bt_ots_dir_list_init was logically reversed. Its
purpose is to ensure the directory list is not already initialized
and as such should assert that the dir_list is not set (i.e. is NULL).

Signed-off-by: Abe Kohandel <abe.kohandel@gmail.com>
2021-10-21 11:21:13 -04:00
..
src samples: conn_cb replace to const zsector 2021-08-11 13:42:28 +02:00
CMakeLists.txt cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
prj.conf bluetooth: ots: Enable testing with assert 2021-10-21 11:21:13 -04:00
README.rst
sample.yaml

.. _peripheral_ots:

Bluetooth: Peripheral OTS
#########################

Overview
********

Similar to the :ref:`Peripheral <ble_peripheral>` sample, except that this
application specifically exposes the OTS (Object Transfer) GATT Service.


Requirements
************

* BlueZ running on the host, or
* A board with BLE support

Building and Running
********************
This sample can be found under :zephyr_file:`samples/bluetooth/peripheral_ots` in the
Zephyr tree.

See :ref:`bluetooth samples section <bluetooth-samples>` for details.