mirror of
https://github.com/rstrouse/ESPSomfy-RTS.git
synced 2025-12-13 11:02:12 +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
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue