RbootUpgrader.h
Go to the documentation of this file.
const PartitionTable & partitions() const
Provide read-only access to partition table.
Definition: Components/Storage/src/include/Storage/Device.h:62
bool setBootPartition(Partition partition, bool save=true) override
Sets the default partition from where the application will be booted on next restart.
static Partition getPartitionForSlot(uint8_t slot)
Definition: RbootUpgrader.h:59
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: RbootUpgrader.h:38
uint8_t subType() const
Obtain partition sub-type.
Definition: Partition.h:318
Partition getRunningPartition() override
Gets information about the partition from which the current application is running.
Definition: IdfUpgrader.h:17
Partition findOta(uint8_t index) const
Find the n'th OTA partition.
Definition: PartitionTable.h:79
static uint8_t getSlotForPartition(Partition partition)
Definition: RbootUpgrader.h:54
SpiFlash * spiFlash
Partition getNextBootPartition(Partition startFrom={}) override
Gets the next bootable partition that can be used after successful OTA upgrade.
Definition: RbootUpgrader.h:45
Definition: UpgraderBase.h:19
bool end() override
Finalizes the partition upgrade.
Definition: RbootUpgrader.h:31
bool begin(Partition partition, size_t size=0) override
Prepare the partition for.
1.8.13