ESPHome
2026.3.0
Loading...
Searching...
No Matches
esphome
components
zephyr_mcumgr
ota
ota_zephyr_mcumgr.h
Go to the documentation of this file.
1
#pragma once
2
#include "
esphome/core/defines.h
"
3
#ifdef USE_ZEPHYR
4
#include "
esphome/components/ota/ota_backend.h
"
5
#include <zephyr/mgmt/mcumgr/mgmt/callbacks.h>
6
7
struct
img_mgmt_upload_check;
8
9
namespace
esphome::zephyr_mcumgr
{
10
11
class
OTAComponent
:
public
ota::OTAComponent
{
12
public
:
13
OTAComponent
();
14
void
setup
()
override
;
15
void
dump_config
()
override
;
16
void
update_chunk
(
const
img_mgmt_upload_check &upload);
17
void
update_started
();
18
void
update_chunk_wrote
();
19
void
update_pending
();
20
void
update_stopped
();
21
22
protected
:
23
uint32_t
last_progress_
= 0;
24
float
percentage_
= 0;
25
mgmt_callback
img_mgmt_callback_
{};
26
};
27
28
}
// namespace esphome::zephyr_mcumgr
29
#endif
esphome::ota::OTAComponent
Definition
ota_backend.h:63
esphome::zephyr_mcumgr::OTAComponent
Definition
ota_zephyr_mcumgr.h:11
esphome::zephyr_mcumgr::OTAComponent::update_pending
void update_pending()
Definition
ota_zephyr_mcumgr.cpp:124
esphome::zephyr_mcumgr::OTAComponent::last_progress_
uint32_t last_progress_
Definition
ota_zephyr_mcumgr.h:23
esphome::zephyr_mcumgr::OTAComponent::percentage_
float percentage_
Definition
ota_zephyr_mcumgr.h:24
esphome::zephyr_mcumgr::OTAComponent::update_chunk
void update_chunk(const img_mgmt_upload_check &upload)
Definition
ota_zephyr_mcumgr.cpp:97
esphome::zephyr_mcumgr::OTAComponent::img_mgmt_callback_
mgmt_callback img_mgmt_callback_
Definition
ota_zephyr_mcumgr.h:25
esphome::zephyr_mcumgr::OTAComponent::setup
void setup() override
Definition
ota_zephyr_mcumgr.cpp:54
esphome::zephyr_mcumgr::OTAComponent::OTAComponent
OTAComponent()
Definition
ota_zephyr_mcumgr.cpp:52
esphome::zephyr_mcumgr::OTAComponent::update_chunk_wrote
void update_chunk_wrote()
Definition
ota_zephyr_mcumgr.cpp:111
esphome::zephyr_mcumgr::OTAComponent::dump_config
void dump_config() override
Definition
ota_zephyr_mcumgr.cpp:89
esphome::zephyr_mcumgr::OTAComponent::update_started
void update_started()
Definition
ota_zephyr_mcumgr.cpp:102
esphome::zephyr_mcumgr::OTAComponent::update_stopped
void update_stopped()
Definition
ota_zephyr_mcumgr.cpp:133
defines.h
esphome::zephyr_mcumgr
Definition
ota_zephyr_mcumgr.cpp:23
ota_backend.h
uint32_t
static void uint32_t
Definition
crash_handler.cpp:141
Generated by
1.12.0