25 lines
448 B
C++
25 lines
448 B
C++
#pragma once
|
|
|
|
#include <Arduino.h>
|
|
|
|
#include <WiFi.h>
|
|
#include <ArduinoJson.h>
|
|
#include <event_socket.h>
|
|
#include <PsychicHttp.h>
|
|
|
|
#include <HTTPClient.h>
|
|
#include <HTTPUpdate.h>
|
|
#include <task_manager.h>
|
|
|
|
#define EVENT_DOWNLOAD_OTA "otastatus"
|
|
#define OTA_TASK_STACK_SIZE 9216
|
|
|
|
class DownloadFirmwareService {
|
|
public:
|
|
DownloadFirmwareService();
|
|
|
|
esp_err_t handleDownloadUpdate(PsychicRequest *request, JsonVariant &json);
|
|
|
|
private:
|
|
};
|