BleCentral class

A Blueteooth Low Energy Central manager that allows you to scan and connect to devices.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

connectToPeripheral(String deviceId) Future<ConnectedBlePeripheral>
Connects to the given peripheral discovered through scan or some other means.
getState() Stream<AdapterState>
Streams the power state of the manager over time.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reset() Future<void>
Resets the state of the manager.
scanForPeripherals(List<String>? serviceIds) Stream<DiscoveredBlePeripheral>
Scans for peripherals that contain the optional list of given service ids.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

create() Future<BleCentral>
Creates and returns a singleton instance of a BleCentral.