1 of 1 people found this helpful
I don't think there's a direct way to read the BD_ADDR over the UART port. You could use the blecm_hciReadBdAddr() function to read the address. The address will be reported in an blecm event handler.
I just looked up that function header in blecm.h
How am i supposed to get the address from the function call if I can't pass in a pointer and I don't get a return. Where is the address read going to?
When you call that function, the blecm evt handler will be triggered and the device address will be reported in the event handler. If you enable the print logs, you can see the device address being printed.