ModuleBle class

Available Extensions
Annotations
  • @CopyWith()

Constructors

ModuleBle({required UUID uuid, Commands commands = const Commands(), bool scanFilter(BluetoothDevice device) = Builtin.scanFilterWearEcg, void setDevice(BluetoothDevice device)?, bool isSimulator = false})

Properties

commands Commands
final
device BluetoothDevice?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isSimulator bool
TODO: simulator
final
isSimulatorConnected bool
getter/setter pair
points Map<Enum, BluetoothCharacteristic>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scanFilter bool Function(BluetoothDevice device)
getter/setter pair
setDevice → (void Function(BluetoothDevice device)?)
final
streams StreamImpl
final
uuid UUID
final

Methods

connectAndRegister({String targetDevice = '', bool isStrict = false}) Future<bool>
connectConfirm() Future<void>
SET * connectConfirm, setSerialNumber, setMode, setFirmUpdate
connectDevice({String targetDevice = '', bool isStrict = false}) Future<bool>
disconnectDevice({BluetoothDevice? device}) Future<void>
findConnectedDevices({bool isFiltered = true}) Future<List<BluetoothDevice>>
findScannedDevices({bool isFiltered = true}) Future<List<ScanResult>>
getFirmwareVersion() Future<List<int>?>
getManufacturer() Future<List<int>?>
GET * PRODUCT_MANUFACTURER, FIRMWARE_VERSION, SERIAL_NUMBER,
getSerialNumber() Future<List<int>?>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerCharacteristics() Future<void>
setFirmUpdate(List<int> data) Future<void>
setMode(List<int> data) Future<void>
setSerialNumber(List<int> data) Future<void>
toString() String
A string representation of this object.
inherited

Operators

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