CYW20706 get random generated mac address

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
jksong
Level 1
Level 1
5 sign-ins First question asked Welcome!

Hello.

I'm using WICED-Studio-6.2.1 for CYW20706.

Is there API for get random generated mac address??

I already called 'wiced_bt_dev_read_local_addr()' after 'wiced_bt_stack_init()'
but it showed me just local address that defined in 'CYW920706WCDEVAL_SFLASG.btp' like 20:70:6A:20:XX:XX

How can I get mac address that showed on BLE scanner APP (Like nRF Connect)
I want to get that address and print on my terminal.

 

0 Likes
1 Solution
DheerajPK_41
Moderator
Moderator
Moderator
750 replies posted 500 likes received 500 replies posted

Hi,

Please try to user BT_DEVICE_ADDRESS?=random in the make target string.

 

Also, please refer below link to generate random address from the application and save it into nvram.

https://community.cypress.com/t5/ModusToolbox-Blog/How-to-generate-BD-address-randomly-and-save-in-f...

 

Thanks,

-Dheeraj.P.K

View solution in original post

0 Likes
1 Reply