Options
All
  • Public
  • Public/Protected
  • All
Menu

A local GATT server.

Hierarchy

Index

Constructors

constructor

Properties

Readonly adapter

adapter: Adapter

The adapter that this GATT server belongs to.

Readonly services

services: Map<string, GattService> = ...

The services that belong to this GATT server, mapped by UUID. If this is a remote GATT use discoverServices to discover them.

Accessors

isRemote

  • get isRemote(): boolean

mtu

  • get mtu(): number
  • Local: The maximum MTU that will be agreed upon during negotiation. Remote: The MTU that was agreed upon during negotiation.

    Returns number

Methods

Abstract addService

Abstract prepare

  • prepare(deviceName: string): Promise<void>
  • Prepares this GATT server for advertisement.

    Parameters

    • deviceName: string

      The name of this device as specified in the general service / characteristic.

    Returns Promise<void>

toJSON

  • toJSON(): Record<string, unknown>

toString

  • toString(): string

Generated using TypeDoc