I tried to get the MAC address of the sparkfun esp8266, and there was almost no info online.
so I wanted to post the solution here.
This is the entire program, and the output is going to the serial monitor, accessible from the tools menu.
#include <SoftwareSerial.h>
#include <SparkFunESP8266WiFi.h>
void setup()
{
Serial.begin(9600);
esp8266.begin();
esp8266.println(“AT+CIPSTAMAC?”);
delay(30);
while (esp8266.available()) {
String inData = esp8266.readStringUntil(‘\n’);
Serial.println("Got response from ESP8266: " + inData);
}
}
void loop()
{
delay(100);
}