WebBluetoothRemoteGATTCharacteristic class

Constructors

WebBluetoothRemoteGATTCharacteristic.fromJSObject(Object _jsObject, WebBluetoothRemoteGATTService service)
Create a new instance from a js object.

Properties

hashCode int
The hash code for this object.
no setterinherited
properties WebBluetoothCharacteristicProperties
Get the properties of the characteristic.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
service WebBluetoothRemoteGATTService
The service that this characteristic belongs to.
final
uuid String
The uuid of the characteristic.
no setter
value ByteData?
Get the last value retrieved from the WebBluetoothRemoteGATTCharacteristic.
no setter

Methods

addEventListener(String type, void listener(dynamic)) → void
Add a new event listener to the device.
getDescriptor(String descriptorUUID) Future<WebBluetoothRemoteGATTDescriptor>
Return a WebBluetoothRemoteGATTDescriptor for this characteristic.
getDescriptors([String? descriptorUUID]) Future<List<WebBluetoothRemoteGATTDescriptor>>
Return a list of WebBluetoothRemoteGATTDescriptor for this characteristic.
hasWriteValueWithoutResponse() bool
Check to see if the writeValueWithoutResponse function exists.
hasWriteValueWithResponse() bool
Check to see if the writeValueWithResponse function exists.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readValue() Future<ByteData>
Will read the value of the characteristic. The value read will be returned and also set as the value property.
startNotifications() Future<void>
Request the device to send notifications each time the value changes.
stopNotifications() Future<void>
Stop listening for notifications.
toString() String
A string representation of this object.
inherited
writeValue(Uint8List value) Future<void>
Will write a new value to the characteristic.
writeValueWithoutResponse(Uint8List value) Future<void>
Will write a new value to the characteristic.
writeValueWithResponse(Uint8List value) Future<void>
Will write a new value to the characteristic.

Operators

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