esp32-sk6812/include/UpdateServer.h

28 lines
497 B
C
Raw Normal View History

#pragma once
#include <string>
2023-07-28 20:33:01 +02:00
#include <freertos/FreeRTOS.h>
#include <freertos/semphr.h>
#include "ChallengeResponse.h"
class UpdateServer
{
public:
enum UpdateTypes {
UT_FLASH = 0,
UT_SPIFFS = 1
};
UpdateServer(const std::string &pw, SemaphoreHandle_t *ledLockoutMutex);
void start(void);
private:
static void updateTask(void *arg);
ChallengeResponse m_cr;
SemaphoreHandle_t *m_ledLockoutMutex;
};