ESPHome 2026.3.0
Loading...
Searching...
No Matches
ota_zephyr_mcumgr.h
Go to the documentation of this file.
1#pragma once
3#ifdef USE_ZEPHYR
5#include <zephyr/mgmt/mcumgr/mgmt/callbacks.h>
6
7struct img_mgmt_upload_check;
8
10
12 public:
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:
24 float percentage_ = 0;
25 mgmt_callback img_mgmt_callback_{};
26};
27
28} // namespace esphome::zephyr_mcumgr
29#endif
void update_chunk(const img_mgmt_upload_check &upload)
static void uint32_t