Hi there,
I'm developing applications with nRF52840, SoftDevice 6.1.1. Normally the scan timeout is in step of 10 ms. But whichever the value I set between seconds, e.g., 500ms, 1500ms, the actual scan timeout is 1 seconds, 2 seconds and etc.
This is the code snippet:
LOG_DEBUG(TRACE, "| interval(ms) window(ms) timeout(ms) |"); LOG_DEBUG(TRACE, " %.3f %.3f %d", bleGapScanParams.interval*0.625, bleGapScanParams.window*0.625, bleGapScanParams.timeout*10); int ret = sd_ble_gap_scan_start(&bleGapScanParams, &bleScanData_);
This is the log with timestamp:
0000000435 TRACE: interval(ms) window(ms) timeout(ms)
0000000445 TRACE: 5.000 2.500 300
0000001446 TRACE: BLE GAP event: Scanning timeout (This is printed in the SoftDevice events interrupt handler)
Any hint would be really appreciated!