esp_idf_sys

Function ble_l2cap_get_conn_handle

Source
pub unsafe extern "C" fn ble_l2cap_get_conn_handle(
    chan: *mut ble_l2cap_chan,
) -> u16
Expand description

@brief Get the connection handle associated with an L2CAP channel.

This function retrieves the connection handle associated with the specified L2CAP channel.

@param chan A pointer to the L2CAP channel structure.

@return 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.