mirror of
https://github.com/tbnobody/OpenDTU.git
synced 2025-12-12 01:40:52 +01:00
Move network reconfiguration to main loop to prevent crashes
This commit is contained in:
@@ -6,10 +6,14 @@
|
||||
|
||||
class WebApiNetworkClass {
|
||||
public:
|
||||
WebApiNetworkClass();
|
||||
void init(AsyncWebServer& server, Scheduler& scheduler);
|
||||
|
||||
private:
|
||||
void onNetworkStatus(AsyncWebServerRequest* request);
|
||||
void onNetworkAdminGet(AsyncWebServerRequest* request);
|
||||
void onNetworkAdminPost(AsyncWebServerRequest* request);
|
||||
|
||||
Task _applyDataTask;
|
||||
void applyDataTaskCb();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user