786b9a0ad4
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> |
||
---|---|---|
.. | ||
src | ||
CMakeLists.txt | ||
prj.conf | ||
README.rst | ||
sample.yaml |
.. _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.