Obtaining MAC address

All things pertaining to wireless and RF links

Moderator: phalanx

Post Reply
Posts: 1
Joined: Sat May 27, 2017 7:55 pm

Obtaining MAC address

Post by John2117 » Sat May 27, 2017 8:06 pm

I am using the Sparkfun WiFi Shield for the Arduino. The header files I'm using are SparkFunESP8266WiFi.h and SoftwareSerial.h. I am trying to get the MAC address for the device. The code I am using is:

int myMAC = esp8266.localMAC();
Serial.print(F("MAC Address: "));

This gives an error.

What is the correct coding to get the MAC?

Support Volunteer
Posts: 1743
Joined: Wed Dec 22, 2010 2:05 am

Re: Obtaining MAC address

Post by Valen » Sat Jun 03, 2017 4:02 am

What is the error?

Post Reply