Add name prefix filtering (#45)

* Add name filter

* Change name filter to "prefix"

* Implement namePrefix filtering

* Update lib/src/universal_ble_platform_interface.dart

* Update lib/src/universal_ble_platform_interface.dart

---------

Co-authored-by: fotidim <foti@navideck.com>
This commit is contained in:
Rohit Sangwan
2024-05-17 19:19:30 +05:30
committed by GitHub
parent 77b8658f72
commit 5847bbffc5
9 changed files with 54 additions and 12 deletions
+7
View File
@@ -119,6 +119,13 @@ Use the `withManufacturerData` parameter to filter devices by manufacturer data.
```dart
List<ManufacturerDataFilter> withManufacturerData;
```
##### With namePrefix
Use the `withNamePrefix` parameter to filter devices by names (case sensitive). When you pass a list of names, the scan results will only include devices that have this name or start with the provided parameter.
```dart
List<String> withNamePrefix;
```
### Connecting