Hello
I got error in getting the mac address with available answer(devzone.nordicsemi.com/.../how-to-get-mac-address-using-nrf5340_dk) in forum. I tried to paste that code in sensor client example to get mac address of bluetooth mesh connected devices
Here is the code and error
static char addr_str[BT_ADDR_STR_LEN];
struct bt_hci_vs_static_addr addr;
int addr_count;
addr_count = bt_read_static_addr(&addr, 1);
if (addr_count > 0)
{
bt_addr_to_str(&(addr.bdaddr), addr_str, sizeof(addr_str));
printk("BT addr: %s\n", addr_str);
}
this is the code i coped and the error is as below
Regards