Skip to content

Instantly share code, notes, and snippets.

@dmiddlecamp
Last active August 29, 2016 21:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dmiddlecamp/de8c808cdd346fb0189421249b24c672 to your computer and use it in GitHub Desktop.
Save dmiddlecamp/de8c808cdd346fb0189421249b24c672 to your computer and use it in GitHub Desktop.
mac address example
byte mac[6];
void setup() {
WiFi.macAddress(mac);
String macAddress;
for (int i=0; i<6; i++) {
if (i) {
macAddress += ":";
}
macAddress += String(mac[i], HEX);
}
Particle.publish("macAddress", macAddress);
}
void loop() {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment