Switches characteristic to use BufferSource

This commit is contained in:
Anthony Urena 2018-03-24 16:10:28 -04:00
parent 40235da2d3
commit 5bf2e71407
6 changed files with 17 additions and 12 deletions

View file

@ -16,8 +16,7 @@ interface BluetoothRemoteGATTCharacteristic : EventTarget {
getDescriptors(optional BluetoothDescriptorUUID descriptor);
Promise<ByteString> readValue();
//Promise<DataView> readValue();
Promise<void> writeValue(sequence<octet> value);
//Promise<void> writeValue(BufferSource value);
Promise<void> writeValue(BufferSource value);
Promise<BluetoothRemoteGATTCharacteristic> startNotifications();
Promise<BluetoothRemoteGATTCharacteristic> stopNotifications();
};

View file

@ -11,6 +11,6 @@ interface BluetoothRemoteGATTDescriptor {
readonly attribute DOMString uuid;
readonly attribute ByteString? value;
Promise<ByteString> readValue();
// Promise<DataView> readValue();
//Promise<DataView> readValue();
Promise<void> writeValue(BufferSource value);
};