Function find_device_with_adapter

Source
pub async fn find_device_with_adapter(
    adapter: &Adapter,
    identifier: &str,
    options: ScanOptions,
) -> Result<Peripheral>
Expand description

Find a specific device using a pre-existing adapter.

This avoids creating a new btleplug Manager (and D-Bus connection) on every call. The caller is responsible for keeping the Adapter alive.