RbootUpgrader.h
Go to the documentation of this file.
bool begin(Partition partition, size_t size=0) override
Prepare the partition for.
bool end() override
Finalizes the partition upgrade.
Definition: RbootUpgrader.h:31
static Partition getPartitionForSlot(uint8_t slot)
Definition: RbootUpgrader.h:59
Partition getRunningPartition() override
Gets information about the partition from which the current application is running.
size_t write(const uint8_t *buffer, size_t size) override
Writes chunk of data to the partition set in begin().
bool setBootPartition(Partition partition, bool save=true) override
Sets the default partition from where the application will be booted on next restart.
Partition getBootPartition() override
Gets information about the partition that is set as the default one to boot.
Definition: RbootUpgrader.h:38
static uint8_t getSlotForPartition(Partition partition)
Definition: RbootUpgrader.h:54
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:20
const PartitionTable & partitions() const
Provide read-only access to partition table.
Definition: Components/Storage/src/include/Storage/Device.h:68
Partition findOta(uint8_t index) const
Find the n'th OTA partition.
Definition: PartitionTable.h:79
uint8_t subType() const
Obtain partition sub-type.
Definition: Partition.h:327
Definition: IdfUpgrader.h:18
SpiFlash * spiFlash