how can I change the MAC address of esp8266?

james_hardcode
Posts: 1
Joined: Tue Nov 29, 2016 1:41 am

how can I change the MAC address of esp8266?

Postby james_hardcode » Tue Nov 29, 2016 2:42 am

hi espressif,

I tried change the MAC address of esp8266 with this both functions of RTOS SDK:

bool wifi_get_macaddr(uint8 if_index, uint8 *macaddr);
bool wifi_set_macaddr(uint8 if_index, uint8 *macaddr);

I set a new MAC address to both (STATION_IF and SOFTAP_IF) , with the function wifi_set_macaddr and i use wifi_get_macaddr to verify if it really change. I succeeded.

Then, i tried discover the MAC address in my computer with command "arp -a" at cmd. The result is the default MAC address.

Anyone have any idea what it can be?

pratik

Re: how can I change the MAC address of esp8266?

Postby pratik » Wed Nov 30, 2016 10:37 pm

Hi!
Seems like the connection is being "remembered" by your computer and so it does not detect a change in MAC. (devices are not supposed to change MAC!).
Please "forget" the network and try again... and let me know if that helped!

Who is online

Users browsing this forum: No registered users and 58 guests