Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions src/winrtble/ble/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,7 @@ impl BLEDevice {
pub async fn get_characteristics(
service: &GattDeviceService,
) -> Result<Vec<GattCharacteristic>> {
let async_result = service
.GetCharacteristicsWithCacheModeAsync(BluetoothCacheMode::Uncached)?
.await?;
let async_result = service.GetCharacteristicsAsync()?.await?;
let status = async_result.Status();
if status == Ok(GattCommunicationStatus::Success) {
let results = async_result.Characteristics()?;
Expand Down