UpgraderBase.h
Go to the documentation of this file.
Definition: UpgraderBase.h:20
virtual Partition getRunningPartition()=0
Gets information about the partition from which the current application is running.
uint8_t getSlot(Partition partition)
Gets slot number for a partition.
Definition: UpgraderBase.h:113
virtual bool begin(Partition partition, size_t size=0)=0
Prepares a partition for an upgrade. The preparation is bootloader and architecture dependent.
Storage::Iterator getBootPartitions()
Gets information about all bootable partitions.
Definition: UpgraderBase.h:100
virtual bool abort()
Aborts a partition upgrade.
Definition: UpgraderBase.h:57
virtual size_t write(const uint8_t *buffer, size_t size)=0
Writes chunk of data to the partition set in begin().
virtual Partition getBootPartition()=0
Gets information about the partition that is set as the default one to boot.
virtual Partition getNextBootPartition(Partition startFrom={})=0
Gets the next bootable partition that can be used after successful OTA upgrade.
virtual bool setBootPartition(Partition partition, bool save=true)=0
Sets the default partition from where the application will be booted on next restart.
Definition: Iterator.h:19
Partition::Type type() const
Obtain partition type.
Definition: Partition.h:310
uint8_t subType() const
Obtain partition sub-type.
Definition: Partition.h:318
Definition: IdfUpgrader.h:18
Partition findPartition(const String &name)
Find the first partition matching the given name.