Implement ScanFilter (#17)

* Implement ScanFilter

* Add windows implementation

* Fix Linux and cleanups

* Update Readme, Changelog and Version

* Minor fixes from AI comments

* Fix windows crash and update pigeon

* Fix UUID parsing

* Apply suggestions from code review

Co-authored-by: Foti Dim <foti@navideck.com>

---------

Co-authored-by: Foti Dim <foti@navideck.com>
This commit is contained in:
Rohit Sangwan
2024-03-05 22:37:14 +05:30
committed by GitHub
parent 7e47be374b
commit 1f7ba287ef
28 changed files with 546 additions and 118 deletions
+7
View File
@@ -60,6 +60,13 @@ UniversalBle.onScanResult = (scanResult) {
// Perform a scan
UniversalBle.startScan();
// Or optionally add a scan filter
UniversalBle.startScan(
scanFilter: ScanFilter(
withServices: ["SERVICE_UUID"],
)
);
// Stop scanning
UniversalBle.stopScan();
```