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

@ -21,14 +21,10 @@ void setup() {
Serial.println();
Serial.println("Startup/Boot....");
settings.begin();
WiFi.persistent(false);
Serial.print("WiFi Mode: ");
Serial.println(WiFi.getMode());
Serial.println("Mounting File System...");
if(LittleFS.begin()) Serial.println("File system mounted successfully");
else Serial.println("Error mounting file system");
if(WiFi.status() == WL_CONNECTED) WiFi.disconnect(true);
WiFi.mode(WIFI_AP_STA);
delay(10);
Serial.println();
webServer.startup();
@ -43,7 +39,7 @@ void loop() {
if(rebootDelay.reboot && millis() > rebootDelay.rebootTime) ESP.restart();
net.loop();
somfy.loop();
if(WiFi.status() == WL_CONNECTED) {
if(net.connected()) {
webServer.loop();
sockEmit.loop();
}