diff --git a/CHANGELOG.md b/CHANGELOG.md index b501fb2..1180ed7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.9.10 +* Fix Windows scan filter +* Improve service discovery on Linux + ## 0.9.9 * Improve service discovery on Apple * Improve reconnection on Apple diff --git a/example/pubspec.lock b/example/pubspec.lock index 4fd9e3c..b32d71b 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -410,7 +410,7 @@ packages: path: ".." relative: true source: path - version: "0.9.6" + version: "0.9.9" vector_math: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index 1564f78..0c7fde3 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: universal_ble description: A cross-platform (Android/iOS/macOS/Windows/Linux/Web) Bluetooth Low Energy (BLE) plugin for Flutter -version: 0.9.9 +version: 0.9.10 homepage: https://navideck.com repository: https://github.com/Navideck/universal_ble issue_tracker: https://github.com/Navideck/universal_ble/issues diff --git a/windows/src/universal_ble_plugin.cpp b/windows/src/universal_ble_plugin.cpp index fec6b7a..5350f14 100644 --- a/windows/src/universal_ble_plugin.cpp +++ b/windows/src/universal_ble_plugin.cpp @@ -91,6 +91,7 @@ namespace universal_ble if (bluetoothRadio && bluetoothRadio.State() == RadioState::On) { setupDeviceWatcher(); + scanResults.clear(); DeviceWatcherStatus status = deviceWatcher.Status(); if (status != DeviceWatcherStatus::Started) { @@ -153,6 +154,7 @@ namespace universal_ble } bluetoothLEWatcher = nullptr; disposeDeviceWatcher(); + scanResults.clear(); return std::nullopt; } else @@ -562,7 +564,7 @@ namespace universal_ble { if (currentScanResult.name()->size() > scanResult.name()->size()) { - scanResult.set_name(*currentScanResult.name()); + scanResult.set_name(*currentScanResult.name()); } }