Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents a GATT Descriptor.

Hierarchy

  • GattDescriptor

Index

Constructors

constructor

Properties

Readonly characteristic

characteristic: GattCharacteristic

The GATT characteristic that this descriptor belongs to

Readonly isRemote

isRemote: boolean

True if this is a remote characteristic, false otherwise.

Readonly uuid

uuid: string

The UUID of this descriptor, no dashes (-).

Methods

handleRead

  • handleRead(offset: number): Promise<Buffer>

handleWrite

  • handleWrite(offset: number, data: Buffer): Promise<number>

Abstract read

  • read(): Promise<Buffer>

toJSON

  • toJSON(): Record<string, unknown>

toString

  • toString(): string

Abstract write

  • write(data: Buffer): Promise<void>

Generated using TypeDoc