External device MAC address
Posted: Mon Dec 11, 2023 7:58 am
I have an ESP32 C6 module with a W5500 ethernet module. On this W5500 I have an external device connected via ethernet. How can I get the MAC address of the external device connected via ethernet?
I have tried the functions:
esp_eth_ioctl(eth_handle, ETH_CMD_G_MAC_ADDR, mac_addr_eth);
esp_read_mac(mac_addr_eth, ESP_MAC_ETH);
But in both cases I get the base MAC address of the ESP32 module.
I have tried the functions:
esp_eth_ioctl(eth_handle, ETH_CMD_G_MAC_ADDR, mac_addr_eth);
esp_read_mac(mac_addr_eth, ESP_MAC_ETH);
But in both cases I get the base MAC address of the ESP32 module.