Create LanSettings.h
Add ESP32-PoE Lan Support
This commit is contained in:
parent
0bdc8092c4
commit
c97d16a287
30
include/LanSettings.h
Normal file
30
include/LanSettings.h
Normal file
@ -0,0 +1,30 @@
|
||||
#pragma once
|
||||
|
||||
#include <WiFi.h>
|
||||
#include <AsyncTCP.h>
|
||||
|
||||
class LanSettingsClass {
|
||||
public:
|
||||
LanSettingsClass();
|
||||
void init();
|
||||
void loop();
|
||||
void firstLoop();
|
||||
void applyConfig();
|
||||
bool isConnected();
|
||||
|
||||
private:
|
||||
void WiFiEvent(WiFiEvent_t event);
|
||||
|
||||
bool bEthConnected;
|
||||
bool bFirstLoop;
|
||||
bool bDebugMode = true;
|
||||
|
||||
IPAddress local_ip;
|
||||
IPAddress gateway;
|
||||
IPAddress subnet;
|
||||
IPAddress dns1;
|
||||
IPAddress dns2;
|
||||
|
||||
};
|
||||
|
||||
extern LanSettingsClass Lan;
|
||||
Loading…
Reference in New Issue
Block a user