Page 1 of 1

Lilygo T-ETH-Lite ESP32-S3

Posted: Mon Sep 30, 2024 5:40 pm
by AlbeertoMA
Hi! I've got a Lilygo T-ETH-Lite ESP32S3, and I'm using Arduino IDE 2.3.3. I'm writing here because I've got a problem. I would like to put a static IP on my Lilygo through Ethernet, but I only find tutorials about how to do it through WiFi.
Could I get some help?
Thanks!

Re: Lilygo T-ETH-Lite ESP32-S3

Posted: Sat Oct 12, 2024 12:33 pm
by daryl_thomas
IPAddress staticIP(169, 254, 1, 2);
IPAddress gateway(169, 254, 1, 1);
IPAddress subnet(255, 255, 0, 0);
IPAddress dns(169, 254, 1, 1);
set this data and then configure your ethernet params during setup as follows

ETH.begin();


if (ETH.config(staticIP, gateway, subnet, dns, dns) == false) {
Serial.println("Static IP Configuration failed.");
}