Function esp_idf_sys::ble_hs_util_ensure_addr

source ยท
pub unsafe extern "C" fn ble_hs_util_ensure_addr(
    prefer_random: c_int,
) -> c_int
Expand description

Tries to configure the device with at least one Bluetooth address. Addresses are restored in a hardware-specific fashion.

@param prefer_random Whether to attempt to restore a random address before checking if a public address has already been configured.

@return 0 on success; BLE_HS_ENOADDR if the device does not have any available addresses. Other BLE host core code on error.