FlutterBlue class
Methods
initializeFlutterBlue ()
→ Future <void >
Initialize Bluetooth if it isn't already.
isFlutterBlueInitialized ()
→ Future <bool >
Checks whether Bluetooth is initialized.
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
scan ({ScanMode scanMode = ScanMode.lowLatency , List <Guid > withServices = const [] , List <Guid > withDevices = const [] , Duration ? timeout , bool allowDuplicates = false })
→ Stream <ScanResult >
Starts a scan for Bluetooth Low Energy devices and returns a stream
of the ScanResult results as they are received.
setLogLevel (LogLevel level )
→ void
Sets the log level of the FlutterBlue instance
Messages equal or below the log level specified are stored/forwarded,
messages above are dropped.
startAdvertising (AdvertisingMode advertisingMode , AdvertisingTxPower advertisingTxPower , Guid uuid , int manufacturerId , Uint8List manufacturerData )
→ Future <void >
The list of connected peripherals can include those that are connected
by other apps and that will need to be connected locally using the
device.connect() method before they can be used.
startScan ({ScanMode scanMode = ScanMode.lowLatency , List <Guid > withServices = const [] , List <Guid > withDevices = const [] , Duration ? timeout , bool allowDuplicates = false })
→ Future
Starts a scan and returns a future that will complete once the scan has finished.
stopAdvertising ()
→ Future <void >
stopScan ()
→ Future
Stops a scan for Bluetooth Low Energy devices
toString ()
→ String
A string representation of this object.
inherited