Adds taskManager cpu usage

This commit is contained in:
Rune Harlyk
2024-04-30 00:23:13 +02:00
committed by Rune Harlyk
parent d13a9d2b80
commit c8e972f72d
11 changed files with 292 additions and 64 deletions
@@ -24,6 +24,7 @@
#include <HTTPClient.h>
#include <HTTPUpdate.h>
#include <TaskManager.h>
// #include <SSLCertBundle.h>
#define GITHUB_FIRMWARE_PATH "/api/downloadUpdate"
@@ -33,7 +34,7 @@
class DownloadFirmwareService
{
public:
DownloadFirmwareService(PsychicHttpServer *server, SecurityManager *securityManager, EventSocket *socket);
DownloadFirmwareService(PsychicHttpServer *server, SecurityManager *securityManager, EventSocket *socket, TaskManager *taskManager);
void begin();
@@ -41,5 +42,6 @@ private:
SecurityManager *_securityManager;
PsychicHttpServer *_server;
EventSocket *_socket;
TaskManager *_taskManager;
esp_err_t downloadUpdate(PsychicRequest *request, JsonVariant &json);
};