public class esp_ota_ops extends Object
esp_ota_ops.h
C header file.
See WARNING.txt.
Modifier and Type | Field and Description |
---|---|
static int |
OTA_SIZE_UNKNOWN
See
#define OTA_SIZE_UNKNOWN . |
Constructor and Description |
---|
esp_ota_ops() |
Modifier and Type | Method and Description |
---|---|
static int |
esp_ota_begin(int partition,
int image_size)
See
esp_ota_begin C function. |
static int |
esp_ota_end()
See
esp_ota_end C function. |
static int |
esp_ota_get_boot_partition()
See
esp_ota_get_boot_partition C function. |
static int |
esp_ota_get_next_update_partition(int start_from)
See
esp_ota_get_next_update_partition C function. |
static int |
esp_ota_get_running_partition()
See
esp_ota_get_running_partition C function. |
static int |
esp_ota_set_boot_partition(int partition)
See
esp_ota_set_boot_partition C function. |
static int |
esp_ota_write(byte[] data,
int offset,
int size)
See
esp_ota_write C function. |
public static final int OTA_SIZE_UNKNOWN
#define OTA_SIZE_UNKNOWN
.public static int esp_ota_begin(int partition, int image_size)
esp_ota_begin
C function. Parameter out_handle
is managed in C.partition
- const esp_partition_t*
image_size
- size_t
esp_err_t
public static int esp_ota_end()
esp_ota_end
C function. Parameter handle
is managed in C.esp_err_t
public static int esp_ota_get_boot_partition()
esp_ota_get_boot_partition
C function.const esp_partition_t*
public static int esp_ota_get_next_update_partition(int start_from)
esp_ota_get_next_update_partition
C function.start_from
- const esp_partition_t *
const esp_partition_t*
public static int esp_ota_get_running_partition()
esp_ota_get_running_partition
C function.const esp_partition_t*
public static int esp_ota_set_boot_partition(int partition)
esp_ota_set_boot_partition
C function.partition
- const esp_partition_t*
esp_err_t
public static int esp_ota_write(byte[] data, int offset, int size)
esp_ota_write
C function. Parameter handle
is managed in C.data
- const void*
offset
- offset in data buffersize
- size_t
esp_err_t