IdfUpgrader.h
Go to the documentation of this file.
Partition getRunningPartition() override
Gets information about the partition from which the current application is running.
Definition: IdfUpgrader.h:72
static Partition convertFromIdfPartition(const esp_partition_t *partition)
Definition: IdfUpgrader.h:89
size_t write(const uint8_t *buffer, size_t size) override
Writes chunk of data to the partition set in begin().
Partition getBootPartition() override
Gets information about the partition that is set as the default one to boot.
Definition: IdfUpgrader.h:67
Partition getNextBootPartition(Partition startFrom={}) override
Gets the next bootable partition that can be used after successful OTA upgrade.
Definition: IdfUpgrader.h:77
bool end() override
Finalizes the partition upgrade.
Definition: IdfUpgrader.h:48
Definition: HttpUpgrader.h:21
bool begin(Partition partition, size_t size=0) override
Prepares a partition for an upgrade. The preparation is bootloader and architecture dependent.
Partition findPartition(const String &name)
Find the first partition matching the given name.
static const esp_partition_t * convertToIdfPartition(Partition partition)
Definition: IdfUpgrader.h:83
bool setBootPartition(Partition partition, bool save=true) override
Sets the default partition from where the application will be booted on next restart.
Definition: IdfUpgrader.h:58