esp_wifi_get_mac() function
Get mac of specified interface
Arguments
mac
store mac of the interface ifx
Return value
- ESP_OK: succeed - ESP_ERR_WIFI_NOT_INIT: WiFi is not initialized by esp_wifi_init - ESP_ERR_INVALID_ARG: invalid argument - ESP_ERR_WIFI_IF: invalid interface
Examples
esp_wifi_get_mac() is referenced by 3 libraries and example projects: