Changing the address of a device

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

cross mob
user_3880456
Level 1
Level 1

Hello,

I have 2 CY8CKIT_062-WiFi-BT PSoC6 Pioneer kits. When I use CySmart mobile app, I see that the addresses of both kits are the same. I want to change the addresses of the kits. The following is the first code snippet that one of the kit executes after startup:

wiced_bt_device_address_t  my_addr = {0xAA, 0xBB, 0xCC, 0xDD, 0xEE, 0xFF};

void GoBleThread_start(void)

{

    WPRINT_APP_INFO(("GoBleThread_start before wiced_bt_stack_init \n"));

    wiced_bt_dev_status_t st;

    st = wiced_bt_stack_init(goble_management_callback, &wiced_bt_cfg_settings, wiced_bt_cfg_buf_pools);

    WPRINT_APP_INFO(("GoBleThread_start after wiced_bt_stack_init. st of init: %u \n", st));

    wiced_bt_set_local_bdaddr( my_addr);

}

However, this does not work. Apparently wiced_bt_set_local_bdaddr function does not work properly. How can I solve this issue? Thanks in advance.

0 Likes
1 Solution
SheetalJ
Moderator
Moderator
Moderator
First comment on KBA 750 replies posted 500 likes received

Hi alperen.gormez_3880456​.

Can you try setting the BD address inside the management callback?

View solution in original post

0 Likes
1 Reply
SheetalJ
Moderator
Moderator
Moderator
First comment on KBA 750 replies posted 500 likes received

Hi alperen.gormez_3880456​.

Can you try setting the BD address inside the management callback?

0 Likes