Files
nuki_hub/networkDevices/NetworkDevice.h
2022-04-30 19:59:07 +02:00

24 lines
417 B
C++

#pragma once
#include "PubSubClient.h"
class NetworkDevice
{
public:
explicit NetworkDevice(const String& hostname)
: _hostname(hostname)
{}
virtual PubSubClient* mqttClient() = 0;
virtual void initialize() = 0;
virtual bool reconnect() = 0;
virtual void reconfigure() = 0;
virtual void update() = 0;
virtual bool isConnected() = 0;
protected:
const String _hostname;
};