Skip to content

Instantly share code, notes, and snippets.

@zakorgy
Created January 26, 2016 09:32
Show Gist options
  • Save zakorgy/e4359e21290c6907ddfe to your computer and use it in GitHub Desktop.
Save zakorgy/e4359e21290c6907ddfe to your computer and use it in GitHub Desktop.
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://webbluetoothcg.github.io/web-bluetooth/#bluetoothgattservice
interface BluetoothGATTService {
readonly attribute BluetoothDevice device;
//readonly attribute UUID uuid;
readonly attribute boolean isPrimary;
//Promise<BluetoothGATTCharacteristic>getCharacteristic(BluetoothCharacteristicUUID characteristic);
//Promise<sequence<BluetoothGATTCharacteristic>>getCharacteristics(optional BluetoothCharacteristicUUID characteristic);
//Promise<BluetoothGATTService>getIncludedService(BluetoothServiceUUID service);
//Promise<sequence<BluetoothGATTService>>getIncludedServices(optional BluetoothServiceUUID service);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment