Some checks failed
Build test application / build-cli-v1 (debug, DISCO_H747I, tests-bike-computer-bike-system) (push) Failing after 2s
Build test application / build-cli-v1 (debug, DISCO_H747I, tests-bike-computer-sensor-device) (push) Failing after 3s
Build test application / build-cli-v1 (debug, DISCO_H747I, tests-bike-computer-speedometer) (push) Failing after 3s
25 lines
642 B
C++
25 lines
642 B
C++
#pragma once
|
|
#include "update-client/candidate_applications.hpp"
|
|
|
|
namespace bike_computer {
|
|
class MyCandidateApplications : public update_client::CandidateApplications {
|
|
public:
|
|
MyCandidateApplications(
|
|
BlockDevice &blockDevice,
|
|
mbed::bd_addr_t storageAddr,
|
|
mbed::bd_size_t storageSize,
|
|
uint32_t headerSize,
|
|
uint32_t nSlots
|
|
);
|
|
virtual uint32_t getSlotForCandidate() override;
|
|
};
|
|
}
|
|
|
|
update_client::CandidateApplications *createCandidateApplications(
|
|
BlockDevice &blockDevice,
|
|
mbed::bd_addr_t storageAddr,
|
|
mbed::bd_size_t storageSize,
|
|
uint32_t headerSize,
|
|
uint32_t nSlots
|
|
);
|