SimpleOTA client main
Shared core of the SimpleOTA Arduino and ESP-IDF clients
Loading...
Searching...
No Matches
sota_engine_priv.h File Reference

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.
 

Detailed Description

What sota_engine.c and sota_apply.c share.

Not for the API layer.

Function Documentation

◆ sota_engine_post_status()

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.

Variable Documentation

◆ sota_engine_waiting

bool sota_engine_waiting
extern

A flashed update waits for its reboot.

Describes this boot, so it is shared by every engine and survives sota_engine_deinit().