Ethernet
macAddress()
Ethernet.macAddress()
gets the MAC address of the Ethernet interface.
// EXAMPLE
SerialLogHandler logHandler;
void setup() {
// Wait for a USB serial connection for up to 30 seconds
waitFor(Serial.isConnected, 30000);
uint8_t addr[6];
Ethernet.macAddress(addr);
Log.info("mac: %02x-%02x-%02x-%02x-%02x-%02x", addr[0], addr[1], addr[2], addr[3], addr[4], addr[5]);
}