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

◆ bt_throughput_init()

int bt_throughput_init ( struct bt_throughput * throughput,
const struct bt_throughput_cb * cb )

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

Initialize the GATT Throughput Service instance.

Initializes the instance with the given callbacks.

Note
The GATT service is defined and registered statically at compile time.
Parameters
[in]throughputThroughput 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.