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

◆ bt_conn_ctx_release()

void bt_conn_ctx_release ( struct bt_conn_ctx_lib ctx_lib,
void *  data 
)

#include <include/bluetooth/conn_ctx.h>

Release a connection context from the memory pool.

This function finds and releases a connection context in the memory pool. The link to find is identified by its context data.

This function should be used in conjunction with bt_conn_ctx_alloc, bt_conn_ctx_get, or bt_conn_ctx_get_by_id to ensure proper operation.

Parameters
ctx_libBluetooth connection context library instance.
dataContext data for the connection.