Go Down

Topic: MKR ETH default MAC address? (Read 224 times) previous topic - next topic

ninora

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).

Code: [Select]

#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() {
}


Juraj

#1
Apr 20, 2019, 02:12 pm Last Edit: Apr 20, 2019, 02:13 pm by Juraj
it doesn't have a MAC address

ninora


Go Up