1.6.3.1 SYS_OTA_STATES Enum
C
typedef enum {
/* Service's state machine's initial state. */
SYS_OTA_REGWIFISRVCALLBCK = 0,
/* Wait for network connection */
SYS_OTA_WAITFOR_NETWORK_CONNECTION,
/*Wait for OTA core to be idle*/
SYS_OTA_WAITFOR_OTAIDLE,
/*Registering OTA callback*/
SYS_OTA_REGOTACALLBCK,
/*To check if OTA auto update is enabled by user*/
SYS_OTA_AUTO_CONFIGURATION_CHECK,
/*Check update availability with OTA server*/
SYS_OTA_SERVER_UPDATE_CHECK,
/*Waiting for timer , if OTA is enabled for periodic update check by user*/
SYS_OTA_WAIT_FOR_OTA_TIMER_TRIGGER,
/*Check update availability with OTA server, if OTA auto update is enabled by user*/
SYS_OTA_AUTO_UPDATE_CHECK,
/*Trigger OTA*/
SYS_OTA_TRIGGER_OTA,
/*Wait for OTA complete*/
SYS_OTA_WAIT_FOR_OTA_COMPLETE,
/*To erase image from External File system*/
SYS_OTA_ERASE_IMAGE,
/*To trigger factory reset*/
SYS_OTA_FACTORY_RESET,
/*To trigger rollback*/
SYS_OTA_ROLLBACK,
/*to update user about current service state*/
SYS_OTA_UPDATE_USER,
/*For resetting system if auto reset is enabled by user*/
SYS_OTA_AUTORESET,
/*For resetting system on user trigger*/
SYS_OTA_SYSTEM_RESET,
/*Service Idle state*/
SYS_OTA_STATE_IDLE,
/*Init state for update check*/
SYS_OTA_UPDATE_CHECK_INIT,
/*Connecting to server while checking update availability*/
SYS_OTA_UPDATE_CHECK_CNCT_TO_SRVR,
/*Reading JSON after download*/
SYS_OTA_UPDATE_CHECK_READ_JSON,
/*Checking JSON content for proper value and mandatory fields */
SYS_OTA_UPDATE_CHECK_JSON_CONTENT,
/*Complete of OTA update check*/
SYS_OTA_UPDATE_CHECK_DONE,
/*update check trigger to check update, manually using APIs */
SYS_OTA_SERVER_UPDATE_CHECK_TRIGGER,
/* TODO: Define states used by the application state machine. */
} SYS_OTA_STATES;
Summary
Application states enumeration
Description
This enumeration defines the valid application states. These states determine the behavior of the application at various times.