2019-11-27 00:22:04 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
#include "ChallengeResponse.h"
|
|
|
|
|
|
|
|
class UpdateServer
|
|
|
|
{
|
|
|
|
public:
|
2019-12-02 21:21:13 +01:00
|
|
|
enum UpdateTypes {
|
|
|
|
UT_FLASH = 0,
|
|
|
|
UT_SPIFFS = 1
|
|
|
|
};
|
|
|
|
|
2019-11-27 00:22:04 +01:00
|
|
|
UpdateServer(const std::string &pw);
|
|
|
|
|
|
|
|
void start(void);
|
|
|
|
|
|
|
|
private:
|
|
|
|
static void updateTask(void *arg);
|
|
|
|
|
|
|
|
ChallengeResponse m_cr;
|
2019-12-02 21:21:13 +01:00
|
|
|
};
|