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