Page 1 of 1

Is there any APIs to get ethernet mac address?

Posted: Thu Jan 02, 2020 5:19 am
by axellin
For WiFi network interface, there is a esp_wifi_get_mac() to get MAC address.
But seems no API to get ethernet mac address?

Re: Is there any APIs to get ethernet mac address?

Posted: Thu Jan 02, 2020 1:45 pm
by ESP_igrr
You can call esp_read_mac(mac, ESP_MAC_ETH); — see https://docs.espressif.com/projects/esp ... mac_type_t