

With your solutions, i can replace 25 chips or more in the same projects, without modifying the new code. Learn ESP32 with Arduino IDE (eBook + Video Course)Ī very interesting idea and i personally intend to use it in my projects.Īs some of my projects are MAC address dependent, in the unfortunate case of a chip failure, i have to go and change the code again for the new chip and put the new MAC address of the chip.Learn more about the ESP32 and ESP8266 boards: You’ve also learned how to set a custom MAC Address for your boards. In this quick guide, we’ve shown you how to get your ESP32 and ESP8266 manufacturer MAC Address with Arduino IDE. Restart the ESP8266 and you should get its old and new MAC Address. Uint8_t newMACAddress = Īfter uploading the code, open the Serial Monitor at a baud rate of 115200. The following code sets a custom MAC Address for the ESP32 board. So, every time you reset the board, or upload a new code, it will get back to its default MAC Address. However, as explained previously, this doesn’t overwrite the MAC Address set by the manufacturer. In some applications, it might be useful to give your boards a custom MAC Address. Set a Custom MAC Address for ESP32 and ESP8266 That’s it! Now, you know how to get your ESP32 or ESP8266 board MAC Address. The MAC Address should be printed in the Serial Monitor as shown in the following figure. Complete Instructions to Get and Change ESP MAC Address: Īfter uploading the code, open the Serial Monitor at a baud rate of 115200. To get your board MAC Address, simply upload the following code to the ESP32 or ESP8266. So, you need to include the code to set a custom MAC Address in every sketch. However, every time the board resets, it will return to its original MAC Address. MAC Addresses are assigned by manufacturers, but you can also give a custom MAC Address to your board. MAC Addresses are made up of six groups of two hexadecimal digits, separated by colons, for example: 30:AE:A4:07:0D:64. MAC Address stands for Media Access Control Address and it is a hardware unique identifier that identifies each device on a network.
