Part Number:CC2642R-Q1
GapScan_enable的描述中,三个参数都为0应该可以实现连续扫描,实际值扫描一个period就停止了,是哪里的问题?
Yolande Wang:
您好,
您可以查看 Simple Link Academy 处理广告和扫描的基础实验中 Task 3 中描述了 GapScan_enable 函数的正确用法:
// === SOLUTION [Scan indefinitely] === //Scan period. Ignored if duration is zero. 1.28 sec unit uint16_t scanPeriod = 4; // 4 * 1.28 s = 5.12 s. GapScan_enable(scanPeriod, DEFAULT_SCAN_DURATION, 0); // ==== END SOLUTION ====