nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches

◆ bt_latency_init()

int bt_latency_init ( struct bt_latency * latency,
const struct bt_latency_cb * cb )

#include <include/bluetooth/services/latency.h>

Initialize the GATT latency service.

Parameters
[in]latencyLatency service instance.
[in]cbCallbacks.
Return values
0If the operation was successful. Otherwise, a negative error code is returned.
(-EINVAL)Special error code used when the input parameters are invalid.
(-EALREADY)Special error code used when the latency service has been initialed.