I am using MKR ETH on top of MKR WIFI 1010.
While I can obtain the WIFI board MAC address in order to begin ETH connectivity, I wonder if the ETH has its own default MAC (which return zeros when I query the board).
#include <Ethernet.h>
EthernetClient httpsClient;
void setup() {
Serial.begin(115200);
while (!Serial);
//Deselect the SD card
pinMode(4,OUTPUT);
digitalWrite(4, HIGH);
byte mac[6];
Ethernet.MACAddress(mac);
Serial.print("The MAC address is: ");
for (byte octet = 0; octet < 6; octet++) {
Serial.print(mac[octet], HEX);
if (octet < 5) {
Serial.print('-');
}
}
}
void loop() {
}