BluetoothLowEnergyConnector class

Inheritance
  • Object
  • StateNotifier<BleConnectorStatus>
  • StatefulNotifier<BleConnectorStatus>
  • BleConnector
  • BaseBleConnector
  • BluetoothLowEnergyConnector

Constructors

BluetoothLowEnergyConnector({required CentralManager backend, required List<UUID> serviceIds, required Peripheral peripheral})

Properties

backend → CentralManager
final
hashCode int
The hash code for this object.
no setterinherited
isConnectToKnownDeviceSupported bool
no setteroverride
peripheral → Peripheral
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serviceIds List<UUID>
final
state → BleConnectorStatus
no setteroverride
stateStream Stream<BleConnectorStatus>
no setterinherited

Methods

canNotifyState() bool
inherited
connect() Future<void>
override
connectToKnownDevice({Duration duration = const Duration(seconds: 2)}) Future<void>
override
createCharacteristic({required String serviceId, required String characteristicId}) → BleCharacteristic
override
createMtu() → BleMtu
override
createSerial({required String serviceId, required String rxCharacteristicId, required String txCharacteristicId}) → BleSerial
inherited
disconnect() Future<void>
override
discoverServices() Future<List<String>>
override
dispose() → void
inherited
getCharacteristic(UUID serviceId, UUID characteristicId) → GATTCharacteristic?
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyState(BleConnectorStatus state) → void
inherited
toString() String
A string representation of this object.
inherited

Operators

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