How to get BT MAC addr when using NimBLE

stock86c
Posts: 18
Joined: Mon Aug 19, 2019 10:15 am

How to get BT MAC addr when using NimBLE

Postby stock86c » Mon Aug 26, 2019 3:40 am

Hi guys,

I have a question regarding how to get bluetooth device address. for the Bluedroid stack, it states clearly that after “esp_bluedroid_enable”, one is able to call this function " esp_bt_dev_get_address(void)" to get the bt mac address. it works OK.

However for the NimBLE stack, i have been looking for examples or API documents and there are none explaining how to get the MAC addr for BT when using this stack. Any clues would be appreciated, thanks.


stock86c
Posts: 18
Joined: Mon Aug 19, 2019 10:15 am

Re: How to get BT MAC addr when using NimBLE

Postby stock86c » Tue Aug 27, 2019 8:11 am

Hi chegawara,

so does that mean the controller will only read it out once as stated "read from controller at startup." ? Does that imply there's no API calls like the one in Bluedroid to save the MAC and print it out for our specific applications ? thx.

Who is online

Users browsing this forum: No registered users and 119 guests