[][src]Function esp_idf_bindgen::esp_ota_write_with_offset

pub unsafe extern "C" fn esp_ota_write_with_offset(
    handle: esp_ota_handle_t,
    data: *const c_void,
    size: size_t,
    offset: u32
) -> esp_err_t

@brief Write OTA update data to partition

This function can write data in non contiguous manner. If flash encryption is enabled, data should be 16 byte aligned.

@param handle Handle obtained from esp_ota_begin @param data Data buffer to write @param size Size of data buffer in bytes @param offset Offset in flash partition

@note While performing OTA, if the packets arrive out of order, esp_ota_write_with_offset() can be used to write data in non contiguous manner. Use of esp_ota_write_with_offset() in combination with esp_ota_write() is not recommended.

@return