Function init

Source
pub async fn init(
    adapter_index: Option<usize>,
) -> Result<Adapter, Box<dyn Error>>
Expand description

Inits the bluetooth adapter (central) and returns it to the caller

ยงArguments

  • adapter_index - An optional index into the list of bluetooth adapters in case the caller has more than one