Function gopro_controller::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