Definition ota_service.h:17
UpdateState
Definition ota_service.h:20
uint32_t confirmationStartedMs_
Definition ota_service.h:66
void runUpdate(bool install)
Definition ota_service.cpp:527
bool checkForUpdate()
Definition ota_service.cpp:481
const char * runningVersion() const
Return the firmware version embedded in the active image.
Definition ota_service.cpp:685
bool selectOtherSlot()
Definition ota_service.cpp:708
bool installUpdate()
Definition ota_service.cpp:492
std::atomic< UpdateState > updateState_
Definition ota_service.h:67
std::atomic< bool > updateTaskActive_
Definition ota_service.h:68
static OtaService & instance()
Return the installed process-wide OTA service.
Definition ota_service.cpp:448
static void updateTask(void *context)
Definition ota_service.cpp:513
void tick()
Definition ota_service.cpp:466
const char * otherSlot() const
Return the alternate application slot name.
Definition ota_service.cpp:690
char updateVersion_[32]
Definition ota_service.h:70
const char * updateMessage() const
Return a concise status or failure message for the current update.
Definition ota_service.cpp:659
std::atomic< bool > resumeComponentsRequested_
Definition ota_service.h:69
void begin()
Definition ota_service.cpp:453
UpdateState updateState() const
Return the current update state.
Definition ota_service.h:40
const char * runningSlot() const
Return the active application slot name.
Definition ota_service.cpp:670
bool otherSlotBootable() const
Return whether the alternate image passes bootability validation.
Definition ota_service.cpp:704
const char * otherImageState() const
Return the bootloader state of the alternate image.
Definition ota_service.cpp:696
void resumeAfterCheck()
Definition ota_service.cpp:502
bool pendingConfirmation_
Definition ota_service.h:65
const char * updateVersion() const
Return the version being checked or installed.
Definition ota_service.h:42
const char * runningImageState() const
Return the bootloader state of the active image.
Definition ota_service.cpp:678
Definition application.h:10