From 3a0cc2e7f4a912fab7cc0e23d75a71348a9e5c0a Mon Sep 17 00:00:00 2001 From: Kavish Devar Date: Mon, 27 Oct 2025 17:41:16 +0530 Subject: [PATCH] linux-rust: remove sampling period from LE scanner tbh, I did not want to get results right away; batching would have been fine. But, BlueR seems to give the first scan result only after 10s if I set sampling period. --- linux-rust/src/bluetooth/le.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-rust/src/bluetooth/le.rs b/linux-rust/src/bluetooth/le.rs index 8aee3d9..98a8c5f 100644 --- a/linux-rust/src/bluetooth/le.rs +++ b/linux-rust/src/bluetooth/le.rs @@ -97,7 +97,7 @@ pub async fn start_le_monitor(tray_handle: Option>) -> blue rssi_high_threshold: None, rssi_low_timeout: None, rssi_high_timeout: None, - rssi_sampling_period: Some(RssiSamplingPeriod::Period(Duration::from_millis(100))), + rssi_sampling_period: None, patterns: Some(vec![pattern]), ..Default::default() })