Function esp_idf_sys::esp_https_ota_get_image_size

source ยท
pub unsafe extern "C" fn esp_https_ota_get_image_size(
    https_ota_handle: esp_https_ota_handle_t,
) -> c_int
Expand description

@brief This function returns OTA image total size.

@note This API should be called after esp_https_ota_begin() has been already called. This can be used to create some sort of progress indication (in combination with esp_https_ota_get_image_len_read())

@param[in] https_ota_handle pointer to esp_https_ota_handle_t structure

@return

  • -1 On failure or chunked encoding
  • total bytes of image