Question
Problem with broadcast ADV_DIRECT_IND
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
