|
SimpleOTA client v1.0.0
Shared core of the SimpleOTA Arduino and ESP-IDF clients
|
What sota_engine.c and sota_apply.c share. More...
Go to the source code of this file.
Functions | |
| 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(). | |
| 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. | |
| 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. | |
Variables | |
| bool | sota_engine_waiting |
| A flashed update waits for its reboot. | |
What sota_engine.c and sota_apply.c share.
Not for the API layer.
| 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.
-1 when there is no deployment or no response.
|
extern |
A flashed update waits for its reboot.
Describes this boot, so it is shared by every engine and survives sota_engine_deinit().