I am trying to do direct advertisement in runtime in the following way
//Disable the advertisement
GAP_DisableAdvertisement();
uint16 eventprops_u16 = GAP_ADV_PROP_CONNECTABLE | GAP_ADV_PROP_LEGACY | GAP_ADV_PROP_DIRECTED;
uint8 directedMacAddr_a[B_ADDR_LEN] = {0x2e, 0x20, 0xcd, 0x46, 0x74, 0x74}; //mobile mac in reverse format
//Create Advertisement set
GapAdv_create(&GAP_BleClusterAdvCallback, &advParams1, &advHandleDirected_u8);
//Set advertising parameters for directed advertising
GapAdv_setParam(advHandleDirected_u8, GAP_ADV_PARAM_PROPS, &eventprops_u16);
GapAdv_setParam(advHandleDirected_u8, GAP_ADV_PARAM_PEER_ADDRESS, directedMacAddr_a);
// Load advertising data for set #1 that is statically allocated by the app
GapAdv_loadByHandle(advHandleDirected_u8, GAP_ADV_DATA_TYPE_ADV, sizeof(advData1), advData1);
GapAdv_setEventMask(advHandleDirected_u8, GAP_ADV_EVT_MASK_START_AFTER_ENABLE
| GAP_ADV_EVT_MASK_END_AFTER_DISABLE
| GAP_ADV_EVT_MASK_SET_TERMINATED);
//Enable advertising with new Handle
GapAdv_enable(advHandleDirected_u8, GAP_ADV_ENABLE_OPTIONS_USE_MAX, 0);
when I set uint16 eventprops_u16 = GAP_ADV_PROP_CONNECTABLE | GAP_ADV_PROP_LEGACY | GAP_ADV_PROP_DIRECTED; in this I can't see my peripheral in mobile
but when I set it uint16 eventprops_u16 = GAP_ADV_PROP_DIRECTED; in this way I can see my device but it is not showing connect option in mobile
To be more clear while uint16 eventprops_u16 = GAP_ADV_PROP_DIRECTED; then advertising type is extension mode instead legacy mode
How could I make my central device both directed and connectable? I am using simplelink_cc13xx_cc26xx_sdk_6_20_00_29 sdk
Thanks in Advance.