Board: Olimex ESP32-EVB
Hello !
I would like to know how to implement a Ethernet connection instead of a WiFi connection.
This is how I start a WiFi connection in STA Mode right now:
Code: Select all
if(!WiFi.config(local_IP_STA, gateway_STA, subnet_STA, local_IP_STA, primaryDNS)) {
logOutput((String)"Couldn't configure STATIC IP ! Starting DHCP IP !");
}
delay(50);
WiFi.begin(x[0].c_str(),x[1].c_str());
I also have some other questions:
- Can WiFi and Ethernet be used in the same time and how would this work. Will the ESP32 be able to handle 2 different types of connections in the same time or you can code-in both of these but only use one at a time ?
- Can Ethernet be used in AP Mode ?
- How come the ETH example is in WiFi examples ? Doesn't ETH deserve a separate directory with its own examples ?