RbootUpgrader.h
Go to the documentation of this file.
bool begin(Partition partition, size_t size=0) override
Prepares a partition for an upgrade. The preparation is bootloader and architecture dependent.
bool end() override
Finalizes the partition upgrade.
Definition: RbootUpgrader.h:28
static Partition getPartitionForSlot(uint8_t slot)
Definition: RbootUpgrader.h:56
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:35
static uint8_t getSlotForPartition(Partition partition)
Definition: RbootUpgrader.h:51
Partition getNextBootPartition(Partition startFrom={}) override
Gets the next bootable partition that can be used after successful OTA upgrade.
Definition: RbootUpgrader.h:42
Each supported architecture implements this interface to support OTA updates.
Definition: UpgraderBase.h:23
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:319
Definition: IdfUpgrader.h:18
SpiFlash * spiFlash
The main SPI flash device. Where possible, access via partition API. If lower-level access is require...
1.9.1