MCPcopy Create free account
hub / github.com/deviceplug/btleplug / stop_scan

Method stop_scan

src/bluez/adapter.rs:87–92  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

85 }
86
87 async fn stop_scan(&self) -> Result<()> {
88 self.session
89 .stop_discovery_on_adapter(&self.adapter)
90 .await?;
91 Ok(())
92 }
93
94 async fn peripherals(&self) -> Result<Vec<Peripheral>> {
95 let devices = self.session.get_devices_on_adapter(&self.adapter).await?;

Calls

no outgoing calls