esp_efuse_mac_get_default() function
Return base MAC address which is factory-programmed by Espressif in EFUSE.
Arguments
mac
base MAC address, length: 6 bytes/8 bytes. length: 6 bytes for MAC-48 8 bytes for EUI-64(used for IEEE 802.15.4, if CONFIG_SOC_IEEE802154_SUPPORTED=y)
Return value
ESP_OK on success ESP_ERR_INVALID_ARG mac is NULL