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

Strings are borrowed: they must outlive the engine. More...

#include <sota_engine.h>

Data Fields

const char * token
 Project or device token.
 
const char * server_url
 NULL: SOTA_DEFAULT_SERVER_URL.
 
sota_device_info_t device
 Sent on every check-in.
 
const char * version_label
 NULL: the stored one.
 
uint32_t image_build
 This image's build, reported when SimpleOTA did not install it (a USB flash).
 
uint32_t check_interval_s
 0: the default.
 
uint32_t confirm_timeout_s
 0: the default.
 
uint32_t http_timeout_ms
 The transport's; sizes the watchdog margin.
 
bool auto_confirm
 A trial is confirmed by its first successful check-in.
 
bool auto_reboot
 apply() restarts after a successful flash.
 
bool rollback
 Run new images as trials.
 
void * user
 Passed to sota_net.h and sota_app.h.
 

Detailed Description

Strings are borrowed: they must outlive the engine.

Field Documentation

◆ image_build

uint32_t sota_config_t::image_build

This image's build, reported when SimpleOTA did not install it (a USB flash).

0: unknown.

◆ confirm_timeout_s

uint32_t sota_config_t::confirm_timeout_s

0: the default.

Clamped to [10, 86400].


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