IdfUpgrader.h
Go to the documentation of this file.
Partition getBootPartition() override
Gets information about the partition that is set as the default one to boot.
Definition: IdfUpgrader.h:47
static const esp_partition_t * convertToIdfPartition(Partition partition)
Definition: IdfUpgrader.h:63
Partition getRunningPartition() override
Gets information about the partition from which the current application is running.
Definition: IdfUpgrader.h:52
static Partition convertFromIdfPartition(const esp_partition_t *partition)
Definition: IdfUpgrader.h:69
Partition getNextBootPartition(Partition startFrom={}) override
Gets the next bootable partition that can be used after successful OTA upgrade.
Definition: IdfUpgrader.h:57
bool end() override
Finalizes the partition upgrade.
Definition: IdfUpgrader.h:28
size_t write(const uint8_t *buffer, size_t size) override
Writes chunk of data to the partition set in begin().
bool begin(Partition partition, size_t size=0) override
Prepares a partition for an upgrade. The preparation is bootloader and architecture dependent.
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:38
Definition: UpgraderBase.h:20
Partition::Type type() const
Obtain partition type.
Definition: Partition.h:310
uint8_t subType() const
Obtain partition sub-type.
Definition: Partition.h:318
const char * c_str() const
Get a constant (un-modifiable) pointer to String content.
Definition: WString.h:616
Definition: IdfUpgrader.h:18
Partition findPartition(const String &name)
Find the first partition matching the given name.