Skip to content

Commit

Permalink
WebBluetooth Specification Change
Browse files Browse the repository at this point in the history
  • Loading branch information
zakorgy committed Jul 26, 2016
1 parent a94b92f commit 2d2eb62
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions components/script/dom/bluetoothremotegattcharacteristic.rs
Expand Up @@ -195,6 +195,12 @@ impl BluetoothRemoteGATTCharacteristicMethods for BluetoothRemoteGATTCharacteris
if !self.Service().Device().Gatt().Connected() {
return Err(Network)
}

if !(self.Properties().Write() ||
self.Properties().WriteWithoutResponse() ||
self.Properties().AuthenticatedSignedWrites()) {
return Err(NotSupported)
}
let (sender, receiver) = ipc::channel().unwrap();
self.get_bluetooth_thread().send(
BluetoothMethodMsg::WriteValue(self.get_instance_id(), value, sender)).unwrap();
Expand Down

0 comments on commit 2d2eb62

Please sign in to comment.