B2G/Bluetooth/WebBluetooth-v2/BluetoothGattDescriptor: Difference between revisions

Jump to navigation Jump to search
Line 9: Line 9:
  interface BluetoothGattDescriptor
  interface BluetoothGattDescriptor
  {
  {
  // Permission
  const unsigned short PERMISSION_READ              = 0x0001;
  const unsigned short PERMISSION_READ_ENCRYPTED    = 0x0002;
  const unsigned short PERMISSION_READ_ENC_MITM    = 0x0004;
  const unsigned short PERMISSION_WRITE            = 0x0010;
  const unsigned short PERMISSION_WRITE_ENCRYPTED  = 0x0020;
  const unsigned short PERMISSION_WRITE_ENC_MITM    = 0x0040;
  const unsigned short PERMISSION_WRITE_SIGNED      = 0x0080;
  const unsigned short PERMISSION_WRITE_SIGNED_MITM = 0x0100;
   readonly attribute [[B2G/Bluetooth/WebBluetooth-v2/BluetoothGattCharacteristic#BluetoothGattCharacteristic|BluetoothGattCharacteristic]] [[B2G/Bluetooth/WebBluetooth-v2/BluetoothGattDescriptor#characteristic|characteristic]];
   readonly attribute [[B2G/Bluetooth/WebBluetooth-v2/BluetoothGattCharacteristic#BluetoothGattCharacteristic|BluetoothGattCharacteristic]] [[B2G/Bluetooth/WebBluetooth-v2/BluetoothGattDescriptor#characteristic|characteristic]];
   readonly attribute DOMString                  [[B2G/Bluetooth/WebBluetooth-v2/BluetoothGattDescriptor#uuid|uuid]];
   readonly attribute DOMString                  [[B2G/Bluetooth/WebBluetooth-v2/BluetoothGattDescriptor#uuid|uuid]];
  readonly attribute unsigned short              [[B2G/Bluetooth/WebBluetooth-v2/BluetoothGattDescriptor#permissions|permissions]];
   readonly attribute ArrayBuffer?                [[B2G/Bluetooth/WebBluetooth-v2/BluetoothGattDescriptor#value|value]];
   readonly attribute ArrayBuffer?                [[B2G/Bluetooth/WebBluetooth-v2/BluetoothGattDescriptor#value|value]];
   
   
Confirmed users
891

edits

Navigation menu