zephyr/samples/bluetooth/central_gatt_write
Jonathan Rico b83b9bede3 Bluetooth: ATT: call-back on buffer destroy
This is just as arbitrary as what was before, but simpler.

Before this change, the callback were invoked upon receiving the num
complete packets event.
This did not necessarily work with all spec-compliant controllers.

Now the callback is invoked as soon as the lower layer destroys the
buffer. ATT shouldn't care whether L2CAP sends it over RFC1149 or
something else after that point.

Signed-off-by: Jonathan Rico <jonathan.rico@nordicsemi.no>
Co-authored-by: Aleksander Wasaznik <aleksander.wasaznik@nordicsemi.no>
2023-12-15 17:14:56 +02:00
..
src Bluetooth: ATT: call-back on buffer destroy 2023-12-15 17:14:56 +02:00
CMakeLists.txt
prj.conf Bluetooth: Samples: Remove usage of BT_DEBUG_LOG 2023-06-07 13:56:55 -04:00
README.rst
sample.yaml samples, tests: convert string-based twister lists to YAML lists 2023-05-10 09:52:37 +02:00

.. _bluetooth_central_gatt_write:

Bluetooth: Central / GATT Write
###############################

Overview
********

Similar to the :ref:`Central <bluetooth_central>` sample, except that this
application use GATT Write Without Response.

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/central_gatt_write`
in the Zephyr tree.

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