initial w5500 support
This commit is contained in:
23
networkDevices/WifiDevice.h
Normal file
23
networkDevices/WifiDevice.h
Normal file
@@ -0,0 +1,23 @@
|
||||
#pragma once
|
||||
|
||||
#include <WiFiClient.h>
|
||||
#include "NetworkDevice.h"
|
||||
#include "../SpiffsCookie.h"
|
||||
|
||||
class WifiDevice : public NetworkDevice
|
||||
{
|
||||
public:
|
||||
WifiDevice(const String& hostname);
|
||||
|
||||
virtual void initialize();
|
||||
virtual void reconfigure();
|
||||
|
||||
virtual bool isConnected();
|
||||
|
||||
virtual PubSubClient *mqttClient();
|
||||
|
||||
private:
|
||||
WiFiClient _wifiClient;
|
||||
PubSubClient _mqttClient;
|
||||
SpiffsCookie _cookie;
|
||||
};
|
||||
Reference in New Issue
Block a user