Node Web Bluetooth
    Preparing search index...

    Class BluetoothRemoteGATTCharacteristic

    Bluetooth Remote GATT Characteristic class

    Name Event Description
    characteristicvaluechanged Event The value of a BLE Characteristic has changed.

    Hierarchy

    • EventTarget
      • BluetoothRemoteGATTCharacteristic

    Implements

    • BluetoothRemoteGATTCharacteristic
    Index

    Constructors

    Properties

    properties: BluetoothCharacteristicProperties

    The properties of the characteristic

    The service the characteristic is related to

    uuid: string

    The unique identifier of the characteristic

    Accessors

    • set oncharacteristicvaluechanged(fn: (ev: Event) => void): void

      Parameters

      • fn: (ev: Event) => void

      Returns void

    • get value(): DataView<ArrayBufferLike> | undefined

      The value of the characteristic

      Returns DataView<ArrayBufferLike> | undefined

    Methods

    • Gets the value of the characteristic

      Returns Promise<DataView<ArrayBufferLike>>

      Promise containing the value

    • Start notifications of changes for the characteristic

      Returns Promise<BluetoothRemoteGATTCharacteristic>

      Promise containing the characteristic

    • Stop notifications of changes for the characteristic

      Returns Promise<BluetoothRemoteGATTCharacteristic>

      Promise containing the characteristic

    • Updates the value of the characteristic

      Parameters

      • value: ArrayBuffer | ArrayBufferView<ArrayBufferLike>

        The value to write

      Returns Promise<void>

    • Updates the value of the characteristic without waiting for a response

      Parameters

      • value: ArrayBuffer | ArrayBufferView<ArrayBufferLike>

        The value to write

      Returns Promise<void>

    • Updates the value of the characteristic and waits for a response

      Parameters

      • value: ArrayBuffer | ArrayBufferView<ArrayBufferLike>

        The value to write

      Returns Promise<void>