cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with broadcast ADV_DIRECT_IND

jiefeng_wang
Associate

IN demo P-NUCLEO-WB55.Nucleo\Applications\BLE\BLE_p2pClient ,After receiving the server's broadcast data, we hope to send targeted broadcast data to the server.

M0stack:stm32wb5x_BLE_Stack_full_fw.bin

When I use the following function to test, the error return value is 1,Using ADV_IND broadcast can be sent normally

  ret = aci_gap_adv_set_configuration(0x01, 0x00, 0x04, 0x20, 0x20, 0x07, 0x00, 0x00,&server_remote[i].SERVER_REMOTE_BDADDR[0],0x00, 0x00, 0x00, 0x01, 0x00, 0x00);\
 APP_DBG_MSG("ret = %d\n",ret);ret = 0x1
 ret = aci_gap_update_adv_data(sizeof(a_ManufData), (uint8_t *)a_ManufData);
APP_DBG_MSG("ret = %d\n",ret);//ret = 0x0
Adv_Set_t adv_set;
adv_set.Advertising_Handle = 0x0;
adv_set.Duration = 0x0;
adv_set.Max_Extended_Advertising_Events = 0x0;
ret = aci_gap_adv_set_enable(0x01, 0x0, &adv_set);
APP_DBG_MSG("ret = %d\n",ret);ret = 0x1
 

 

1 REPLY 1
STTwo-32
ST Employee

Hello @jiefeng_wang 

Could you give more details about your Implementation, the changes you have made on the Code, what you see exactly on the trace exactly, When the error happen, ...

Best Regards.

STTwo-32

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.