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,24 @@
#pragma once
#include "NetworkDevice.h"
#include <Ethernet.h>
class W5500Device : public NetworkDevice
{
public:
explicit W5500Device(const String& hostname);
~W5500Device();
virtual void initialize();
virtual void reconfigure();
virtual bool isConnected();
virtual PubSubClient *mqttClient();
private:
void resetDevice();
EthernetClient* _ethClient = nullptr;
PubSubClient* _mqttClient = nullptr;
};