UniversalBleScanner class final
A ProvScanner backed by universal_ble.
The adapter does not request runtime permissions; the app must hold Bluetooth scan/connect permissions before calling scan.
- Implemented types
Constructors
-
UniversalBleScanner({List<
String> webServiceUuids = const [defaultServiceUuid, exampleServiceUuid], bool androidLegacyScan = true}) -
Creates a scanner.
webServiceUuidsare passed as Web BluetoothoptionalServicesso the browser lets the page open them.androidLegacyScanmakes Android report legacy (BLE 4.x) advertisements, which is what ESP32 provisioning firmware sends.const
Properties
- androidLegacyScan → bool
-
Passed as
AndroidOptions.legacy.final - hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
webServiceUuids
→ List<
String> -
Service UUIDs the web build may access.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
scan(
{String namePrefix = 'PROV_'}) → Stream< DiscoveredDevice> -
Emits each device whose advertised name starts with
namePrefix(case-insensitive), once per device id.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited