Fix windows scan filter (#41)

* Fix windows scan filter

* Bump version and add changelog

---------

Co-authored-by: fotidim <foti@navideck.com>
This commit is contained in:
Rohit Sangwan
2024-05-10 13:27:04 +05:30
committed by GitHub
parent a49b260b67
commit b07a8888e0
4 changed files with 9 additions and 3 deletions
+4
View File
@@ -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
+1 -1
View File
@@ -410,7 +410,7 @@ packages:
path: ".."
relative: true
source: path
version: "0.9.6"
version: "0.9.9"
vector_math:
dependency: transitive
description:
+1 -1
View File
@@ -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
+3 -1
View File
@@ -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());
}
}