Function esp_idf_sys::esp_https_ota_get_status_code

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

@brief This function returns the HTTP status code of the last HTTP response.

@note This API should be called only after esp_https_ota_begin() has been called. This can be used to check the HTTP status code of the OTA download process.

@param[in] https_ota_handle pointer to esp_https_ota_handle_t structure

@return

  • -1 On failure
  • HTTP status code