Bluetooth Remote GATT Server class

Implements

  • BluetoothRemoteGATTServer

Constructors

Properties

device: BluetoothDeviceImpl = undefined

The device the gatt server is related to

Accessors

  • get connected(): boolean
  • Whether the gatt server is connected

    Returns boolean

Methods

  • Connect the gatt server

    Returns Promise<BluetoothRemoteGATTServer>

    Promise containing the gatt server

  • Disconnect the gatt server

    Returns void

  • Gets a single primary service contained in the gatt server

    Parameters

    • service: BluetoothServiceUUID

      service UUID

    Returns Promise<BluetoothRemoteGATTService>

    Promise containing the service

  • Gets a list of primary services contained in the gatt server

    Parameters

    • Optionalservice: BluetoothServiceUUID

      service UUID

    Returns Promise<BluetoothRemoteGATTService[]>

    Promise containing an array of services