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

◆ bt_ras_rreq_alloc_and_assign_handles()

int bt_ras_rreq_alloc_and_assign_handles ( struct bt_gatt_dm * dm,
struct bt_conn * conn )

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

Allocate a RREQ context and assign GATT handles. Takes a reference to the connection.

Note
RREQ context will be freed automatically on disconnect.
Parameters
[in]dmDiscovery Object.
[in]connConnection Object.
Return values
0If the operation was successful. Otherwise, a negative error code is returned. No RREQ context will be allocated if there is an error.