[WiFi] different interface's MACs
Posted: Mon Oct 14, 2019 12:37 am
I'm setting up an AP. I decided to check the MAC addresses of my board:
and for some reason this produces
Does this mean that there's only a NULL and a STA MAC, no AP MAC? If the AP sends a frame, which of both will be the transmitter (in case I need to filter for a specific MAC)?
Code: Select all
esp_wifi_get_mac(WIFI_MODE_NULL, mac1);
esp_wifi_get_mac(WIFI_MODE_STA, mac2);
esp_wifi_get_mac(WIFI_MODE_AP, mac3);
Code: Select all
I (736) wifi softAP: MAC NULL: 24:0A:C4:0C:4F:34
I (736) wifi softAP: MAC STA: 24:0A:C4:0C:4F:35
E (746) wifi: esp_wifi_get_mac 1502 ifx=2 wrong
ESP_ERROR_CHECK failed: esp_err_t 0x3004 (ESP_ERR_WIFI_IF) at 0x4008b41c
I (746) wifi softAP: MAC AP: 80:F8:01:80:20:00