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

◆ bt_conn_ctx_alloc()

void * bt_conn_ctx_alloc ( struct bt_conn_ctx_lib ctx_lib,
struct bt_conn *  conn 
)

#include <include/bluetooth/conn_ctx.h>

Allocate memory for the connection context data.

This function can set the pointer to the allocated memory.

This function should be used in conjunction with bt_conn_ctx_release to ensure proper operation.

Parameters
ctx_libBluetooth connection context library instance.
connBluetooth connection.
Returns
Pointer to the connection context data if the operation was successful. Otherwise NULL.