How to find ESP8266/ESP32/ESP32CAM MAC Address (Arduino IDE)
Upload the code to ESP8266 / ESP32 / ESP32CAM boards using Arduino IDE.
#ifdef ESP32
#include <WiFi.h>
#else
#include <ESP8266WiFi.h>
#endif
void setup(){
Serial.begin(115200);
Serial.println();
Serial.print("ESP Board MAC Address: ");
Serial.println(WiFi.macAddress());
}
void loop(){
}
After uploading the code MAC Address show in the Serial Monitor Arduino IDE.