BleManager class

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

clear() → void
connectDevice(String deviceId) Future<BleConnectResult?>
disConnect() Future<bool>
getServices() Future<List<BleService>?>
isConnected() Future<bool>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read(String serviceUuid, String characteristicUuid, OnReadMessage onReadMessage, bool isDisposable) → void
readByWait(String serviceUuid, String characteristicUuid) Future<BleMessage>
readNotifyMessage(String serviceUuid, String characteristicUuid, OnReadMessage onReadMessage, bool isDisposable) → void
setConnectStateListener(OnConnectState onConnectState) → void
startScan(OnScanResult onScanResult, {int? scanTime, OnScanDone? onScanDone}) → void
stopScan() → void
toString() String
A string representation of this object.
inherited
write(String content, String serviceUuid, String characteristicUuid, OnWriteResponse onWriteResponse, {bool isHex = false}) → void
writeByWait(String content, String serviceUuid, String characteristicUuid, {bool isHex = false}) Future<BleWriteResponse>

Operators

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

Static Methods

getInstance() BleManager