ESP32 ETH Events

Hi,
iam trying to connect my T-Internet-POE(T-Internet-POE – LILYGO®). To network and everything works and iam able to connect it. But i found callback function for registering Wifi and ETH events and its not working for me. I found out that board is returning event IDs but they are not correct according to ETH library
F.e. SYSTEM_EVENT_ETH_START = 26, board returning 18
SYSTEM_EVENT_ETH_CONNECTED = 28, actual value is 19… etc
Could someone point me to the direction where i should look?
Thanks

There are differences between arduino_event_id_t and system_event_id_t.
If you are using the Arduino framework, you must check against arduino_even_id_t!

See arduino-esp32/libraries/WiFi/src/WiFiGeneric.h at release/v2.x · espressif/arduino-esp32 · GitHub

18 = ARDUINO_EVENT_ETH_START
19 = ARDUINO_EVENT_ETH_STOP
20 = ARDUINO_EVENT_ETH_CONNECTED
21 = ARDUINO_EVENT_ETH_DISCONNECTED
22 = ARDUINO_EVENT_ETH_GOT_IP
23 = ARDUINO_EVENT_ETH_GOT_IP6

Make sense and also works:) Thanks for quick help.