BluetoothCharacteristic class

Constructors

BluetoothCharacteristic({required DeviceIdentifier remoteId, required Guid serviceUuid, Guid? secondaryServiceUuid, required Guid characteristicUuid})
BluetoothCharacteristic.fromProto(BmBluetoothCharacteristic p)

Properties

characteristicUuid Guid
final
descriptors List<BluetoothDescriptor>
Get Descriptors from known services
no setter
device BluetoothDevice
convenience accessor
no setter
deviceId DeviceIdentifier
no setter
hashCode int
The hash code for this object.
no setterinherited
isNotifying bool
return true if we're subscribed to this characteristic
no setter
lastValue List<int>
this variable is updated:
no setter
lastValueStream Stream<List<int>>
this stream emits values:
no setter
onValueChangedStream Stream<List<int>>
no setter
onValueReceived Stream<List<int>>
this stream emits values:
no setter
properties CharacteristicProperties
Get Properties from known services
no setter
remoteId DeviceIdentifier
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secondaryServiceUuid Guid?
final
serviceUuid Guid
final
uuid Guid
convenience accessor
no setter
value Stream<List<int>>
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read({int timeout = 15}) Future<List<int>>
read a characteristic
setNotifyValue(bool notify, {int timeout = 15, bool forceIndications = false}) Future<bool>
Sets notifications or indications for the characteristic.
toString() String
A string representation of this object.
override
write(List<int> value, {bool withoutResponse = false, bool allowLongWrite = false, int timeout = 15}) Future<void>
Writes a characteristic.

Operators

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