7#ifndef SOTA_ENGINE_PRIV_H
8#define SOTA_ENGINE_PRIV_H
19 uint32_t build,
size_t done,
size_t total);
23 const char *deployment, uint32_t build);
What the engine tells the application: events, log lines, and a wake-up when the confirm timeout fire...
sota_event_id_t
In the order of simpleota_event_id_t, so the API layer can pass them through.
Definition sota_app.h:20
The update engine both clients run: boot validation, check-ins, applying an update,...
void sota_engine_clear_offer(sota_engine_t *e)
Forget the current offer and free its URL.
void sota_engine_reload(sota_engine_t *e)
Load the stored state into e->st again.
void sota_engine_emit(sota_engine_t *e, sota_event_id_t id, const char *reason, uint32_t build, size_t done, size_t total)
Deliver an event through sota_app_event().
bool sota_engine_waiting
A flashed update waits for its reboot.
int sota_engine_post_status(sota_engine_t *e, const char *event, const char *reason, const char *deployment, uint32_t build)
Post one status event.
One engine's state.
Definition sota_engine.h:78