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

Function get_central

examples/event_driven_discovery.rs:10–13  ·  view source on GitHub ↗
(manager: &Manager)

Source from the content-addressed store, hash-verified

8use futures::stream::StreamExt;
9
10async fn get_central(manager: &Manager) -> Adapter {
11 let adapters = manager.adapters().await.unwrap();
12 adapters.into_iter().nth(0).unwrap()
13}
14
15#[tokio::main]
16async fn main() -> anyhow::Result<()> {

Callers 1

mainFunction · 0.85

Calls 1

adaptersMethod · 0.45

Tested by

no test coverage detected