Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
8 years, 11 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]; mbed_mac_address(mac); printf("mac addr: \n "); for(int i=0; i<6; i++) { printf("%02X ", mac[i]); } printf("---\n");
The mbed_mac_address() can't be used for nRF51-dongle?
How can I get mac address from nRF51-dongle?
Thanks!
1 Answer
8 years, 11 months ago.
Looks like you can use something like this: https://developer.mbed.org/teams/Bluetooth-Low-Energy/code/BLE_API/docs/a097e1be76f4/classBLE.html#a9e811ffff9f8c037d8b9e2b5c8bc4ade