Function esp_idf_sys::esp_https_ota_abort

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

@brief Clean-up HTTPS OTA Firmware upgrade and close HTTPS connection

This function closes the HTTP connection and frees the ESP HTTPS OTA context.

@note esp_https_ota_abort should not be called after calling esp_https_ota_finish

@param[in] https_ota_handle pointer to esp_https_ota_handle_t structure

@return

  • ESP_OK: Clean-up successful
  • ESP_ERR_INVALID_STATE: Invalid ESP HTTPS OTA state
  • ESP_FAIL: OTA not started
  • ESP_ERR_NOT_FOUND: OTA handle not found
  • ESP_ERR_INVALID_ARG: Invalid argument