|
SimpleOTA client v1.2.0
Shared core of the SimpleOTA Arduino and ESP-IDF clients
|
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. | |
| const char * | project_id |
| The project the device belongs to, as its manifests name it. | |
| 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. | |
Strings are borrowed: they must outlive the engine.
| const char* sota_config_t::project_id |
The project the device belongs to, as its manifests name it.
NULL: manifests are not checked.
| uint32_t sota_config_t::image_build |
This image's build, reported when SimpleOTA did not install it (a USB flash).
0: unknown.
| uint32_t sota_config_t::confirm_timeout_s |
0: the default.
Clamped to [10, 86400].