initial w5500 support
This commit is contained in:
24
networkDevices/W5500Device.h
Normal file
24
networkDevices/W5500Device.h
Normal 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;
|
||||
};
|
||||
Reference in New Issue
Block a user