Skip to content

Instantly share code, notes, and snippets.

@zakorgy
Created February 4, 2016 10:53
Show Gist options
  • Save zakorgy/f7e35b80f74bbb76784e to your computer and use it in GitHub Desktop.
Save zakorgy/f7e35b80f74bbb76784e 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/#bluetoothuuid
interface BluetoothUUID {
static UUID getService((DOMString or unsigned long) name);
//static UUID getCharacteristic((DOMString or unsigned long) name);
//static UUID getDescriptor((DOMString or unsigned long) name);
static UUID canonicalUUID([EnforceRange] unsigned long alias);
};
typedef DOMString UUID;
typedef (DOMString or unsigned long) BluetoothServiceUUID;
typedef (DOMString or unsigned long) BluetoothCharacteristicUUID;
typedef (DOMString or unsigned long) BluetoothDescriptorUUID;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment