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

◆ bt_conn_ctx_get()

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

#include <include/bluetooth/conn_ctx.h>

Get the context data of a connection from the memory pool.

This function finds a connection's context data in the memory pool. The link to find is identified by the connection object.

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.