ESP32 Find and Change Wifi Mac Address

Описание к видео ESP32 Find and Change Wifi Mac Address

Here's how to quickly find and then change the Wifi Mac Address of an ESP32 microcontroller. The ESP32's Mac Address is assigned at the factory, but you can change it to another Mac Address of your choosing. This is really useful if you're using Home Assistant or another Internet of Things service or you're streaming video from an ESP32 CAM.

Just be aware you can't permanently change the ESP32's Mac Address. If you upload another sketch and it doesn't have the Mac Address changing code in it then the device's Mac Address will revert to the factory assigned one.

00:00 - Introduction
00:23 - Show Mac address
01:10 - Change Mac address
02:20 - Show ESP32's IP address
02:37 - Fixed IP address from router

Video's source code: https://github.com/nichelaboratory/ES...

Another important point to bear in mind is that the first bit of the first byte of the new Mac Address must be set to 0, it can't be 1. So in the video I successfully set my ESP32's new Mac Address to A0:B0:C0:D0:E0:F0 but I wouldn't be able to set it to A1:B0:C0:D0:E0:F0.

If the Mac address won't change then here's the list of possible error numbers:
https://github.com/espressif/esp-idf/...

Incidentally an error message of 0 means the Mac Address was successfully changed. If you get an error message number of 12289 or greater then something has gone wrong.

Also remember not to attempt to change the Mac Address while the ESP32 is connected to the wifi network.

Комментарии

Информация по комментариям в разработке