zephyr/samples/bluetooth/central_otc
Lingao Meng 786b9a0ad4 Bluetooth: Host: Add const prefix for UUID
Add const prefix for service uuid and char uuid.

Since Service UUID and Char UUID should not change in the service
definition, they are most reasonably defined as rodata, also for
save some ram footprint.

The field `attr->user_data` type is `void *`, as this PR change
all Service UUID to rodata, so there must add (void *) to avoid warning.

Signed-off-by: Lingao Meng <menglingao@xiaomi.com>
2023-12-07 16:16:43 +00:00
..
src Bluetooth: Host: Add const prefix for UUID 2023-12-07 16:16:43 +00:00
CMakeLists.txt samples: bluetooth: adding central_otc sample 2022-08-31 10:39:33 +02:00
prj.conf Bluetooth: BT_OTS_OACP_CHECKSUM_SUPPORT implies CRC support 2023-08-18 08:52:16 +03:00
README.rst samples: Fixed typos 2023-08-24 15:44:33 +02:00
sample.yaml samples, tests: convert string-based twister lists to YAML lists 2023-05-10 09:52:37 +02:00

.. _central_otc:

Bluetooth: Central OTC
######################

Overview
********

Similar to the :ref:`Central <bluetooth_central>` sample, except that this
application specifically looks for the OTS (Object Transfer) GATT Service.
And this sample is to select object sequentially, to read metadata, to write data,
to read data, and to calculate checksum of selected objects.

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

* A board with BLE support and 4 buttons.

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

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