Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents a GATT service.

Hierarchy

  • GattService

Index

Constructors

constructor

Properties

Readonly characteristics

characteristics: Map<string, GattCharacteristic> = ...

The characteristics that belong to this service, mapped by UUID. If this is a remote service use discoverCharacteristics to discover them.

Readonly gatt

gatt: Gatt

The GATT server this service belongs to.

Readonly isRemote

isRemote: boolean

True if this is a remote service, false otherwise.

Readonly uuid

uuid: string

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

Methods

Abstract addCharacteristic

Abstract discoverCharacteristics

toJSON

  • toJSON(): Record<string, unknown>

toString

  • toString(): string

Generated using TypeDoc