Skip to content

Commit

Permalink
fix: Call discover_services after connection (#18)
Browse files Browse the repository at this point in the history
Despite the `corebluetooth` disover_services not doing anything we still need it for different platforms and Bluetooth adapter implementation.
  • Loading branch information
dzamlo committed Nov 26, 2023
1 parent 05c6087 commit c8b7988
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/route.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ impl Route {
retry.fetch_add(1, std::sync::atomic::Ordering::SeqCst);
}

peripheral.ble_peripheral.discover_services().await?;
let mut active_route = ctx.active_route.write().unwrap();
(*active_route) =
Route::PeripheralConnectedView(ConnectedPeripheral::new(ctx, peripheral))
Expand Down

0 comments on commit c8b7988

Please sign in to comment.