esp32-s3_fota_test_wifi/components/fota_manager/fota_manager.h

23 lines
448 B
C

#pragma once
#include <stdint.h>
typedef enum
{
FOTA_OK = 0,
FOTA_ERR_OPEN,
FOTA_ERR_OTA_BEGIN,
FOTA_ERR_OTA_WRITE,
FOTA_ERR_OTA_END,
FOTA_ERR_SET_BOOT,
FOTA_ERR_NO_UPDATE_PART
} fota_err_t;
/**
* @brief Apply FOTA from a firmware file stored on filesystem.
*
* @param firmware_path Path to .bin file (e.g. "/spiffs/espFota.bin")
* @return fota_err_t
*/
fota_err_t fota_manager_apply(const char *firmware_path);