BleEx class

封装后的Ble外围设备管理器

Constructors

BleEx()
factory

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

createPeripheral<T extends BlePeripheral>(DiscoveredDevice device, T instance) → T
创建一个外围设备
createScanningTask() BleScanningTask
创建一个设备扫描任务
ensureInited() Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
searchForDevice(List<DevicesFilter> filters, {Duration timeout = const Duration(milliseconds: 5000)}) Future<DiscoveredDevice?>
搜索指定设备
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

logLevel int
getter/setter pair

Static Methods

getStatus() Future<BleStatus>
蓝牙状态