Is there any APIs to get ethernet mac address?

axellin
Posts: 197
Joined: Mon Sep 17, 2018 9:09 am

Is there any APIs to get ethernet mac address?

Postby axellin » Thu Jan 02, 2020 5:19 am

For WiFi network interface, there is a esp_wifi_get_mac() to get MAC address.
But seems no API to get ethernet mac address?

ESP_igrr
Posts: 2067
Joined: Tue Dec 01, 2015 8:37 am

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

Postby ESP_igrr » Thu Jan 02, 2020 1:45 pm

You can call esp_read_mac(mac, ESP_MAC_ETH); — see https://docs.espressif.com/projects/esp ... mac_type_t

Who is online

Users browsing this forum: veso266 and 123 guests