Page 1 of 1

How to implement Ethernet in an ESP32 project without using ESP-IDF ?

Posted: Thu Jul 25, 2019 12:08 pm
by GeorgeFlorian1
OS: Linux Mint 19.1
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());
What is the equivalent for the above code when using Ethernet ?

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 ?
Thank you !