esp_bt_gap_get_bond_device_list() function
Get the device from the security database list of peer device. It will return the device bonded information immediately.
Arguments
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().
dev_list
an array(buffer) of `esp_bd_addr_t` type. Use for storing the bonded devices address. The dev_list should be allocated by who call this API.
Return value
- ESP_OK : Succeed - ESP_ERR_INVALID_STATE: if bluetooth stack is not yet enabled - ESP_FAIL: others