Wired Ethernet Support!

Added ESP32 wired ethernet support.
This commit is contained in:
Robert Strouse 2023-02-26 11:50:57 -08:00
parent 7f5463250f
commit 0f2f30bf4d
12 changed files with 605 additions and 78 deletions

View file

@ -7,7 +7,12 @@ class Network {
unsigned long lastEmit = 0;
int lastRSSI = 0;
int lastChannel = 0;
int linkSpeed = 0;
bool ethStarted = false;
public:
bool wifiFallback = false;
conn_types connType = conn_types::unset;
bool connected();
String ssid;
String mac;
int channel;
@ -18,7 +23,9 @@ class Network {
long connectTime = 0;
bool openSoftAP();
bool connect();
void setConnected();
bool connectWiFi();
bool connectWired();
void setConnected(conn_types connType);
int getStrengthByMac(const char *mac);
int getStrengthBySSID(const char *ssid);
bool setup();
@ -27,5 +34,6 @@ class Network {
void emitSockets();
void emitSockets(uint8_t num);
uint32_t getChipId();
static void networkEvent(WiFiEvent_t event);
};
#endif