Files
nuki_hub/networkDevices/NetworkDevice.h
2022-06-14 22:12:43 +02:00

25 lines
463 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 uint16_t _mqttMaxBufferSize = 6144;
const String _hostname;
};