esp-iot-bridge icon indicating copy to clipboard operation
esp-iot-bridge copied to clipboard

How do I change the MAC address for my WiFi station? (AEGHB-21)

Open edbek opened this issue 3 years ago • 1 comments

For the example project "wifi_router" in the function "esp_bridge_create_station_netif()" there is a parameter "uint8_t mac[6]", which is intended to change the MAC address of the my WiFi station (CONFIG_BRIDGE_EXTERNAL_NETIF_STATION is enabled). But in the function itself, this parameter is not used. That is, it is impossible to change the MAC address of the WiFi station in this way.

Then how can you change the MAC address?

edbek avatar Jan 09 '23 09:01 edbek

You can call esp_netif_set_mac interface to change mac after creating station_netif.

tswen avatar Jan 09 '23 09:01 tswen