Hello,
I'm using CC2640 and now I meet some problem.
I want GAP layer to do 30 seconds advertising and stop until I set gapRole_AdvEnabled = TRUE. Following is my setting:
// Limited discoverable mode advertises for 30.72s, and then stops // General discoverable mode advertises indefinitely #define DEFAULT_DISCOVERABLE_MODE GAP_ADTYPE_FLAGS_LIMITED uint16_t advertOffTime = 30000; GAPRole_SetParameter(GAPROLE_ADVERT_OFF_TIME, sizeof(uint16_t), &advertOffTime);
But I find it couldn't advertising for 30 seconds and stop. On the contrary, it will stop when default 180 seconds timeout, and then resume to advertising after count to 10 seconds. (this is another question to me, I can’t search that where is the trigger point (gapRole_AdvEnabled = TRUE) of make the advertising re-start?)