2023-09-07 19:57:40 +02:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <ESPAsyncWebServer.h>
|
2024-01-20 02:00:22 +01:00
|
|
|
#include <TaskSchedulerDeclarations.h>
|
2023-09-07 19:57:40 +02:00
|
|
|
|
|
|
|
|
class WebApiGridProfileClass {
|
|
|
|
|
public:
|
2024-01-20 02:00:22 +01:00
|
|
|
void init(AsyncWebServer& server, Scheduler& scheduler);
|
2023-09-07 19:57:40 +02:00
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
void onGridProfileStatus(AsyncWebServerRequest* request);
|
2023-12-11 14:58:17 +01:00
|
|
|
void onGridProfileRawdata(AsyncWebServerRequest* request);
|
2024-01-20 02:00:22 +01:00
|
|
|
};
|