ble_l2cap_get_conn_handle() function
Get the connection handle associated with an L2CAP channel. This function retrieves the connection handle associated with the specified L2CAP channel.
Arguments
chan
A pointer to the L2CAP channel structure.
Return value
The connection handle associated with the L2CAP channel on success; A Bluetooth Host Error Code on failure: BLE_HS_CONN_HANDLE_NONE: if the provided channel pointer is NULL.