OpenDTU-old/include/IntegrationsGoeController.h
2024-11-08 09:36:06 +01:00

24 lines
494 B
C++

// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
#include <HTTPClient.h>
#include "NetworkSettings.h"
#include <TaskSchedulerDeclarations.h>
class IntegrationsGoeControllerClass {
public:
IntegrationsGoeControllerClass();
void init(Scheduler& scheduler);
private:
void loop();
void NetworkEvent(network_event event);
Task _loopTask;
bool _networkConnected = false;
HTTPClient _http;
};
extern IntegrationsGoeControllerClass IntegrationsGoeController;