Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible to set MAC address of ESP? #28

Open
fredlcore opened this issue Jan 21, 2021 · 1 comment
Open

Possible to set MAC address of ESP? #28

fredlcore opened this issue Jan 21, 2021 · 1 comment

Comments

@fredlcore
Copy link
Contributor

Is it possible, similar to the Ethernet library, to set a fixed MAC address for the WiFi connection? Or is the MAC address fixed as part of the ESP and not changeable?

@JiriBilek
Copy link
Owner

I believe it is, there is a function bool wifi_set_macaddr(uint8 if_index, uint8 *macaddr); in ESP8266 firmware. But it is not implemented in this library. I searched more information and there are gotchas as you may change MAC only before initializing the wifi. See https://yoursunny.com/t/2017/change-ESP8266-MAC/
I have never tried it myself, I can look at it but unfortunately I am quite busy now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants