initial w5500 support

This commit is contained in:
technyon
2022-04-26 22:12:52 +02:00
parent 2a1f5facf9
commit 677f7e56c8
11 changed files with 314 additions and 71 deletions

View File

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