mirror of
https://github.com/tbnobody/OpenDTU.git
synced 2025-12-11 17:30:37 +01:00
Migrate WebApi loop() methods to scheduler tasks
This commit is contained in:
@@ -2,11 +2,11 @@
|
||||
#pragma once
|
||||
|
||||
#include <ESPAsyncWebServer.h>
|
||||
#include <TaskSchedulerDeclarations.h>
|
||||
|
||||
class WebApiSecurityClass {
|
||||
public:
|
||||
void init(AsyncWebServer& server);
|
||||
void loop();
|
||||
void init(AsyncWebServer& server, Scheduler& scheduler);
|
||||
|
||||
private:
|
||||
void onSecurityGet(AsyncWebServerRequest* request);
|
||||
@@ -15,4 +15,4 @@ private:
|
||||
void onAuthenticateGet(AsyncWebServerRequest* request);
|
||||
|
||||
AsyncWebServer* _server;
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user