UpgraderBase.h
virtual bool abort()
Aborts a partition upgrade.
Definition: UpgraderBase.h:77
virtual size_t write(const uint8_t *buffer, size_t size)=0
Writes chunk of data to the partition set in begin().
virtual bool setBootPartition(Partition partition, bool save=true)=0
Sets the default partition from where the application will be booted on next restart.
Definition: HttpUpgrader.h:21
virtual bool begin(Partition partition, size_t size=0)=0
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.
Storage::Iterator getBootPartitions()
Gets information about all bootable partitions.
Definition: UpgraderBase.h:120
Definition: Iterator.h:26
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:133
virtual Partition getNextBootPartition(Partition startFrom={})=0
Gets the next bootable partition that can be used after successful OTA upgrade.
virtual Partition getBootPartition()=0
Gets information about the partition that is set as the default one to boot.