RbootUpgrader.h
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.
bool end() override
Finalizes the partition upgrade.
Definition: RbootUpgrader.h:51
Partition findOta(uint8_t index) const
Find the n'th OTA partition.
Definition: PartitionTable.h:95
Partition getRunningPartition() override
Gets information about the partition from which the current application is running.
Partition getNextBootPartition(Partition startFrom={}) override
Gets the next bootable partition that can be used after successful OTA upgrade.
Definition: RbootUpgrader.h:65
Definition: HttpUpgrader.h:21
SpiFlash * spiFlash
bool begin(Partition partition, size_t size=0) override
Prepare the partition for.
static uint8_t getSlotForPartition(Partition partition)
Definition: RbootUpgrader.h:74
static Partition getPartitionForSlot(uint8_t slot)
Definition: RbootUpgrader.h:79
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:58