esp_idf_hal::sys

Function esp_https_ota_abort

Source
pub unsafe extern "C" fn esp_https_ota_abort(
    https_ota_handle: *mut c_void,
) -> i32
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