BluetoothDescriptor class
A Bluetooth low energy descriptor. A descriptor describes the value stored in the characteristic.
You can get a BluetoothDescriptor by calling BluetoothCharacteristic.getDescriptor or BluetoothCharacteristic.getDescriptors.
Constructors
- BluetoothDescriptor(WebBluetoothRemoteGATTDescriptor _descriptor)
- A constructor for a new characteristic descriptor.
Properties
- characteristicUUId → String
-
The uuid of the descriptor this descriptor belongs to.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- uuid → String
-
The uuid of the descriptor
no setter
- value → ByteData?
-
The last read value of the descriptor. Will start out as
null
.no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
readValue(
) → Future< ByteData> - Read the value of the descriptor.
-
toString(
) → String -
A string representation of this object.
inherited
-
writeValue(
Uint8List data) → Future< void> - Write a new value to the descriptor.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited