BleDeviceOwner class
- Implemented types
Constructors
-
BleDeviceOwner.new({required IBleDevice device, List<
IBleInitCommand> initCommands = const []})
Properties
- device → IBleDevice
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getCharacteristicsChanges(
) → Stream< BleCharacteristicChangedEvent> - Returns a stream for listening on changes from any characteristics.
-
getFsm(
) → Fsm? -
override
-
getInitCommands(
) → List< IBleInitCommand> - Returns a list of init commands to be performed in this device to get it ready for usage.
-
getSetupState(
) → BleSetupState - Returns the current setup state.
-
getSetupStates(
) → Stream< BleSetupState> - Notifies changes in the setup state.
-
handleEvent(
{required FsmEvent event}) → Future< bool> -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onCharacteristicChanged(
{required IBleDevice device, required IBluetoothGattService service, required IBluetoothGattCharacteristic characteristic, required Uint8List value}) → void -
override
-
onDeviceConnectionStateChanged(
{required IBleDevice device, required BleConnectionState newGattState}) → void -
Gets called when there is a change in the state
of the device connection.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited