I am currently using the CC2640R2 Launchpad and want to start Directed Advertising to take measurements, however the datasheet does not specify how to start directed advertising. I am using the Simple Peripheral app.
Thanks,
Chris
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
I am currently using the CC2640R2 Launchpad and want to start Directed Advertising to take measurements, however the datasheet does not specify how to start directed advertising. I am using the Simple Peripheral app.
Thanks,
Chris
Hi Chris,
It is not directly mentioned how to do it, but here is the code example for direct advertising:
+ AdvertEnable = 0x01;
+ uint8 advEventType = GAP_ADTYPE_ADV_HDC_DIRECT_IND;
+ GAPRole_SetParameter(GAPROLE_ADV_EVENT_TYPE, sizeof(uint8), &advEventType);
+ GAPRole_SetParameter(GAPROLE_ADVERT_ENABLED, sizeof(uint8), &AdvertEnable);
Best wishes