mirror of
https://github.com/rstrouse/ESPSomfy-RTS.git
synced 2025-12-13 02:52:11 +01:00
Wired Ethernet Support!
Added ESP32 wired ethernet support.
This commit is contained in:
parent
7f5463250f
commit
0f2f30bf4d
12 changed files with 605 additions and 78 deletions
10
Network.h
10
Network.h
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue