nRF Connect SDK API 3.3.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 instance.

Marks the instance as initialized and stores the given callbacks.

Note
The GATT service is defined and registered statically at compile time.
Parameters
[in]latencyLatency service instance.
[in]cbStruct containing pointers to callback functions. Can be NULL if no callbacks are defined.
Return values
0If the operation was successful. Otherwise, a negative error code is returned.
-EINVALInput parameters are invalid.
-EALREADYLatency service has already been initialized.