Function esp_idf_sys::wifi_prov_scheme_ble_set_random_addr
source ยท pub unsafe extern "C" fn wifi_prov_scheme_ble_set_random_addr(
rand_addr: *const u8,
) -> esp_err_t
Expand description
@brief Set Bluetooth Random address
This must be called before starting provisioning, i.e. before making a call to wifi_prov_mgr_start_provisioning().
This API can be used in cases where a new identity address is to be used during provisioning. This will result in this device being treated as a new device by remote devices.
@note This API will change the existing BD address for the device. The address once set will remain unchanged until BLE stack tear down happens when wifi_prov_mgr_deinit is invoked.
This API is only to be called to set random address. Re-invoking this API
after provisioning is started will have no effect.
@param[in] rand_addr The static random address to be set of length 6 bytes.
@return
- ESP_OK : Success
- ESP_ERR_INVALID_ARG : Null argument