Ethernet Support (#1316)

Ethernet Support
This commit is contained in:
tbnobody
2020-11-13 18:25:13 +01:00
committed by GitHub
parent 560f72a320
commit c365fd9d74
9 changed files with 191 additions and 41 deletions

23
wled00/Network.h Normal file
View File

@@ -0,0 +1,23 @@
#ifdef ESP8266
#include <ESP8266WiFi.h>
#else // ESP32
#include <WiFi.h>
#include <ETH.h>
#endif
#ifndef Network_h
#define Network_h
class NetworkClass
{
public:
IPAddress localIP();
IPAddress subnetMask();
IPAddress gatewayIP();
bool isConnected();
bool isEthernet();
};
extern NetworkClass Network;
#endif