Lens Scripting API
    Preparing search index...

    Class BluetoothGattDescriptor

    Descriptors contain additional information and attributes of a Bluetooth.BluetoothGattCharacteristic.

    Hierarchy (View Summary)

    Index

    Properties

    uuid: string

    The UUID of the current descriptor.

    Methods

    • Returns true if the object matches or derives from the passed in type.

      Parameters

      • type: string

      Returns boolean

    • Returns true if this object is the same as other. Useful for checking if two references point to the same thing.

      Parameters

      Returns boolean

    • Experimental Wearable Only

      Read and receive the current value of the descriptor.

      Returns: The value in a Uint8Array

      Returns Promise<Uint8Array>

    • Experimental Wearable Only

      Write a new value to the descriptor.

      value The value in a Uint8Array

      Returns: Promise resolving to void when the value is successfully written.

      Parameters

      • value: Uint8Array

      Returns Promise<void>