Bluetooth Remote GATT Descriptor class

Hierarchy

  • BluetoothRemoteGATTDescriptor

Implements

  • W3CBluetoothRemoteGATTDescriptor

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

Properties

Readonly characteristic

characteristic: BluetoothRemoteGATTCharacteristic = null

The characteristic the descriptor is related to

Readonly uuid

uuid: string = null

The unique identifier of the descriptor

Accessors

value

  • get value(): DataView
  • The value of the descriptor

    Returns DataView

Methods

readValue

  • readValue(): Promise<DataView>
  • Gets the value of the descriptor

    Returns Promise<DataView>

    Promise containing the value

writeValue

  • writeValue(value: ArrayBuffer | ArrayBufferView): Promise<void>
  • Updates the value of the descriptor

    Parameters

    • value: ArrayBuffer | ArrayBufferView

      The value to write

    Returns Promise<void>