Hi guys,
I need to get MAC address of my device and put it into characteristic? Is it possible? And maybe someone can tell how to implement this?
Regards, Konstantin
Hi guys,
I need to get MAC address of my device and put it into characteristic? Is it possible? And maybe someone can tell how to implement this?
Regards, Konstantin
Yes, this shouldn't be very problematic. Just create a custom service and add a custom characteristic with a 6-byte value, and then set the value of it to the address array returned by sd_ble_gap_address_get().
Unfortunately, I don't have any ready-made example code doing it, but please ask again if you have specific things you can't get working.
Thank you, Ole, I got it.
How to get MAC address [SDK 15.0, S140 6.1]:
ble_gap_addr_t ble_addr; sd_ble_gap_addr_get(&ble_addr);