hi juan,santanapablo1975 wrote: Now I would like to connect the ESP32 direct to my PC via the Ethernet interface, but I am not sure if it is possible at the moment.
I am asking becasue what I see now is all related to Wifi, example the DHCP stop does not work for ethernet ..
if you connect the ESP32 direct to your PC without DHCP and Router and so on,
you need at first
- "Cross Over Cable"
so you can connect the PC and ESP32 over ethernet as Peer to Peer.
(tip, read a little deeper in LAN8720..or other - there are mechanismen to support this without need of cross cable and it switch byself )
if you not use a DHCP service on your PC ( this would be the simples thing without extra code for esp32) , or do not create DHCP on ESP32 like Wifi Soft AP do, then ( you must write your code ) you need static private IP Adress and Subnet mask.
example:
PC
192.168.0.1
255.255.255.0
esp32
192.168.0.2
255.255.255.0
and you can ping and talk from to pc from to esp32 over ethernet.
You can setup your eth device with static IP well or can do this over DHCP
its the art you create your code for esp32.
btw.. we can use 4 MAC's in esp-idf, so we can setup 4 IP each device
what i think and know, just in time is not supported in esp-idf is
that there are transparent bridge / routings between the devices "officially"
but you can do this simple by look up deeper in lwip stack and device code,
put your own gateway code into and you go on..
hope this helps.
best wishes
rudi