mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-07-31 23:27:52 +00:00
mesh: Increase scan window from 10ms to 30ms
Experiments have shown that the probability of missing advertising packets is significantly lower with 30ms scan window compared to 10ms scan window. This is especially the case with advertisers using a 20ms advertising interval, which in turn is perhaps the most common one since it's the smallest allowed by the Bluetooth 5.0 specification.
This commit is contained in:
@@ -29,8 +29,8 @@
|
||||
#define ADV_SCAN_UNIT(_ms) ((_ms) * 8 / 5)
|
||||
|
||||
/* Window and Interval are equal for continuous scanning */
|
||||
#define MESH_SCAN_INTERVAL_MS 10
|
||||
#define MESH_SCAN_WINDOW_MS 10
|
||||
#define MESH_SCAN_INTERVAL_MS 30
|
||||
#define MESH_SCAN_WINDOW_MS 30
|
||||
#define MESH_SCAN_INTERVAL ADV_SCAN_UNIT(MESH_SCAN_INTERVAL_MS)
|
||||
#define MESH_SCAN_WINDOW ADV_SCAN_UNIT(MESH_SCAN_WINDOW_MS)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user