Class BluetoothRemoteGATTDescriptor
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
NOTE
ExperimentalBluetoothRemoteGATTDescriptor interface of the Web Bluetooth API provides a GATT Descriptor,which provides further information about a characteristic's value.
[Value("BluetoothRemoteGATTDescriptor")]
public class BluetoothRemoteGATTDescriptor
- Inheritance
-
BluetoothRemoteGATTDescriptor
- Inherited Members
Remarks
Constructors
BluetoothRemoteGATTDescriptor()
public BluetoothRemoteGATTDescriptor()
Properties
Characteristic
NOTE
ExperimentalBluetoothRemoteGATTDescriptor.characteristicread-only property returns the BluetoothRemoteGATTCharacteristic this
descriptor belongs to.
[Value("characteristic")]
public BluetoothRemoteGATTCharacteristic Characteristic { get; }
Property Value
- BluetoothRemoteGATTCharacteristic
An instance of BluetoothRemoteGATTCharacteristic.
Remarks
Uuid
NOTE
ExperimentalBluetoothRemoteGATTDescriptor.uuid read-only property returns the UUID of the characteristic descriptor.For example
"00002902-0000-1000-8000-00805f9b34fb" for the Client Characteristic Configuration descriptor.
[Value("uuid")]
public string Uuid { get; }
Property Value
- string
A UUID.
Remarks
Value
NOTE
ExperimentalBluetoothRemoteGATTDescriptor.valueread-only property returns an DataView containing the currently cached
descriptor value. This value gets updated when the value of the descriptor is read.
[Value("value")]
public DataView? Value { get; }
Property Value
Remarks
Methods
ReadValue()
NOTE
ExperimentalBluetoothRemoteGATTDescriptor.readValue()method returns a Promise that resolves to
a DataView holding a duplicate of the
value property ifit is available and supported. Otherwise it throws an error.
[Value("readValue")]
public Task<DataView> ReadValue()
Returns
Remarks
WriteValue(Union224)
NOTE
ExperimentalBluetoothRemoteGATTDescriptor.writeValue()method sets the value property to the bytes contained in
an ArrayBuffer, TypedArray, or DataView and returns a Promise.
[Value("writeValue")]
public Task<GlobalObject.Undefined> WriteValue(Union224 value)
Parameters
valueUnion224