WebIDLpedia

BluetoothRemoteGATTServer interface

Definition

Web Bluetooth defines BluetoothRemoteGATTServer



[Exposed=Window, SecureContext]
interface BluetoothRemoteGATTServer {
  [SameObject]
  readonly attribute BluetoothDevice device;
  readonly attribute boolean connected;
  Promise<BluetoothRemoteGATTServer> connect();
  undefined disconnect();
  Promise<BluetoothRemoteGATTService> getPrimaryService(BluetoothServiceUUID service);
  Promise<sequence<BluetoothRemoteGATTService>>
    getPrimaryServices(optional BluetoothServiceUUID service);
};

Methods and attributes that return objects implementing BluetoothRemoteGATTServer

Referring IDL interfaces/dictionaries