Function bt_id_get

Source
pub unsafe extern "C" fn bt_id_get(
    addrs: *mut bt_addr_le_t,
    count: *mut usize,
)
Expand description

@brief Get the currently configured identity addresses.

Returns an array of the currently configured identity addresses. To make sure all available identity addresses can be retrieved, the number of elements in the @a addrs array should be CONFIG_BT_ID_MAX. The identity handle that some APIs expect (such as @ref bt_le_adv_param) is simply the index of the identity address in the @a addrs array.

If @a addrs is passed as NULL, then the returned @a count contains the count of all available identity addresses that can be retrieved with a subsequent call to this function with non-NULL @a addrs parameter.

@note Deleted identity addresses may show up as @ref BT_ADDR_LE_ANY in the returned array.

@param addrs Array where to store the configured identity addresses. @param count Should be initialized to the array size. Once the function returns it will contain the number of returned identity addresses.