nRF Connect SDK API 2.8.99
|
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.
[in] | latency | Latency service instance. |
[in] | cb | Callbacks. |
0 | If 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. |