Skip to content

Getting the BLE Identity Address #36556

Answered by dlktdr
dlktdr asked this question in Q&A
Discussion options

You must be logged in to vote

Wasn't super easy to find but this works. Didn't scan all possible results but this works for me

   // Discover BT Address
    bt_addr_le_t addrarry[CONFIG_BT_ID_MAX];
    size_t addrcnt;
    bt_id_get(addrarry, &addrcnt);
    if(addrcnt > 0)
        bt_addr_le_to_str(&addrarry[0],_address,sizeof(_address));

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dlktdr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
1 participant