scan
Scans for Bluetooth LE devices using default scan options.
The scan will be stopped after the given period of time or when the flow is canceled.
Parameters
The scan duration. By default, the scan will run until the flow is closed.
The filter to apply. By default, no filter is applied.
See also
Throws
If the central manager has been closed.
If Bluetooth is disabled or not available.
If the permission to scan is denied.
If an error occurred while starting the scan.
Scans for Bluetooth LE devices.
The scan will be stopped after the given period of time or when the flow is canceled.
Parameters
The scan duration. By default, the scan will run until the flow is closed.
Scan options, e.g. the scan mode.
The filter to apply. By default, no filter is applied.
Throws
If the central manager has been closed.
If Bluetooth is disabled or not available.
If the permission to scan is denied.
If an error occurred while starting the scan.