Files
nuki_hub/networkDevices/NetworkDevice.h
2022-06-15 10:36:27 +00:00

26 lines
498 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 printError() = 0;
virtual void update() = 0;
virtual bool isConnected() = 0;
protected:
const uint16_t _mqttMaxBufferSize = 6144;
const String _hostname;
};