5 years, 5 months ago.

get mac address from nRF51-dongle

Hi, all

I want to get mac address from my device nRF51-dongle.

I try mbed_mac_address(mac) function, but the mac is the default value(00:02:F7:F0:00:00).

get mac

    char mac[6];
    printf("mac addr: \n ");
    for(int i=0; i<6; i++) {
        printf("%02X ", mac[i]);

The mbed_mac_address() can't be used for nRF51-dongle?

How can I get mac address from nRF51-dongle?


1 Answer