UniversalBleConnector class
- Inheritance
-
- Object
- StateNotifier<
BleConnectorStatus> - StatefulNotifier<
BleConnectorStatus> - BleConnector
- BaseBleConnector
- UniversalBleConnector
Constructors
-
UniversalBleConnector({required String deviceId, required List<
String> serviceIds})
Properties
- deviceId → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isConnectToKnownDeviceSupported → bool
-
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
serviceIds
→ List<
String> -
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
-
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