I've a CYBLE-022001-00 BLE PRoC module and it is configured as GAP peripheral device. My intention is to only allow it to be discovered by a single GAP central device. Therefore, I've tried to choose "Connectable directed advertising" type in the GAP Settings (also to populate the target Random device address in the advertising packet). However, this option is not available in the dropped down list. I would appreciate if someone has an idea/suggestion. Thanks!
You can make Direct advertising enable in the firmware. For changing the advertising type, change the adv parameters in the firmware.
Refer the below code:
/*Set the Advertising type*/ cyBle_discoveryModeInfo.advParam->advType=CYBLE_GAPP_CONNECTABLE_LOW_DC_DIRECTED_ADV; /*Set the type of address to central*/ cyBle_discoveryModeInfo.advParam->directAddrType= provide the type; /*Use central device address for direct advertising*/ cyBle_discoveryModeInfo.advParam->directAddr=CentralbdAddr; cyBle_discoveryModeInfo.advParam->directAddr=CentralbdAddr->bdAddr; cyBle_discoveryModeInfo.advParam->directAddr=CentralbdAddr->bdAddr; cyBle_discoveryModeInfo.advParam->directAddr=CentralbdAddr->bdAddr; cyBle_discoveryModeInfo.advParam->directAddr=CentralbdAddr->bdAddr;