Function esp_idf_sys::esp_ble_get_bond_device_list
source ยท pub unsafe extern "C" fn esp_ble_get_bond_device_list(
dev_num: *mut c_int,
dev_list: *mut esp_ble_bond_dev_t,
) -> esp_err_t
Expand description
@brief Get the device from the security database list of peer device. It will return the device bonded information immediately. @param[inout] dev_num: Indicate the dev_list array(buffer) size as input. If dev_num is large enough, it means the actual number as output. Suggest that dev_num value equal to esp_ble_get_bond_device_num().
@param[out] dev_list: an array(buffer) of esp_ble_bond_dev_t
type. Use for storing the bonded devices address.
The dev_list should be allocated by who call this API.
@return - ESP_OK : success
- other : failed