GATT Latency Client

You can use the Latency Client to interact with a connected peer that is running the Latency service with the GATT Latency Service. It writes data to the Latency characteristic and waits for a response to count the time spent of a GATT Write operation.

Latency Characteristic

To request latency data from the Latency Characteristic, use the bt_latency_request() function. The request sending procedure is asynchronous, so the request data to be sent must remain valid until a dedicated callback notifies you that the write request has been completed.

API documentation

Header file: include/bluetooth/services/latency_client.h
Source file: subsys/bluetooth/services/latency_client.c
Bluetooth LE GATT Latency Client API