SimpleOTA client v1.0.0
Shared core of the SimpleOTA Arduino and ESP-IDF clients
Loading...
Searching...
No Matches
sota_engine_t Struct Reference

One engine's state. More...

#include <sota_engine.h>

Data Fields

sota_config_t cfg
 As given to sota_engine_init().
 
uint8_t keys [2][32]
 Pinned Ed25519 keys.
 
char key_ids [2][64]
 Their key ids, empty when none.
 
uint8_t num_keys
 Keys pinned.
 
sota_state_t st
 As stored, kept current.
 
sota_outbox_t outbox
 Guarded by sota_sys_lock().
 
uint32_t report_failures
 Report sends with no response this boot.
 
sota_offer_t offer
 offer.url is heap, NULL without an offer.
 
bool has_offer
 offer holds an update from the last check.
 
bool last_check_ok
 The last check-in got a 2xx.
 
bool validated
 sota_engine_validate_boot() has run.
 
bool auth_warned
 A rejected token was logged once.
 
uint32_t refused_build
 The offer last refused as a downgrade,.
 
char refused_dep [sizeof(((sota_offer_t *) 0) ->deployment)]
 reported once per boot.
 
void * timer
 The confirm timer, from sota_sys_timer_start().
 
volatile bool in_trial
 The running image is an unconfirmed trial.
 
volatile bool ending
 A confirm or rollback has claimed the trial.
 
volatile bool timeout_pending
 The confirm timeout fired, not handled yet.
 

Detailed Description

One engine's state.

Members are for the core, its API layer and its tests; nothing else should touch them.


The documentation for this struct was generated from the following file: