SimpleOTA client v1.2.0
Shared core of the SimpleOTA Arduino and ESP-IDF clients
Loading...
Searching...
No Matches
sota_engine_priv.h
Go to the documentation of this file.
1
7#ifndef SOTA_ENGINE_PRIV_H
8#define SOTA_ENGINE_PRIV_H
9
10#include "sota_app.h"
11#include "sota_engine.h"
12
15extern bool sota_engine_waiting;
16
18void sota_engine_emit(sota_engine_t *e, sota_event_id_t id, const char *reason,
19 uint32_t build, size_t done, size_t total);
20
22int sota_engine_post_status(sota_engine_t *e, const char *event, const char *reason,
23 const char *deployment, uint32_t build);
24
27
30
31#endif /* SOTA_ENGINE_PRIV_H */
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:81